hardirqs: Optimize output information and increase CPU display #5228
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Combine the previous count and time into one,
and increase CPU independent statistics and maximum interrupt time
Before:
./hardirqs
Tracing hard irq event time... Hit Ctrl-C to end.
^C
HARDIRQ TOTAL_usecs
enp0s3 254
snd_intel8x0 368
./hardirqs -C
Tracing hard irq events... Hit Ctrl-C to end.
^C
HARDIRQ TOTAL_count
enp0s3 14
ata_piix 2
After:
./hardirqs
Tracing hard irq event time... Hit Ctrl-C to end.
^C
HARDIRQ CPU TOTAL_count TOTAL_usecs MAX_usecs
ata_piix - 2 32 21
enp0s3 - 19 318 42
./hardirqs -C
Tracing hard irq event time... Hit Ctrl-C to end.
^C
HARDIRQ CPU TOTAL_count TOTAL_usecs MAX_usecs
enp0s3 2 111375 1420732 303
enp0s3 9 1546 21826 39
ata_piix 8 8 162 33