Commit 33974a41 authored by Andrei Vagin's avatar Andrei Vagin Committed by Arnaldo Carvalho de Melo

perf trace: Call machine__exit() at exit

Otherwise 'perf trace' leaves a temporary file /tmp/

  $ perf trace -o log true
  $ ls -l /tmp/perf-vdso.*
  -rw------- 1 root root 8192 Nov  8 03:08 /tmp/
Signed-off-by: default avatarAndrei Vagin <>
Reviewed-by: default avatarJiri Olsa <>
Cc: Alexander Shishkin <>
Cc: Namhyung Kim <>
Cc: Peter Zijlstra <>
Cc: Vasily Averin <>
Link: default avatarArnaldo Carvalho de Melo <>
parent a271bfaf
......@@ -1138,6 +1138,14 @@ static int trace__symbols_init(struct trace *trace, struct perf_evlist *evlist)
return err;
static void trace__symbols__exit(struct trace *trace)
trace->host = NULL;
static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args)
int idx;
......@@ -2481,6 +2489,8 @@ static int trace__run(struct trace *trace, int argc, const char **argv)
trace->evlist = NULL;
trace->live = false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment