perf trace: Call machine__exit() at exit
authorAndrei Vagin <avagin@openvz.org>
Wed, 8 Nov 2017 00:22:45 +0000 (16:22 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 9 Nov 2017 13:17:32 +0000 (10:17 -0300)
commit33974a414ce2324554f75dbd204ff0868f499e32
tree14364cfb984af7ef81223fcea111f791012ed26c
parenta271bfaf30ce8f7f57c6b65c47bff6d306d0b758
perf trace: Call machine__exit() at exit

Otherwise 'perf trace' leaves a temporary file /tmp/perf-vdso.so-XXXXXX.

  $ perf trace -o log true
  $ ls -l /tmp/perf-vdso.*
  -rw------- 1 root root 8192 Nov  8 03:08 /tmp/perf-vdso.so-5bCpD0

Signed-off-by: Andrei Vagin <avagin@openvz.org>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Vasily Averin <vvs@virtuozzo.com>
Link: http://lkml.kernel.org/r/20171108002246.8924-1-avagin@openvz.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c