summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorShrikanth Hegde <sshegde@linux.ibm.com>2026-09-21 14:31:53 +0530
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-09-25 10:16:10 +0530
commit2d97c8498a9fca1a876b7a8b4fda024f8e234361 (patch)
treeb2a8e31366b8fd1c2b08316daec89b0a3b5e1cf1 /tools/perf/scripts/python
parentfbb22ceaaf8f9c6786e6ff5da1962fe6ac0fc904 (diff)
powerpc/irq: Suppress unlikely interrupt stats by default
Some interrupts are always zero and that is expected since they occur very rarely and are mostly error indications. Don't print them by default. "MCE" - "Machine check exceptions" "NMI" - "System Reset interrupts" Print them if they occur once. Maintain a bitmap to know which interrupts are to be printed. Time taken to read /proc/interrupts 1000 times. Base and v6 details can be found in cover-letter. Base : 103us v6 : 63us v6+patch 1+2 : 57us v6+patch 1+2+3 : 54us Patch 3 shows an additional 5% gain compared to patch 1+2. So it does make sense to print them only if they are ever set. Note: Since /proc/interrupts depend on kconfig and arch dependent, userspace tools don't make explicit assumptions. Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260921090153.54745-4-sshegde@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions