perf stat: Add id into perf_stat struct
authorJiri Olsa <[email protected]>
Thu, 4 Jun 2015 13:50:55 +0000 (15:50 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 8 Jun 2015 13:30:30 +0000 (10:30 -0300)
commite2f56da1d6670070f6f55d43007cb7b03ee04c2f
tree370c939f0fbba94fe15ace10d7dd515a1b0b3ce7
parenta3d86542de8850be52e8589da22b24002941dfb7
perf stat: Add id into perf_stat struct

We need fast way to identify evsel as transaction event for shadow
counters computation. Currently we are using possition (in evlist) based
way.

Adding 'id' into 'struct perf_stat' so it can carry transaction event ID
and we can use it for shadow counters computations.

Signed-off-by: Jiri Olsa <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/builtin-stat.c
tools/perf/util/stat.c
tools/perf/util/stat.h