aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-10-01 23:54:39 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-10-02 18:04:37 +0200
commit1858a4df3ecbbdf5dce6d4df9edbebed403015ed (patch)
treeb6ee3f233efaeb8aab67a1ecccba50d5db7c26c9 /scripts
parentperf 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')
0 files changed, 0 insertions, 0 deletions