[PATCH 29/43] perf stat: Pass stat_config to first_shadow_cpu

2018-08-29 Thread Jiri Olsa
Passing stat_config to first_shadow_cpu, so the function does not depend on stat command object local stat_config and can be moved out. Link: http://lkml.kernel.org/n/tip-x9gryrm7evfb3uybq2pxc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 15 --- 1 file c

Re: [PATCH v4 0/6] Add power domain driver for corners on msm8996/sdm845

2018-08-29 Thread Rajendra Nayak
On 6/27/2018 10:22 AM, Rajendra Nayak wrote: Changes in v4: * Included the patch to add qcom-opp bindings (dropped accidentally in v3) * merged the patches to add bindings for rpm and rpmh, added consumer binding example * Made the drivers built in, removed .remove * Added better description

[PATCH 21/43] perf stat: Move interval_clear into struct perf_stat_config

2018-08-29 Thread Jiri Olsa
Moving static interval_clear into struct perf_stat_config, so it can be passed around and used outside stat command. Link: http://lkml.kernel.org/n/tip-jvas3d3b4t0jn3bdrnm0e...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 9 - tools/perf/util/stat.h| 1 + 2

[PATCH 24/43] perf stat: Add target argument to perf_evlist__print_counters

2018-08-29 Thread Jiri Olsa
Adding 'struct target' argument to perf_evlist__print_counters, so the function does not depend on stat command object local target and can be moved out. Link: http://lkml.kernel.org/n/tip-fxhirh8l1b9i0ozb6j69u...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 20 +++

[PATCH 30/43] perf stat: Pass evlist to aggr_update_shadow

2018-08-29 Thread Jiri Olsa
Passing evlist to aggr_update_shadow, to rid of the evsel_list dependency. Link: http://lkml.kernel.org/n/tip-4xhx9wz6e4gua5q40dpj2...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/built

[PATCH 20/43] perf stat: Move csv_* into struct perf_stat_config

2018-08-29 Thread Jiri Olsa
Moving static csv_* fields into struct perf_stat_config, so it can be passed around and used outside stat command. Link: http://lkml.kernel.org/n/tip-md7htmdsje3od38k86do4...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 114 +++--- tools

[PATCH 22/43] perf stat: Move metric_only into struct perf_stat_config

2018-08-29 Thread Jiri Olsa
Moving static metric_only into struct perf_stat_config, so it can be passed around and used outside stat command. Link: http://lkml.kernel.org/n/tip-tevvpgyi3o7ok34nx0oi0...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 29 - tools/perf/util/

[PATCH 08/43] perf stat: Move create_perf_stat_counter into stat.c

2018-08-29 Thread Jiri Olsa
Moving create_perf_stat_counter to stat object, so we could use it globally. Link: http://lkml.kernel.org/n/tip-47odtb7otnqlo07h0crk6...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 54 +-- tools/perf/util/stat.c| 53

[PATCH 09/43] perf stat: Rename is_pipe argument to attrs perf_stat_synthesize_config

2018-08-29 Thread Jiri Olsa
The attrs name makes more sense. Link: http://lkml.kernel.org/n/tip-3zodh2azuy9hf1gba71m2...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index

[PATCH 14/43] perf stat: Move perf_stat_synthesize_config into stat.c

2018-08-29 Thread Jiri Olsa
So it can be used globaly. Link: http://lkml.kernel.org/n/tip-6iu57r6ts9f0m92hw7f8i...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 42 --- tools/perf/util/stat.c| 42 +++ tools/perf/util/stat.

[PATCH 15/43] perf stat: Add perf_evlist__print_counters function

2018-08-29 Thread Jiri Olsa
To be in charge of printing out the stat output. It will be moved out of stat command in following patches. Link: http://lkml.kernel.org/n/tip-girva61h4z5vjn9fclc4d...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 16 1 file changed, 12 insertions(+), 4

[PATCH 05/43] perf stat: Add identifier flag into struct stat_opts

2018-08-29 Thread Jiri Olsa
Adding identifier flag into struct stat_opts to carry the info whether to use PERF_SAMPLE_IDENTIFIER for events. It makes the create_perf_stat_counter function independent. Link: http://lkml.kernel.org/n/tip-s1n7gth2e05oxai3gf2z5...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-

[PATCH 11/43] perf stat: Add struct perf_tool argument to perf_stat_synthesize_config

2018-08-29 Thread Jiri Olsa
So we can use the function outside stat command with standard synthesize functions, that take struct perf_tool* argument. Link: http://lkml.kernel.org/n/tip-fwzsgvy78dkaij1dt6icb...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 13 +++-- 1 file changed, 7 insert

[PATCH 03/43] perf stat: Move no_inherit into struct perf_stat_config

2018-08-29 Thread Jiri Olsa
Moving static no_inherit into struct perf_stat_config, so it can be passed around and used outside stat command. Link: http://lkml.kernel.org/n/tip-md7htmdsje3od38k86do4...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 5 ++--- tools/perf/util/stat.h| 1 + 2 files c

[PATCH 16/43] perf stat: Move STAT_RECORD out of perf_evlist__print_counters

2018-08-29 Thread Jiri Olsa
It's stat related and should stay in stat command. The perf_evlist__print_counters function will be moved out in following patches. Link: http://lkml.kernel.org/n/tip-be5esxsl725gf6w717owb...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 8 1 file changed, 4 in

[PATCH 02/43] perf stat: Move initial_delay into struct perf_stat_config

2018-08-29 Thread Jiri Olsa
Moving static initial_delay into struct perf_stat_config, so it can be passed around and used outside stat command. Adding struct perf_stat_config argument into create_perf_stat_counter function and using its initial_delay instead of static one. Link: http://lkml.kernel.org/n/tip-p2k4aymp7lxzqr7j

[PATCH 07/43] perf tools: Add perf_evsel__store_ids function

2018-08-29 Thread Jiri Olsa
Adding perf_evsel__store_ids function from stat's store_counter_ids code into evsel object, so it could be used globaly. Link: http://lkml.kernel.org/n/tip-epqr71x8ufexd3or67kjq...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 33 + tools

[PATCH 00/43] perf stat: Make some of the stat code generic

2018-08-29 Thread Jiri Olsa
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 severa

<    4   5   6   7   8   9