summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/probe-file.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2022-12-19 21:17:31 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-12-21 18:52:39 +0100
commit5e3febe7b7b99f942311ddfa05bb06910d06b14d (patch)
tree58baf1524707635c5f58de9b601e34fc37049c73 /tools/perf/util/probe-file.h
parentperf lock contention: Add -L/--lock-filter option (diff)
downloadlinux-5e3febe7b7b99f942311ddfa05bb06910d06b14d.tar.xz
linux-5e3febe7b7b99f942311ddfa05bb06910d06b14d.zip
perf lock contention: Support lock addr/name filtering for BPF
Likewise, add addr_filter BPF hash map and check it with the lock address. $ sudo ./perf lock con -ab -L tasklist_lock -- ./perf bench sched messaging # Running 'sched/messaging' benchmark: # 20 sender and receiver processes per group # 10 groups == 400 processes run Total time: 0.169 [sec] contended total wait max wait avg wait type caller 18 174.09 us 25.31 us 9.67 us rwlock:W do_exit+0x36d 5 32.34 us 10.87 us 6.47 us rwlock:R do_wait+0x8b 4 15.41 us 4.73 us 3.85 us rwlock:W release_task+0x6e Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Blake Jones <blakejones@google.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Song Liu <song@kernel.org> Cc: bpf@vger.kernel.org Link: https://lore.kernel.org/r/20221219201732.460111-6-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-file.h')
0 files changed, 0 insertions, 0 deletions