diff options
| author | Namhyung Kim <[email protected]> | 2023-02-03 02:13:23 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-02-03 20:12:26 +0000 |
| commit | 16cad1d3597d32e470a4115f11c5e61cce6cd81b (patch) | |
| tree | df2f8221a90cd822e02476da0120c09207bb38a7 /tools/perf/builtin-script.c | |
| parent | perf lock contention: Factor out lock_contention_get_name() (diff) | |
| download | kernel-16cad1d3597d32e470a4115f11c5e61cce6cd81b.tar.gz kernel-16cad1d3597d32e470a4115f11c5e61cce6cd81b.zip | |
perf lock contention: Use lock_stat_find{,new}
This is a preparation work to support complex keys of BPF maps. Now it
has single value key according to the aggregation mode like stack_id or
pid. But we want to use a combination of those keys.
Then lock_contention_read() should still aggregate the result based on
the key that was requested by user. The other key info will be used for
filtering.
So instead of creating a lock_stat entry always, Check if it's already
there using lock_stat_find() first.
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Hao Luo <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Song Liu <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
