Solved

help with ptrace

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exchange and Third Party application. 8 60
matchUp  challenge 9 72
endX challenge 2 50
firstChar challenge 13 86
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.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now