Commit 2bacfd9
tracing/histogram: Fix a few problems with stacktrace variable printing
Currently, there are a few problems when printing hist triggers and
trace output when using stacktrace variables. This fixes the problems
seen below:
# echo 'hist:keys=delta.buckets=100,stack.stacktrace:sort=delta' > /sys/kernel/debug/tracing/events/synthetic/block_lat/trigger
# cat /sys/kernel/debug/tracing/events/synthetic/block_lat/trigger
hist:keys=delta.buckets=100,stacktrace:vals=hitcount:sort=delta.buckets=100:size=2048 [active]
# echo 'hist:keys=next_pid:ts=common_timestamp.usecs,st=stacktrace if prev_state == 2' >> /sys/kernel/debug/tracing/events/sched/sched_switch/trigger
# cat /sys/kernel/debug/tracing/events/sched/sched_switch/trigger
hist:keys=next_pid:vals=hitcount:ts=common_timestamp.usecs,st=stacktrace.stacktrace:sort=hitcount:size=2048:clock=global if prev_state == 2 [active]
and also in the trace output (should be stack.stacktrace):
{ delta: ~ 100-199, stacktrace __schedule+0xa19/0x1520
Link: https://lkml.kernel.org/r/60bebd4e546728e012a7a2bcbf58716d48ba6edb.1676063532.git.zanussi@kernel.org
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 8261ef2 commit 2bacfd9
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
1362 | 1365 | | |
1363 | 1366 | | |
1364 | 1367 | | |
| |||
5339 | 5342 | | |
5340 | 5343 | | |
5341 | 5344 | | |
5342 | | - | |
| 5345 | + | |
| 5346 | + | |
| 5347 | + | |
| 5348 | + | |
5343 | 5349 | | |
5344 | 5350 | | |
5345 | 5351 | | |
| |||
5884 | 5890 | | |
5885 | 5891 | | |
5886 | 5892 | | |
5887 | | - | |
| 5893 | + | |
| 5894 | + | |
5888 | 5895 | | |
5889 | 5896 | | |
5890 | 5897 | | |
| |||
5917 | 5924 | | |
5918 | 5925 | | |
5919 | 5926 | | |
5920 | | - | |
5921 | | - | |
5922 | | - | |
| 5927 | + | |
| 5928 | + | |
| 5929 | + | |
| 5930 | + | |
| 5931 | + | |
| 5932 | + | |
5923 | 5933 | | |
5924 | 5934 | | |
5925 | 5935 | | |
| |||
0 commit comments