diff options
author | Jackie Liu <liuyun01@kylinos.cn> | 2023-07-05 17:12:09 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-07-06 16:05:08 -0700 |
commit | 56baeeba0a355ecf4d0c71bfbb1d5ba09501dbfc (patch) | |
tree | 547d48b0aad61f19e5ebc5d8b83f4aa81c9cf114 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | |
parent | 8a3fe76f8718bad4056d665bee1a0c43d128af72 (diff) |
libbpf: Use available_filter_functions_addrs with multi-kprobes
Now that kernel provides a new available_filter_functions_addrs file
which can help us avoid the need to cross-validate
available_filter_functions and kallsyms, we can improve efficiency of
multi-attach kprobes. For example, on my device, the sample program [1]
of start time:
$ sudo ./funccount "tcp_*"
before after
1.2s 1.0s
[1]: https://github.com/JackieLiu1/ketones/tree/master/src/funccount
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230705091209.3803873-2-liu.yun@linux.dev
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions