A old patch for count signals too when count syscalls

Shen Feng shen at cn.fujitsu.com
Tue Dec 25 07:28:38 UTC 2007


I send the patch a few months ago.
I add a new option -g for strace. This make strace count signals when syscalls
are counted.
The patch is attached. And the changelog:

* defs.h (count_signal): Declare a new function.

* count.c (struct signal_counts): Define it.
(count_signal): New function.
(signal_cmp): New function.
(sig_count_cmp): New function.
(set_sortby): Add sort function for signal.
(call_summary_signal_pers): New function.
(call_summary): Add signal count report.

*strace.c (gflag): Add g option support.
(usage): Likewise.
(main): Likewise.
(trace): Add count signal support.

Best Regards,
Shen Feng
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
8/F., Civil Defense Building, No.189 Guangzhou Road,
Nanjing, 210029, China
MAIL:shen at cn.fujitsu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signal.patch
Type: text/x-patch
Size: 6812 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20071225/b0a82967/attachment.bin>

More information about the Strace-devel mailing list