Commit bfccfe6
libbpf-tools/klockstat: Print human friendly time stats
Instead of nsec, it can show the time with unit like below:
$ sudo klockstat -n 5
Tracing mutex/sem lock events... Hit Ctrl-C to end
^C
Caller Avg Wait Count Max Wait Total Wait
iwl_mvm_mac_sta_statistics+0x6b 703.9 us 4 2.5 ms 2.8 ms
i915_vma_pin_ww+0x6ff 1.0 us 5224 1.8 ms 5.2 ms
do_epoll_wait+0x1d5 1.9 us 8569 651.3 us 16.0 ms
kernfs_dop_revalidate+0x35 1.1 us 1176 540.2 us 1.3 ms
kernfs_iop_permission+0x2a 1.0 us 1512 528.6 us 1.5 ms
Caller Avg Hold Count Max Hold Total Hold
__fdget_pos+0x42 13.4 ms 201 19.7 ms 2.7 s
genl_rcv+0x15 1.8 ms 8 6.3 ms 14.3 ms
nl80211_pre_doit+0xdb 1.9 ms 4 6.2 ms 7.4 ms
ieee80211_get_station+0x2a 1.8 ms 4 6.2 ms 7.1 ms
bpf_tracing_prog_attach+0x264 2.9 ms 15 3.8 ms 43.4 ms
Exiting trace of mutex/sem locks1 parent 67b8cfb commit bfccfe6
1 file changed
+40
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
330 | 356 | | |
331 | 357 | | |
332 | 358 | | |
| |||
336 | 362 | | |
337 | 363 | | |
338 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
339 | 368 | | |
340 | 369 | | |
341 | | - | |
| 370 | + | |
342 | 371 | | |
343 | | - | |
| 372 | + | |
344 | 373 | | |
345 | | - | |
346 | | - | |
| 374 | + | |
| 375 | + | |
347 | 376 | | |
348 | 377 | | |
349 | 378 | | |
| |||
364 | 393 | | |
365 | 394 | | |
366 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
367 | 399 | | |
368 | 400 | | |
369 | | - | |
| 401 | + | |
370 | 402 | | |
371 | | - | |
| 403 | + | |
372 | 404 | | |
373 | | - | |
374 | | - | |
| 405 | + | |
| 406 | + | |
375 | 407 | | |
376 | 408 | | |
377 | 409 | | |
| |||
0 commit comments