android_kernel_motorola_sm6375/tools/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jiri Olsa 73ea92cc7a
UPSTREAM: bpf: Add d_path helper
Adding d_path helper function that returns full path for
given 'struct path' object, which needs to be the kernel
BTF 'path' object. The path is returned in buffer provided
'buf' of size 'sz' and is zero terminated.

  bpf_d_path(&file->f_path, buf, size);

The helper calls directly d_path function, so there's only
limited set of function it can be called from. Adding just
very modest set for the start.

Updating also bpf.h tools uapi header and adding 'path' to
bpf_helpers_doc.py script.

Change-Id: Ic530ea9da08f5f6479bfd7a5b7c8c26d7d4aaa66
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: KP Singh <kpsingh@google.com>
Link: https://lore.kernel.org/bpf/20200825192124.710397-11-jolsa@kernel.org
2026-01-14 18:12:23 -08:00
..
asm
asm-generic hugetlb_encode.h: fix undefined behaviour (34 << 26) 2024-07-05 09:08:20 +02:00
linux tools: move alignment-related macros to new <linux/align.h> 2024-09-04 13:15:02 +02:00
nolibc tools/nolibc/string: Fix memcmp() implementation 2022-11-10 17:57:55 +01:00
tools
trace/events
uapi UPSTREAM: bpf: Add d_path helper 2026-01-14 18:12:23 -08:00