Re: [PATCH v1 0/9] perf stat: Enable '--per-thread' on all threads

From: Jiri Olsa
Date: Mon Nov 20 2017 - 04:26:58 EST


On Mon, Nov 20, 2017 at 10:43:35PM +0800, Jin Yao wrote:
> perf stat --per-thread is useful to break down data per thread.
> But it currently requires specifying --pid/--tid to limit it to a process.
>
> For analysis it would be useful to do it globally for the whole system.

I can't compile this:

builtin-script.c: In function âperf_sample__fprint_metricâ:
builtin-script.c:1549:2: error: too few arguments to function âperf_stat__update_shadow_statsâ
perf_stat__update_shadow_stats(evsel,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from builtin-script.c:24:0:
util/stat.h:134:6: note: declared here
void perf_stat__update_shadow_stats(struct perf_evsel *counter, u64 count,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
builtin-script.c:1555:4: error: too few arguments to function âperf_stat__print_shadow_statsâ
perf_stat__print_shadow_stats(ev2,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from builtin-script.c:24:0:
util/stat.h:143:6: note: declared here
void perf_stat__print_shadow_stats(struct perf_evsel *evsel,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv: cannot stat './.builtin-script.o.tmp': No such file or directory

thanks,
jirka