Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 locks
- Loading branch information