perf evlist: Close fds on destructor
Since it is safe to call perf_evlist__close() multiple times, autoclose it and remove the calls to the close from existing tools, reducing the tooling boilerplate. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-2kq9v7p1rude1tqxa0aue2tk@git.kernel.org Signed-off-by:Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-record.c 0 additions, 1 deletiontools/perf/builtin-record.c
- tools/perf/builtin-trace.c 1 addition, 3 deletionstools/perf/builtin-trace.c
- tools/perf/tests/code-reading.c 0 additions, 1 deletiontools/perf/tests/code-reading.c
- tools/perf/tests/keep-tracking.c 0 additions, 1 deletiontools/perf/tests/keep-tracking.c
- tools/perf/tests/mmap-basic.c 4 additions, 7 deletionstools/perf/tests/mmap-basic.c
- tools/perf/tests/open-syscall-tp-fields.c 1 addition, 3 deletionstools/perf/tests/open-syscall-tp-fields.c
- tools/perf/tests/perf-record.c 1 addition, 3 deletionstools/perf/tests/perf-record.c
- tools/perf/tests/perf-time-to-tsc.c 0 additions, 1 deletiontools/perf/tests/perf-time-to-tsc.c
- tools/perf/tests/sw-clock.c 1 addition, 3 deletionstools/perf/tests/sw-clock.c
- tools/perf/tests/task-exit.c 1 addition, 3 deletionstools/perf/tests/task-exit.c
- tools/perf/util/evlist.c 1 addition, 0 deletionstools/perf/util/evlist.c
Loading
Please register or sign in to comment