]> git.baikalelectronics.ru Git - kernel.git/commit
perf machine: Fix the lifetime of the VDSO temporary file
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 23 Jul 2014 11:23:00 +0000 (14:23 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Jul 2014 20:14:39 +0000 (17:14 -0300)
commit94fdf90ee82c3baaff6c581776556021551911ff
tree9a192e3b023222d6b3f22f385d5d2c9440aa1685
parenta64492235166fb42c0dce72d90f47678cd891e46
perf machine: Fix the lifetime of the VDSO temporary file

The VDSO temporary file is unlinked when a session is deleted.  That
precludes the possibilities that there is no session or there is more
than one session.

Correctly the vdso belongs to the machine so put the information on
'struct machine' and get rid of the global variables.

Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: 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: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/53CF9B14.7040408@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/session.c
tools/perf/util/vdso.c
tools/perf/util/vdso.h