Commit a2c5425
tracing: Add .graph suffix option to histogram value
Add the .graph suffix which shows the bar graph of the histogram value.
For example, the below example shows that the bar graph
of the histogram of the runtime for each tasks.
------
# cd /sys/kernel/debug/tracing/
# echo hist:keys=pid:vals=runtime.graph:sort=pid > \
events/sched/sched_stat_runtime/trigger
# sleep 10
# cat events/sched/sched_stat_runtime/hist
# event histogram
#
# trigger info: hist:keys=pid:vals=hitcount,runtime.graph:sort=pid:size=2048 [active]
#
{ pid: 14 } hitcount: 2 runtime:
{ pid: 16 } hitcount: 8 runtime:
{ pid: 26 } hitcount: 1 runtime:
{ pid: 57 } hitcount: 3 runtime:
{ pid: 61 } hitcount: 20 runtime: ###
{ pid: 66 } hitcount: 2 runtime:
{ pid: 70 } hitcount: 3 runtime:
{ pid: 72 } hitcount: 2 runtime:
{ pid: 145 } hitcount: 14 runtime: ####################
{ pid: 152 } hitcount: 5 runtime: #######
{ pid: 153 } hitcount: 2 runtime: ####
Totals:
Hits: 62
Entries: 11
Dropped: 0
-------
Link: https://lore.kernel.org/linux-trace-kernel/166610813953.56030.10944148382315789485.stgit@devnote2
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Reviewed-by: Tom Zanussi <[email protected]>
Tested-by: Tom Zanussi <[email protected]>1 parent abaa525 commit a2c5425
2 files changed
+63
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5725 | 5725 | | |
5726 | 5726 | | |
5727 | 5727 | | |
5728 | | - | |
| 5728 | + | |
| 5729 | + | |
5729 | 5730 | | |
5730 | 5731 | | |
5731 | 5732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
510 | 511 | | |
511 | 512 | | |
512 | 513 | | |
| |||
1710 | 1711 | | |
1711 | 1712 | | |
1712 | 1713 | | |
| 1714 | + | |
| 1715 | + | |
1713 | 1716 | | |
1714 | 1717 | | |
1715 | 1718 | | |
| |||
2322 | 2325 | | |
2323 | 2326 | | |
2324 | 2327 | | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
2325 | 2332 | | |
2326 | 2333 | | |
2327 | 2334 | | |
| |||
5316 | 5323 | | |
5317 | 5324 | | |
5318 | 5325 | | |
| 5326 | + | |
| 5327 | + | |
| 5328 | + | |
| 5329 | + | |
| 5330 | + | |
| 5331 | + | |
| 5332 | + | |
| 5333 | + | |
| 5334 | + | |
| 5335 | + | |
| 5336 | + | |
| 5337 | + | |
| 5338 | + | |
| 5339 | + | |
| 5340 | + | |
| 5341 | + | |
| 5342 | + | |
| 5343 | + | |
| 5344 | + | |
| 5345 | + | |
| 5346 | + | |
| 5347 | + | |
| 5348 | + | |
| 5349 | + | |
| 5350 | + | |
| 5351 | + | |
| 5352 | + | |
5319 | 5353 | | |
5320 | 5354 | | |
5321 | | - | |
| 5355 | + | |
| 5356 | + | |
5322 | 5357 | | |
5323 | 5358 | | |
5324 | 5359 | | |
| 5360 | + | |
5325 | 5361 | | |
5326 | 5362 | | |
5327 | | - | |
| 5363 | + | |
5328 | 5364 | | |
5329 | 5365 | | |
5330 | 5366 | | |
5331 | 5367 | | |
5332 | 5368 | | |
| 5369 | + | |
| 5370 | + | |
| 5371 | + | |
5333 | 5372 | | |
5334 | 5373 | | |
5335 | 5374 | | |
| |||
5339 | 5378 | | |
5340 | 5379 | | |
5341 | 5380 | | |
5342 | | - | |
| 5381 | + | |
5343 | 5382 | | |
5344 | 5383 | | |
5345 | 5384 | | |
| |||
5350 | 5389 | | |
5351 | 5390 | | |
5352 | 5391 | | |
5353 | | - | |
| 5392 | + | |
5354 | 5393 | | |
5355 | 5394 | | |
5356 | 5395 | | |
| |||
5360 | 5399 | | |
5361 | 5400 | | |
5362 | 5401 | | |
5363 | | - | |
| 5402 | + | |
5364 | 5403 | | |
5365 | 5404 | | |
5366 | 5405 | | |
| |||
5374 | 5413 | | |
5375 | 5414 | | |
5376 | 5415 | | |
5377 | | - | |
| 5416 | + | |
| 5417 | + | |
5378 | 5418 | | |
5379 | 5419 | | |
5380 | 5420 | | |
5381 | 5421 | | |
5382 | 5422 | | |
5383 | 5423 | | |
5384 | 5424 | | |
| 5425 | + | |
5385 | 5426 | | |
5386 | | - | |
| 5427 | + | |
| 5428 | + | |
5387 | 5429 | | |
5388 | | - | |
5389 | | - | |
5390 | | - | |
5391 | | - | |
| 5430 | + | |
| 5431 | + | |
| 5432 | + | |
| 5433 | + | |
5392 | 5434 | | |
5393 | 5435 | | |
5394 | 5436 | | |
5395 | 5437 | | |
5396 | | - | |
5397 | | - | |
5398 | | - | |
| 5438 | + | |
| 5439 | + | |
| 5440 | + | |
| 5441 | + | |
| 5442 | + | |
| 5443 | + | |
5399 | 5444 | | |
5400 | 5445 | | |
5401 | 5446 | | |
5402 | | - | |
| 5447 | + | |
5403 | 5448 | | |
5404 | 5449 | | |
5405 | 5450 | | |
5406 | | - | |
| 5451 | + | |
5407 | 5452 | | |
5408 | 5453 | | |
5409 | 5454 | | |
| |||
0 commit comments