mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
perf stat report: Process stat config event
Adding processing of stat config event and initialize stat_config object. Reported-by: Kan Liang <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ Renamed 'stat' parameter to 'st' to fix 'already defined' build error with older distros (e.g. RHEL6.7) ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
1975d36e14
commit
62ba18ba93
1 changed files with 10 additions and 0 deletions
|
|
@ -1533,6 +1533,15 @@ static int __cmd_record(int argc, const char **argv)
|
|||
return argc;
|
||||
}
|
||||
|
||||
static
|
||||
int process_stat_config_event(struct perf_tool *tool __maybe_unused,
|
||||
union perf_event *event,
|
||||
struct perf_session *session __maybe_unused)
|
||||
{
|
||||
perf_event__read_stat_config(&stat_config, &event->stat_config);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int set_maps(struct perf_stat *st)
|
||||
{
|
||||
if (!st->cpus || !st->threads)
|
||||
|
|
@ -1600,6 +1609,7 @@ static struct perf_stat perf_stat = {
|
|||
.attr = perf_event__process_attr,
|
||||
.thread_map = process_thread_map_event,
|
||||
.cpu_map = process_cpu_map_event,
|
||||
.stat_config = process_stat_config_event,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue