Solved

help with ptrace

Posted on 2004-04-29
4
211 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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

839 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