libperf: Introduce perf_evlist__exit()
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Oct 2019 12:53:32 +0000 (14:53 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Oct 2019 15:56:01 +0000 (12:56 -0300)
commit93dd6e2831ff399f7685aa2157b997b6392efac8
tree02249cc1fa78b43bb06ee302bb798019471a6d9d
parent230662e15ed6cc63ecf72ed1bffa3cadef486850
libperf: Introduce perf_evlist__exit()

Add the perf_evlist__exit() function, so far it's not exported and added
only for internal use for perf and libperf.

USe it to release cpus/threads and pollfd array.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20191007125344.14268-25-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/lib/evlist.c
tools/perf/lib/include/internal/evlist.h
tools/perf/util/evlist.c