search for: dumpfifo

Displaying 1 result from an estimated 1 matches for "dumpfifo".

2006 Jul 31
5
use tracemem to dump content in function read/write
Hi Expert I want to use dtrace to monitor the content change of one file. I made following scripts, #!/usr/sbin/dtrace -s inline int MYPID = $1; syscall::write:entry /pid == MYPID/ { tracemem(arg1, arg2); printf("\n"); } It always has an following error bash-3.00$ sudo dumpFIFO.dtrace 3836 dtrace: failed to compile script ./dumpFIFO.dtrace: line 19: tracemem( ) argument #2 must be a non-zero positive integral constant expression When I change it to tracemem(arg1, 1); /*1 is a small test number*/ It always has following error. bash-3.00$ sudo dumpFIFO.dtrace 3836 dtrac...