aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorLeo Yan <[email protected]>2023-03-15 14:51:08 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-03-15 19:49:31 +0000
commitc695d48a33e7185cf5c7a7e44a6e8fe640ea1a71 (patch)
treee7fe694edde3047bd1ab2dfde88bcd669bca17e7 /tools/perf/builtin-script.c
parentperf kvm: Use histograms list to replace cached list (diff)
downloadkernel-c695d48a33e7185cf5c7a7e44a6e8fe640ea1a71.tar.gz
kernel-c695d48a33e7185cf5c7a7e44a6e8fe640ea1a71.zip
perf kvm: Polish sorting key
Since histograms supports sorting, the tool doesn't need to maintain the mapping between the sorting keys and the corresponding comparison callbacks, therefore, this patch removes structure kvm_event_key. But we still need to validate the sorting key, this patch uses an array for sorting keys and renames function select_key() to is_valid_key() to validate the sorting key passed by user. Signed-off-by: Leo Yan <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Garry <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[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