diff options
author | Kui-Feng Lee <kuifeng@fb.com> | 2022-09-26 11:49:57 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-09-28 16:30:08 -0700 |
commit | 6bdb6d6be019f697296f52c37865dd7b0ce80750 (patch) | |
tree | d89a236e696c709e1798ced9fe215c7d6d74befb /tools/testing/selftests/bpf/prog_tests/tcp_rtt.c | |
parent | b3e1331eb925a45df1cc5d02a725e5ea70da0e2e (diff) |
bpftool: Show parameters of BPF task iterators.
Show tid or pid of iterators if giving an argument of tid or pid
For example, the command `bpftool link list` may list following
lines.
1: iter prog 2 target_name bpf_map
2: iter prog 3 target_name bpf_prog
33: iter prog 225 target_name task_file tid 1644
pids test_progs(1644)
Link 33 is a task_file iterator with tid 1644. For now, only targets
of task, task_file and task_vma may be with tid or pid to filter out
tasks other than those belonging to a process (pid) or a thread (tid).
Signed-off-by: Kui-Feng Lee <kuifeng@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/bpf/20220926184957.208194-6-kuifeng@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_rtt.c')
0 files changed, 0 insertions, 0 deletions