diff options
| author | 2026-10-01 23:54:39 -0700 | |
|---|---|---|
| committer | 2026-10-02 18:04:37 +0200 | |
| commit | 1858a4df3ecbbdf5dce6d4df9edbebed403015ed (patch) | |
| tree | b6ee3f233efaeb8aab67a1ecccba50d5db7c26c9 /scripts/Makefile.thinlto | |
| parent | perf build: Fix clean and install target dependencies (diff) | |
perf trace: Only call bpf_get_current_pid_tgid() when filtering tasks
In task_traced(), bpf_get_current_pid_tgid() was called before checking
has_pids_to_trace. Because BPF helper calls are not marked pure, the
compiler cannot sink the call past the has_pids_to_trace check, so the
helper was called on every syscall enter and exit even when tracing
system-wide.
Check has_pids_to_trace before calling bpf_get_current_pid_tgid().
Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Jakub Brnak <jbrnak@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
