summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-07-29 15:11:30 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-07-29 15:11:30 -0300
commit6e406257b3794009e3b7a6d48b54beb547719565 (patch)
treeb2c79008271fd1741ac2b576379a3c29f4bc89e0 /tools/perf/util/event.c
parent39d17dacb3c25df878b56aa80a170d6088e041f9 (diff)
downloadtalos-op-linux-6e406257b3794009e3b7a6d48b54beb547719565.tar.gz
talos-op-linux-6e406257b3794009e3b7a6d48b54beb547719565.zip
perf symbols: Precisely specify if dso->{long,short}_name should be freed
Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.c')
-rw-r--r--tools/perf/util/event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index 5b81bb29a07a..8151d23664c7 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -456,6 +456,7 @@ static int event__process_kernel_mmap(event_t *self,
goto out_problem;
map->dso->short_name = name;
+ map->dso->sname_alloc = 1;
map->end = map->start + self->mmap.len;
} else if (is_kernel_mmap) {
const char *symbol_name = (self->mmap.filename +
OpenPOWER on IntegriCloud