Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: bpftool: Complete metrics list in "bpftool prog profile" doc

Profiling programs with bpftool was extended some time ago to support
two new metrics, namely itlb_misses and dtlb_misses (misses for the
instruction/data translation lookaside buffer). Update the manual page
and bash completion accordingly.

Fixes: 450d060e8f75 ("bpftool: Add {i,d}tlb_misses support for bpftool profile")
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210730215435.7095-8-quentin@isovalent.com

authored by

Quentin Monnet and committed by
Andrii Nakryiko
475a23c2 8cc8c635

+4 -2
+2 -1
tools/bpf/bpftool/Documentation/bpftool-prog.rst
··· 53 53 | **msg_verdict** | **skb_verdict** | **stream_verdict** | **stream_parser** | **flow_dissector** 54 54 | } 55 55 | *METRICs* := { 56 - | **cycles** | **instructions** | **l1d_loads** | **llc_misses** 56 + | **cycles** | **instructions** | **l1d_loads** | **llc_misses** | 57 + | **itlb_misses** | **dtlb_misses** 57 58 | } 58 59 59 60
+2 -1
tools/bpf/bpftool/bash-completion/bpftool
··· 345 345 346 346 local PROG_TYPE='id pinned tag name' 347 347 local MAP_TYPE='id pinned name' 348 - local METRIC_TYPE='cycles instructions l1d_loads llc_misses' 348 + local METRIC_TYPE='cycles instructions l1d_loads llc_misses \ 349 + itlb_misses dtlb_misses' 349 350 case $command in 350 351 show|list) 351 352 [[ $prev != "$command" ]] && return 0