diff options
| author | Leo Yan <[email protected]> | 2023-03-15 14:51:08 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-03-15 19:49:31 +0000 |
| commit | c695d48a33e7185cf5c7a7e44a6e8fe640ea1a71 (patch) | |
| tree | e7fe694edde3047bd1ab2dfde88bcd669bca17e7 /tools/perf/builtin-script.c | |
| parent | perf kvm: Use histograms list to replace cached list (diff) | |
| download | kernel-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
