Step 5: Run the format/filter program
Filter the output report to get only your events.
To do this, run the trcrpt command:
trcrpt -d 010 -t mytrcfmt -O exec=on -o sample.rpt
The formatted trace results
are:
ID PROC NAME I ELAPSED_SEC DELTA_MSEC APPL SYSCALL KERNEL INTERRUPT
010 sample 0.000105984 0.105984 USER HOOK 1
The data field for the user hook = 1
010 sample 0.000113920 0.007936 USER HOOK 1
The data field for the user hook = 2 [7 usec]
010 sample 0.000119296 0.005376 USER HOOK 1
The data field for the user hook = 3 [5 usec]
010 sample 0.000124672 0.005376 USER HOOK 1
The data field for the user hook = 4 [5 usec]
010 sample 0.000129792 0.005120 USER HOOK 1
The data field for the user hook = 5 [5 usec]
010 sample 0.000135168 0.005376 USER HOOK 1
The data field for the user hook = 6 [5 usec]
010 sample 0.000140288 0.005120 USER HOOK 1
The data field for the user hook = 7 [5 usec]
010 sample 0.000145408 0.005120 USER HOOK 1
The data field for the user hook = 8 [5 usec]
010 sample 0.000151040 0.005632 USER HOOK 1
The data field for the user hook = 9 [5 usec]
010 sample 0.000156160 0.005120 USER HOOK 1
The data field for the user hook = 10 [5 usec]