strace

Is there a command in QNX that will perform the equivalent of ‘strace’ in
Linux? The strace utility runs the program specified on the command line and
prints every kernel call the program makes to the console.

Thanks,
Shaun

Shaun Jackman <sjackman@nospam.vortek.com> wrote:

Is there a command in QNX that will perform the equivalent of ‘strace’ in
Linux? The strace utility runs the program specified on the command line and
prints every kernel call the program makes to the console.

For QNX 6, you can get the System Analysis Toolkit, which provides an
instrumented kernel with that sort of tracing available. There isn’t
a simple utility like strace, but the capabilities are there. (You’d
have to write your own equivalent of strace, spawn a process held,
get the pid, turn on full tracing for that pid, hit the child with
a sigcont to continue… and you’re off an running.)

For QNX 4, I don’t think you can do it on a per process level, but
take a look at monitor and msgprint utilities for getting kernel
logs and displaying them.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.