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
..
blktrace.c
UPSTREAM: cgroup: use cgrp->kn->id as the cgroup ID
2025-12-23 13:36:09 -08:00
bpf_trace.c
UPSTREAM: bpf: Add d_path helper
2026-01-14 18:12:23 -08:00
fgraph.c
ftrace.c
BACKPORT: ftrace: Add modify_ftrace_direct()
2025-12-23 13:35:46 -08:00
ftrace_internal.h
ipc_logging.c
ipc_logging_debug.c
ipc_logging_private.h
Kconfig
UPSTREAM: ftrace: Add register_ftrace_direct()
2025-12-23 13:35:45 -08:00
Makefile
msm_rtb.c
power-traces.c
preemptirq_delay_test.c
tracing: Add MODULE_DESCRIPTION() to preemptirq_delay_test
2024-07-05 09:08:25 +02:00
preemptirq_long.c
ring_buffer.c
This is the 5.4.292 stable release
2025-04-11 08:16:05 +00:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c
BACKPORT: sysctl: pass kernel pointers to ->proc_handler
2025-12-23 13:36:15 -08:00
trace.h
Merge tag 'ASB-2023-12-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina
2023-12-11 20:22:05 +02:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
tracing: Use atomic64_inc_return() in trace_clock_counter()
2024-12-14 19:44:53 +01:00
trace_dynevent.c
trace_dynevent.h
trace_entries.h
trace_event_perf.c
Merge 5.4.287 into android11-5.4-lts
2024-12-16 10:50:16 +00:00
trace_events.c
Merge tag 'ASB-2025-10-06_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina
2025-10-08 15:17:54 +03:00
trace_events_filter.c
Revert "tracing: Have trace_event_file have ref counters"
2023-11-30 09:24:41 +00:00
trace_events_filter_test.h
trace_events_hist.c
Merge branch 'android11-5.4-lts' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina
2025-12-11 01:41:51 -08:00
trace_events_trigger.c
Revert "tracing/trigger: Fix to return error if failed to alloc snapshot"
2024-05-02 16:18:30 +02:00
trace_export.c
trace_functions.c
trace_functions_graph.c
tracing: Fix use-after-free in print_graph_function_flags during tracer switching
2025-04-10 14:29:43 +02:00
trace_hwlat.c
trace_irqsoff.c
Merge tag 'ASB-2025-05-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina
2025-05-18 08:00:20 +00:00
trace_kdb.c
trace_kprobe.c
tracing: Fix race condition in kprobe initialization causing NULL pointer dereference
2025-10-29 13:59:55 +01:00
trace_kprobe_selftest.c
trace_kprobe_selftest.h
trace_mmiotrace.c
trace_nop.c
trace_output.c
tracing: Remove precision vsnprintf() check from print event
2024-11-08 16:20:43 +01:00
trace_output.h
trace_preemptirq.c
trace_printk.c
trace_probe.c
tracing: Consider the NULL character when validating the event length
2024-11-08 16:20:51 +01:00
trace_probe.h
tracing: Fix race condition in kprobe initialization causing NULL pointer dereference
2025-10-29 13:59:55 +01:00
trace_probe_tmpl.h
tracing/probes: Fix to update dynamic data counter if fetcharg uses it
2023-08-30 16:27:14 +02:00
trace_sched_switch.c
trace_sched_wakeup.c
tracing: Fix use-after-free in print_graph_function_flags during tracer switching
2025-04-10 14:29:43 +02:00
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c
Merge tag 'ASB-2025-12-01_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina
2025-12-04 19:21:35 +02:00
tracing_map.c
tracing: Fix cmp_entries_dup() to respect sort() comparison rules
2024-12-14 19:44:48 +01:00
tracing_map.h