perf evsel: Introduce constructor for cycles event
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 28 Jul 2016 21:33:20 +0000 (18:33 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 28 Jul 2016 21:33:20 +0000 (18:33 -0300)
commit7c48dcfd32b45b69aa8d5e81108fff8c7a2272ed
treef4f810f369bbf4c0002f310014d287b99cc50448
parent674d2d69b14f677a771ceec4b48bfade94a0c5f1
perf evsel: Introduce constructor for cycles event

That is the default used when no events is specified in tools, separate
it so that simpler tools that need no evlist can use it directly.

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>
Link: http://lkml.kernel.org/n/tip-67mwuthscwroz88x9pswcqyv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h