Tracing in Unix

This is a discussion on Tracing in Unix within the C++ Programming forums, part of the General Programming Boards category; Hi everyone... Did u guys have any idea on how to trace a specific application in term of number of ...

  1. #1
    suwie
    Join Date
    Aug 2004
    Posts
    6

    Tracing in Unix

    Hi everyone...

    Did u guys have any idea on how to trace a specific application in term of number of mouse clicks....keystrokes pressed...?

    Any C/C++ library that might help?

    Url link or sample code will be lot more helpful.....

    Thank you....

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    strace is the command line tool to trace a program
    ptrace is the programming interface to do pretty much the same
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    suwie
    Join Date
    Aug 2004
    Posts
    6
    Hi Salem,

    Thanks for the reply....
    I've a look at the ptrace and strace....
    i also try to find some example that actually do the ptrace...
    But as far as i know...ptrace only able to trace something like how many system call being used...how is the frequency..etc

    But i don't think it can trace how many keystrokes have been pressed or how many mouse clicks so far......

    Any idea?

    Thank you.....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to program in unix
    By Cpro in forum Linux Programming
    Replies: 21
    Last Post: 02-12-2008, 09:54 AM
  2. Setting up a Unix box
    By @nthony in forum Tech Board
    Replies: 6
    Last Post: 07-22-2007, 10:22 PM
  3. UNIX (Linux, BSD, etc) Programming :: UNIX
    By kuphryn in forum Linux Programming
    Replies: 6
    Last Post: 04-01-2004, 07:44 PM
  4. Unix Sockets
    By prvindia in forum Linux Programming
    Replies: 5
    Last Post: 03-11-2003, 08:16 AM
  5. About Unix Programming - Making a career desision
    By null in forum C Programming
    Replies: 0
    Last Post: 10-14-2001, 07:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21