summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDave Marchevsky <davemarchevsky@fb.com>2023-02-14 03:40:11 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-02-14 06:40:48 +0300
commitbd1279ae8a691d7ec75852c6d0a22139afb034a4 (patch)
tree85ff3f66c5e5a3e8e47a719328e08bdc7f3c6940 /tools/perf/scripts/python/stackcollapse.py
parent9c395c1b99bd23f74bc628fa000480c49593d17f (diff)
downloadlinux-bd1279ae8a691d7ec75852c6d0a22139afb034a4.tar.xz
bpf: Add bpf_rbtree_{add,remove,first} kfuncs
This patch adds implementations of bpf_rbtree_{add,remove,first} and teaches verifier about their BTF_IDs as well as those of bpf_rb_{root,node}. All three kfuncs have some nonstandard component to their verification that needs to be addressed in future patches before programs can properly use them: * bpf_rbtree_add: Takes 'less' callback, need to verify it * bpf_rbtree_first: Returns ptr_to_node_type(off=rb_node_off) instead of ptr_to_rb_node(off=0). Return value ref is non-owning. * bpf_rbtree_remove: Returns ptr_to_node_type(off=rb_node_off) instead of ptr_to_rb_node(off=0). 2nd arg (node) is a non-owning reference. Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com> Link: https://lore.kernel.org/r/20230214004017.2534011-3-davemarchevsky@fb.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions