perf stat: Make some of the stat code generic
Status from this message: Thanks, applied,
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/43 | perf stat: Use evsel->threads in create_perf_stat_countertools/ | +1 | 0 replies | |
| 2/43 | perf stat: Move initial_delay into struct perf_stat_configtools/ tools/ | +18 | 0 replies | |
| 3/43 | perf stat: Move no_inherit into struct perf_stat_configtools/ tools/ | +3 | 0 replies | |
| 4/43 | perf stat: Use local config arg for scale in create_perf_stat_countertools/ | +1 | 0 replies | |
| 5/43 | perf stat: Add identifier flag into struct stat_optstools/ tools/ | +13 | 0 replies | |
| 6/43 | perf tools: Switch session argument to evlist in perf_event__synthesize_attrstools/ tools/ tools/ +1 more | +6 | 0 replies | |
| 7/43 | perf tools: Add perf_evsel__store_ids functiontools/ tools/ tools/ | +31 | 0 replies | |
| 8/43 | perf stat: Move create_perf_stat_counter into stat.ctools/ tools/ tools/ | +58 | 0 replies | |
| 9/43 | perf stat: Rename is_pipe argument to attrs perf_stat_synthesize_configtools/ | +3 | 0 replies | |
| 10/43 | perf stat: Add struct perf_stat_config argument to perf_stat_synthesize_configtools/ | +4 | 0 replies | |
| 11/43 | perf stat: Add struct perf_tool argument to perf_stat_synthesize_configtools/ | +7 | 0 replies | |
| 12/43 | perf stat: Add struct perf_evlist argument to perf_stat_synthesize_configtools/ | +7 | 0 replies | |
| 13/43 | perf stat: Add perf_event__handler_t argument to perf_stat_synthesize_configtools/ | +7 | 0 replies | |
| 14/43 | perf stat: Move perf_stat_synthesize_config into stat.ctools/ tools/ tools/ | +48 | 0 replies | |
| 15/43 | perf stat: Add perf_evlist__print_counters functiontools/ | +12 | 0 replies | |
| 16/43 | perf stat: Move STAT_RECORD out of perf_evlist__print_counterstools/ | +4 | 0 replies | |
| 17/43 | perf stat: Add stat_config argument to perf_evlist__print_counterstools/ | +9 | 0 replies | |
| 18/43 | perf stat: Pass stat_config argument to local print functionstools/ | +80 | 0 replies | |
| 19/43 | perf stat: Pass stat_config argument to global print functionstools/ tools/ tools/ +1 more | +131 | 0 replies | |
| 20/43 | perf stat: Move csv_* into struct perf_stat_configtools/ tools/ | +58 | 0 replies | |
| 21/43 | perf stat: Move interval_clear into struct perf_stat_configtools/ tools/ | +5 | 0 replies | |
| 22/43 | perf stat: Move metric_only into struct perf_stat_configtools/ tools/ | +17 | 0 replies | |
| 23/43 | perf stat: Move unit_width into struct perf_stat_configtools/ tools/ | +7 | 0 replies | |
| 24/43 | perf stat: Add target argument to perf_evlist__print_counterstools/ | +11 | 0 replies | |
| 25/43 | perf stat: Pass evlist argument to print functionstools/ | +13 | 0 replies | |
| 26/43 | perf stat: Use evsel->evlist instead of evsel_list in collect_all_aliasestools/ | +3 | 0 replies | |
| 27/43 | perf stat: Move run_count into struct perf_stat_configtools/ tools/ | +21 | 0 replies | |
| 28/43 | perf stat: Move metric_only_len into struct perf_stat_configtools/ tools/ | +6 | 0 replies | |
| 29/43 | perf stat: Pass stat_config to first_shadow_cputools/ | +8 | 0 replies | |
| 30/43 | perf stat: Pass evlist to aggr_update_shadowtools/ | +4 | 0 replies | |
| 31/43 | perf stat: Add walltime_nsecs_stats pointer into struct perf_stat_configtools/ tools/ | +9 | 0 replies | |
| 32/43 | perf stat: Move null_run into struct perf_stat_configtools/ tools/ | +4 | 0 replies | |
| 33/43 | perf stat: Move print_free_counters_hint into struct perf_stat_configtools/ tools/ | +3 | 0 replies | |
| 34/43 | perf stat: Move print_mixed_hw_group_error into struct perf_stat_configtools/ tools/ | +3 | 0 replies | |
| 35/43 | perf stat: Move ru_* data into struct perf_stat_configtools/ tools/ | +11 | 0 replies | |
| 36/43 | perf stat: Move *_aggr_* data into struct perf_stat_configtools/ tools/ | +64 | 0 replies | |
| 37/43 | perf stat: Do not use glovab evsel_list in print functionstools/ | +3 | 0 replies | |
| 38/43 | perf stat: Move big_num data into struct perf_stat_configtools/ tools/ | +5 | 0 replies | |
| 39/43 | perf stat: Move no_merge data into struct perf_stat_configtools/ tools/ | +3 | 0 replies | |
| 40/43 | perf stat: Propagate struct target arg to sort_aggr_threadtools/ | +6 | 0 replies | |
| 41/43 | perf stat: Move walltime_* data into struct perf_stat_configtools/ tools/ | +12 | 0 replies | |
| 42/43 | perf stat: Move metric_events into struct perf_stat_configtools/ tools/ | +5 | 0 replies | |
| 43/43 | perf stat: Move display functions into stat-display.ctools/ tools/ tools/ +1 more | +1173 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/43] perf stat: Make some of the stat code generic
hi,
while going for the ability to store/display stat data in perf record/top I ended up with bunch of generic patches that make some of the stat functions standalone and simplify/reduce the builtin-stat.c code.
This patchset mostly separates the display functions into separate object, plus several other functions.
Also available in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes
thanks,
jirka
---
Jiri Olsa (43):
perf stat: Use evsel->threads in create_perf_stat_counter
perf stat: Move initial_delay into struct perf_stat_config
perf stat: Move no_inherit into struct perf_stat_config
perf stat: Use local config arg for scale in create_perf_stat_counter perf stat: Add identifier flag into struct stat_opts
perf tools: Switch session argument to evlist in perf_event__synthesize_attrs perf tools: Add perf_evsel__store_ids function
perf stat: Move create_perf_stat_counter into stat.c
perf stat: Rename is_pipe argument to attrs perf_stat_synthesize_config perf stat: Add struct perf_stat_config argument to perf_stat_synthesize_config perf stat: Add struct perf_tool argument to perf_stat_synthesize_config perf stat: Add struct perf_evlist argument to perf_stat_synthesize_config perf stat: Add perf_event__handler_t argument to perf_stat_synthesize_config perf stat: Move perf_stat_synthesize_config into stat.c
perf stat: Add perf_evlist__print_counters function
perf stat: Move STAT_RECORD out of perf_evlist__print_counters perf stat: Add stat_config argument to perf_evlist__print_counters perf stat: Pass stat_config argument to local print functions perf stat: Pass stat_config argument to global print functions perf stat: Move csv_* into struct perf_stat_config
perf stat: Move interval_clear into struct perf_stat_config
perf stat: Move metric_only into struct perf_stat_config
perf stat: Move unit_width into struct perf_stat_config
perf stat: Add target argument to perf_evlist__print_counters perf stat: Pass evlist argument to print functions
perf stat: Use evsel->evlist instead of evsel_list in collect_all_aliases perf stat: Move run_count into struct perf_stat_config
perf stat: Move metric_only_len into struct perf_stat_config perf stat: Pass stat_config to first_shadow_cpu
perf stat: Pass evlist to aggr_update_shadow
perf stat: Add walltime_nsecs_stats pointer into struct perf_stat_config perf stat: Move null_run into struct perf_stat_config
perf stat: Move print_free_counters_hint into struct perf_stat_config perf stat: Move print_mixed_hw_group_error into struct perf_stat_config perf stat: Move ru_* data into struct perf_stat_config
perf stat: Move *_aggr_* data into struct perf_stat_config
perf stat: Do not use glovab evsel_list in print functions
perf stat: Move big_num data into struct perf_stat_config
perf stat: Move no_merge data into struct perf_stat_config
perf stat: Propagate struct target arg to sort_aggr_thread
perf stat: Move walltime_* data into struct perf_stat_config perf stat: Move metric_events into struct perf_stat_config
perf stat: Move display functions into stat-display.c
tools/perf/builtin-record.c | 2 +- tools/perf/builtin-script.c | 8 +- tools/perf/builtin-stat.c | 1440 +++++++++-------------------------------------------------------------------------------------------------------------- tools/perf/util/Build | 1 + tools/perf/util/evsel.c | 29 +++ tools/perf/util/evsel.h | 1 + tools/perf/util/header.c | 6 +- tools/perf/util/header.h | 2 +- tools/perf/util/stat-display.c | 1166 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/perf/util/stat-shadow.c | 147 +++++++------ tools/perf/util/stat.c | 95 ++++++++ tools/perf/util/stat.h | 72 +++++- 12 files changed, 1545 insertions(+), 1424 deletions(-) create mode 100644 tools/perf/util/stat-display.c