diff options
| author | 2026-09-28 11:25:53 -0700 | |
|---|---|---|
| committer | 2026-10-01 17:38:33 +0200 | |
| commit | 1fdf657871b9240edcaaf1d15caaac5b78a84317 (patch) | |
| tree | aee86c2a5a6c2a5a371fe77f6ecb32868644c937 /scripts/Makefile.thinlto | |
| parent | perf trace: Destroy the BPF skeleton if it fails to load (diff) | |
perf thread_map: Add thread_map__tgid()
bpf-filter reads the tgid of each thread in a thread map from /proc, to
key its BPF map by process, and perf trace is about to do the same. Move
convert_to_tgid() to thread_map.c as thread_map__tgid(), taking the
thread map and index both users have.
While moving it, fix two bugs. Match Tgid: at the start of a line, as a
task can set its comm, shown on the Name: line before it, to contain
"Tgid: <n>". And check the character after the number before freeing the
buffer it points into, rather than after.
Fixes: eb1693b1150d4b99 ("perf bpf-filter: Split per-task filter use case")
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
