Solved

help with ptrace

Posted on 2004-04-29
4
213 Views
Last Modified: 2011-10-03
Hi i was wondering if anyone could help me in using the ptrace in C. I have to fork a process. The child is going to execute another program and i have to trace the number of system calls and number of instructions that the other program issued. This has to be done with ptrace. I read the man pages but they weren't helpful at all. This has to work on any linux x86 machines. Do you know of any good tutorials or sample codes on how to use ptrace? Thanks a lot for any help.  
p.s. i have to finish this by tomorrow night, so i really need some help quickly if it's possible
0
Comment
Question by:pirol1983
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
ID: 10955993
0
 

Author Comment

by:pirol1983
ID: 10956223
the sample code looks very helpful, i'll try it in my program and i'll let you know ... Thank you
0
 

Author Comment

by:pirol1983
ID: 10956588
thanks for the quick help cookre. Everything worked fine.
0
 
LVL 22

Expert Comment

by:cookre
ID: 10958725
glad it worked out...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Introduction to Processes
Starting up a Project

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question