diff options
author | Kan Liang <[email protected]> | 2020-12-16 10:57:59 -0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-12-19 17:53:29 -0300 |
commit | 2e7f545096f954a9726c9415763dd0bfbcac47e0 (patch) | |
tree | 28bfd60823dcfbf8e3a9d54c60e1ffe3adef4716 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a50d03e3b8b68df13e47dcbde6c5d39b4237c479 (diff) |
perf mem: Factor out a function to generate sort order
Now, "--phys-data" is the only option which impacts the sort order. A
simple "if else" is enough to handle the option. But there will be more
options added, e.g. "--data-page-size", which also impact the sort
order. The code will become too complex to be maintained.
Divide the sort order string into several small pieces. The first piece
is always the default sort string for LOAD/STORE. Appends the specific
sort string if related option is applied.
No functional change.
Signed-off-by: Kan Liang <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Will Deacon <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions