perf tools: Add stat config event synthesize function
authorJiri Olsa <jolsa@kernel.org>
Sun, 25 Oct 2015 14:51:28 +0000 (15:51 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Dec 2015 17:38:19 +0000 (14:38 -0300)
commit6742434261158ad9678bf15b165304e0200cc324
tree3a48df11cbb597dcbe5e56fdfe59875023bb55fc
parent374fb9e362f64e730388abc1de9bb93829670a54
perf tools: Add stat config event synthesize function

Introduce the perf_event__synthesize_stat_config to synthesize a 'struct
perf_stat_config'.

Storing the stat config in the form of tag-value pairs will, I believe,
sort out future version extensibility issues.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Kan Liang <kan.liang@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1445784728-21732-13-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/Build
tools/perf/tests/builtin-test.c
tools/perf/tests/stat.c [new file with mode: 0644]
tools/perf/tests/tests.h
tools/perf/util/event.c
tools/perf/util/event.h