diff options
author | Aditi Ghag <[email protected]> | 2023-05-19 22:51:54 +0000 |
---|---|---|
committer | Martin KaFai Lau <[email protected]> | 2023-05-19 22:44:14 -0700 |
commit | e924e80ee6a39bc28d2ef8f51e19d336a98e3be0 (patch) | |
tree | 9caa4a087cd59b60fbecbc2d727051bd0ffeb33d /tools/perf/scripts/python/libxed.py | |
parent | c96dac8d369ffd713a45f4e5c30f23c47a1671f0 (diff) |
bpf: Add kfunc filter function to 'struct btf_kfunc_id_set'
This commit adds the ability to filter kfuncs to certain BPF program
types. This is required to limit bpf_sock_destroy kfunc implemented in
follow-up commits to programs with attach type 'BPF_TRACE_ITER'.
The commit adds a callback filter to 'struct btf_kfunc_id_set'. The
filter has access to the `bpf_prog` construct including its properties
such as `expected_attached_type`.
Signed-off-by: Aditi Ghag <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions