hi, adding bpf_vma_build_id_parse helper that parses build ID of ELF file mapped vma struct passed as an argument. I originally wanted to add this as kfunc, but we need to be sure the receiving buffer is big enough and we can't check for that on kfunc side. The use case for this helper is to provide the build id for executed binaries on kernel side, when the monitoring user side does not have access to the actual binaries. thanks, jirka --- Jiri Olsa (3): bpf: Split btf_id/size union in struct bpf_func_proto bpf: Add bpf_vma_build_id_parse helper selftests/bpf: Add build_id_parse kfunc test include/linux/bpf.h | 2 ++ include/uapi/linux/bpf.h | 9 +++++++++ kernel/trace/bpf_trace.c | 22 ++++++++++++++++++++++ scripts/bpf_doc.py | 2 ++ tools/include/uapi/linux/bpf.h | 9 +++++++++ tools/testing/selftests/bpf/prog_tests/vma_build_id_parse.c | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/testing/selftests/bpf/progs/vma_build_id_parse.c | 34 ++++++++++++++++++++++++++++++++++ 7 files changed, 162 insertions(+) create mode 100644 tools/testing/selftests/bpf/prog_tests/vma_build_id_parse.c create mode 100644 tools/testing/selftests/bpf/progs/vma_build_id_parse.c