diff options
| author | Kan Liang <[email protected]> | 2021-01-05 11:57:47 -0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-01-20 14:34:20 -0300 |
| commit | 407ee5c920dfead7b3fcff0644843c2f84d24245 (patch) | |
| tree | 78f8c3595bc3da6e876dbe9be48edf8eb0a91aa6 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 80ec45d9f6d11db2e17b6d6aba6e8ad04b020060 (diff) | |
perf mem: Clean up output format
Now, "--phys-data" is the only option which impacts the output format.
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
output format. The code will become too complex to be maintained.
Divide the big printf into several small pieces. Output the specific
piece only if the 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: Ingo Molnar <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[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