Solved

help with ptrace

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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Plain Text Editor for iPad 6 105
VB.net and sql server 4 54
Vector, list Questions R 6 47
CSV file copy field 1 to field 2 2 42
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This is about my first experience with programming Arduino.
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 …

749 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