diff options
Diffstat (limited to 'tools/perf/util/sort.c')
| -rw-r--r-- | tools/perf/util/sort.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index b5b1b921196..cfd1c0feb32 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -260,6 +260,12 @@ static int hist_entry__srcline_snprintf(struct hist_entry *self, char *bf,  	if (path != NULL)  		goto out_path; +	if (!self->ms.map) +		goto out_ip; + +	if (!strncmp(self->ms.map->dso->long_name, "/tmp/perf-", 10)) +		goto out_ip; +  	snprintf(cmd, sizeof(cmd), "addr2line -e %s %016" PRIx64,  		 self->ms.map->dso->long_name, self->ip);  	fp = popen(cmd, "r");  |