diff options
| author | Shang XiaoJing <shangxiaojing@huawei.com> | 2022-09-08 10:11:39 +0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-04 08:55:21 -0300 |
| commit | 0f405f878bc15674e38648121e124a93d0cef9c3 (patch) | |
| tree | d7f001eed52690e6503754d94116a09c548aecc5 /tools/perf/scripts/python/bin | |
| parent | perf trace: Use zalloc() to save initialization of syscall_stats (diff) | |
| download | linux-0f405f878bc15674e38648121e124a93d0cef9c3.tar.gz linux-0f405f878bc15674e38648121e124a93d0cef9c3.zip | |
perf lock: Add get_key_by_aggr_mode helper
Wrap repeated code in helper functions get_key_by_aggr_mode and
get_key_by_aggr_mode_simple, which assign the value to key based on
aggregation mode. Note that for the conditions not support
LOCK_AGGR_CALLER, should call get_key_by_aggr_mode_simple directly.
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220908021141.27134-3-shangxiaojing@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
