aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/perf_buffer.c
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2020-08-21 18:44:18 +0000
committerAlexei Starovoitov <[email protected]>2020-08-21 21:01:39 +0000
commit6b0a249a301e2af9adda84adbced3a2988248b95 (patch)
tree889c95fb17b222cd9b2d1809845b6e988692525b /tools/testing/selftests/bpf/prog_tests/perf_buffer.c
parentselftests/bpf: List newest Clang built-ins needed for some CO-RE selftests (diff)
downloadkernel-6b0a249a301e2af9adda84adbced3a2988248b95.tar.gz
kernel-6b0a249a301e2af9adda84adbced3a2988248b95.zip
bpf: Implement link_query for bpf iterators
This patch implemented bpf_link callback functions show_fdinfo and fill_link_info to support link_query interface. The general interface for show_fdinfo and fill_link_info will print/fill the target_name. Each targets can register show_fdinfo and fill_link_info callbacks to print/fill more target specific information. For example, the below is a fdinfo result for a bpf task iterator. $ cat /proc/1749/fdinfo/7 pos: 0 flags: 02000000 mnt_id: 14 link_type: iter link_id: 11 prog_tag: 990e1f8152f7e54f prog_id: 59 target_name: task Signed-off-by: Yonghong Song <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/perf_buffer.c')
0 files changed, 0 insertions, 0 deletions