perf evsel: Add missing perf/evsel.h header in util/evsel.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Aug 2019 17:09:54 +0000 (14:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Aug 2019 20:16:57 +0000 (17:16 -0300)
commit69714a4e3959eb051e685c6dce06c6d5a8f27c3c
tree2a6e3ab4aa2db2c6c8744ac4810eb3dc012409b0
parent430482c2e34ea8c164240ce295b5f57f16ab5621
perf evsel: Add missing perf/evsel.h header in util/evsel.h

Since util/evsel.h uses perf_evsel__cpus() that has its prototype in
libperf's perf/evsel.h file, we need it explicitely included.

This was working by luck as util/evsel.h includes counts.h, but that is
not necessary, just some forward declarations, so, before we remove
counts.h from util/evsel.h, add what is realli needed.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-nfb9e0t4jm9zhvr0q86hc29d@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.h