OSDN Git Service

perf evsel: Restore evsel->priv as a tool private area
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Oct 2017 17:22:34 +0000 (14:22 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Oct 2017 12:10:10 +0000 (09:10 -0300)
commite669e833da8d71a02e175dfffceaabc3eb010207
tree394756927d972e8ea6e6abe247100ef6089f1e4c
parent894f3f1732cb4ae543d406e4fca1585e8c303a1c
perf evsel: Restore evsel->priv as a tool private area

When we started using it for stats and did it not just in
builtin-stat.c, but also for builtin-script.c, then it stopped being a
tool private area, so introduce a new pointer for these stats and leave
->priv to its original purpose.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: yuzhoujian <yuzhoujian@didichuxing.com>
Fixes: cfc8874a4859 ("perf script: Process cpu/threads maps")
Link: http://lkml.kernel.org/n/tip-jtpzx3rjqo78snmmsdzwb2eb@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c
tools/perf/util/evsel.h
tools/perf/util/stat.c