[Crash-utility] [PATCH v2] add option -s and -S for subcommand irq

zhangyanfei zhangyanfei at cn.fujitsu.com
Mon Jan 16 03:41:45 UTC 2012


Re-posting two patch as attachments. I'm sorry for the problems on the
first pass. I have tested the two patches on RHEL 5.8beta (x86, x86_64)
, RHEL 6.2ga (x86, x86_64), and RHEL 6.2ga with kernel 3.2 (x86, x86_64).

--
Hello Dave,

The subcommand irq can dump the most of the irq information. Here I add
some options to make some improvements for irq.
1. option '-s': display the cpu affinity for in-use IRQs.
2. option '-S' and '-c': display the percpu irq stats. -c is used to
specify the cpu for which irq stats should be displayed. Without option
-c, 'irq -S' displays the irq stats for all cpus. The output of this
option is just like 'cat /proc/interrupts' shows.

Two patches attched:
-s: 0001-Add-s-option-for-irq-to-dump-the-cpu-affinity-of-in-.patch
-S and -c: 0002-Add-S-and-c-option-for-irq-to-dump-the-kernel-irq-st.patch
And the second patch is made at the base of the first patch.

Thanks.
Zhang Yanfei
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Add-s-option-for-irq-to-dump-the-cpu-affinity-of-in-.patch
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120116/16bc9b05/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-Add-S-and-c-option-for-irq-to-dump-the-kernel-irq-st.patch
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120116/16bc9b05/attachment-0001.ksh>


More information about the Crash-utility mailing list