perf evlist: Introduce perf_evlist__new_dummy constructor
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 7 Jan 2016 16:14:56 +0000 (13:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 7 Jan 2016 16:14:56 +0000 (13:14 -0300)
commit5bae0250237f7a5ec4355f9920701de247b8db91
tree6617ae58a86828d688a0815ed367ca83d83c80df
parent4f4ba0e6afac4b181471f5f12bd87294bd8807f6
perf evlist: Introduce perf_evlist__new_dummy constructor

For case where all we need is an evlist with just an "dummy" evsel,
like in some 'perf test' entries.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-q52le0pblm2k3ncvyilelr9z@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h