diff options
| author | Ian Rogers <irogers@google.com> | 2026-10-20 13:58:51 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-10-21 19:25:29 -0300 |
| commit | c58d1598e79554cc8f587668ab2ebcaeb616b076 (patch) | |
| tree | 990fbd007f7d021bfc808ef4dbe4e1436406163c /scripts/Makefile.thinlto | |
| parent | 746cd5440b6c024af019165c927ce8a0e41171a1 (diff) | |
| download | linux-c58d1598e79554cc8f587668ab2ebcaeb616b076.tar.gz linux-c58d1598e79554cc8f587668ab2ebcaeb616b076.zip | |
perf lock contention: Filter events before creating lock_stat
In report_lock_contention_begin_event(), lock_stat_findnew() was
called before checking filters.nr_types (-Y), filters.nr_addrs (-L),
and match_callstack_filter() (-S).
When a filtered-out lock event (such as a mutex contention when
running with -Y spinlock) shared the same aggregation key as a
subsequent matching event (for example, contention on the mutex's
internal wait_lock spinlock from the same caller), the first event
created the lock_stat entry with the filtered-out lock's flags and the
second event reused that entry, causing non-spinlock entries to appear
in -Y spinlock output.
Check the type, address, and callstack filters before looking up or
creating the lock_stat entry.
Fixes: b4a7eff93c39f985 ("perf lock contention: Add -Y/--type-filter option")
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
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
