aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/perf/lib.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2022-05-11 21:15:23 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-05-23 13:08:15 +0000
commit1634b5a1f11cf407255d42fcc1d6bf257d16adab (patch)
treec83c79c78f56127aca3dfab4413fa5672fdeea5d /tools/lib/perf/lib.c
parentperf vendor events: Fix Ivytown UNC_M_ACT_COUNT.RD umask (diff)
downloadkernel-1634b5a1f11cf407255d42fcc1d6bf257d16adab.tar.gz
kernel-1634b5a1f11cf407255d42fcc1d6bf257d16adab.zip
perf jevents: Modify match field
The match_field function looks for json values to append to the event string. As the C code processes these in order the output order matches that in the json dictionary. Python json readers read the entire dictionary and lose the ordering. To make the python and C output comparable make the C code first read the extra fields then append them to the event in an order not determined by their order in the file. Modify the pmu-events test so that test expectations match the new order. Reviewed-by: John Garry <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ananth Narayan <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Andrew Kilroy <[email protected]> Cc: Caleb Biggers <[email protected]> Cc: Felix Fietkau <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kajol Jain <[email protected]> Cc: Kan Liang <[email protected]> Cc: Kshipra Bopardikar <[email protected]> Cc: Like Xu <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mathieu Poirier <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Nick Forrington <[email protected]> Cc: Paul Clarke <[email protected]> Cc: Perry Taylor <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Qi Liu <[email protected]> Cc: Ravi Bangoria <[email protected]> Cc: Sandipan Das <[email protected]> Cc: Santosh Shukla <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Will Deacon <[email protected]> Cc: Xing Zhengjun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/perf/lib.c')
0 files changed, 0 insertions, 0 deletions