Commit ccf47f5
tracing: Add nohitcount option for suppressing display of raw hitcount
Add 'nohitcount' ('NOHC' for short) option for suppressing display of
the raw hitcount column in the histogram.
Note that you must specify at least one value except raw 'hitcount'
when you specify this nohitcount option.
# cd /sys/kernel/debug/tracing/
# echo hist:keys=pid:vals=runtime.percent,runtime.graph:sort=pid:NOHC > \
events/sched/sched_stat_runtime/trigger
# sleep 10
# cat events/sched/sched_stat_runtime/hist
# event histogram
#
# trigger info: hist:keys=pid:vals=runtime.percent,runtime.graph:sort=pid:size=2048:nohitcount [active]
#
{ pid: 8 } runtime (%): 3.02 runtime: #
{ pid: 14 } runtime (%): 2.25 runtime:
{ pid: 16 } runtime (%): 2.25 runtime:
{ pid: 26 } runtime (%): 0.17 runtime:
{ pid: 61 } runtime (%): 11.52 runtime: ####
{ pid: 67 } runtime (%): 1.56 runtime:
{ pid: 68 } runtime (%): 0.84 runtime:
{ pid: 76 } runtime (%): 0.92 runtime:
{ pid: 117 } runtime (%): 2.50 runtime: #
{ pid: 146 } runtime (%): 49.88 runtime: ####################
{ pid: 157 } runtime (%): 16.63 runtime: ######
{ pid: 158 } runtime (%): 8.38 runtime: ###
Link: https://lore.kernel.org/linux-trace-kernel/166610814787.56030.4980636083486339906.stgit@devnote2
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Reviewed-by: Tom Zanussi <[email protected]>
Tested-by: Tom Zanussi <[email protected]>1 parent a2c5425 commit ccf47f5
2 files changed
+29
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5678 | 5678 | | |
5679 | 5679 | | |
5680 | 5680 | | |
| 5681 | + | |
5681 | 5682 | | |
5682 | 5683 | | |
5683 | 5684 | | |
| |||
5734 | 5735 | | |
5735 | 5736 | | |
5736 | 5737 | | |
| 5738 | + | |
| 5739 | + | |
5737 | 5740 | | |
5738 | 5741 | | |
5739 | 5742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
526 | 527 | | |
527 | 528 | | |
528 | 529 | | |
| 530 | + | |
529 | 531 | | |
530 | 532 | | |
531 | 533 | | |
| |||
1550 | 1552 | | |
1551 | 1553 | | |
1552 | 1554 | | |
1553 | | - | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
1554 | 1559 | | |
1555 | 1560 | | |
1556 | 1561 | | |
| |||
4377 | 4382 | | |
4378 | 4383 | | |
4379 | 4384 | | |
| 4385 | + | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
| 4389 | + | |
| 4390 | + | |
4380 | 4391 | | |
4381 | 4392 | | |
4382 | 4393 | | |
| |||
5388 | 5399 | | |
5389 | 5400 | | |
5390 | 5401 | | |
5391 | | - | |
5392 | | - | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
5393 | 5405 | | |
5394 | 5406 | | |
5395 | 5407 | | |
5396 | 5408 | | |
5397 | | - | |
5398 | 5409 | | |
5399 | 5410 | | |
5400 | 5411 | | |
| |||
5839 | 5850 | | |
5840 | 5851 | | |
5841 | 5852 | | |
| 5853 | + | |
5842 | 5854 | | |
5843 | 5855 | | |
5844 | 5856 | | |
| |||
5869 | 5881 | | |
5870 | 5882 | | |
5871 | 5883 | | |
5872 | | - | |
| 5884 | + | |
| 5885 | + | |
| 5886 | + | |
5873 | 5887 | | |
5874 | | - | |
5875 | | - | |
| 5888 | + | |
| 5889 | + | |
| 5890 | + | |
5876 | 5891 | | |
5877 | 5892 | | |
| 5893 | + | |
5878 | 5894 | | |
5879 | 5895 | | |
5880 | 5896 | | |
| |||
5925 | 5941 | | |
5926 | 5942 | | |
5927 | 5943 | | |
| 5944 | + | |
| 5945 | + | |
5928 | 5946 | | |
5929 | 5947 | | |
5930 | 5948 | | |
| |||
0 commit comments