perf tools: Do not try to call addr2line on non-binary files
No need to call addr2line since they don't have such information. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Reviewed-by: Jiri Olsa <jolsa@redhat.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1378876173-13363-6-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
f048d548f8
commit
58d91a0068
@@ -259,9 +259,6 @@ static int hist_entry__srcline_snprintf(struct hist_entry *self, char *bf,
|
||||
if (!self->ms.map)
|
||||
goto out_ip;
|
||||
|
||||
if (!strncmp(self->ms.map->dso->long_name, "/tmp/perf-", 10))
|
||||
goto out_ip;
|
||||
|
||||
path = get_srcline(self->ms.map->dso->long_name, self->ip);
|
||||
self->srcline = path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user