aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-02-08 09:40:29 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2019-02-08 09:40:29 +0530
commitaf816ddfbdf049dfce251513af4b5dc903c9764c (patch)
tree15fe94fb3dbb0db54d203c2a1229a0b7a9c3a608 /tools/perf/util/annotate.c
parentcpufreq: tegra124: add missing of_node_put() (diff)
parentcpufreq: qcom-hw: Register an Energy Model (diff)
downloadwireguard-linux-af816ddfbdf049dfce251513af4b5dc903c9764c.tar.xz
wireguard-linux-af816ddfbdf049dfce251513af4b5dc903c9764c.zip
Merge branch 'cpufreq/qcom-hw' into cpufreq/arm/linux-next
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r--tools/perf/util/annotate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index ac9805e0bc76..70de8f6b3aee 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -1723,15 +1723,14 @@ static int symbol__disassemble(struct symbol *sym, struct annotate_args *args)
err = asprintf(&command,
"%s %s%s --start-address=0x%016" PRIx64
" --stop-address=0x%016" PRIx64
- " -l -d %s %s -C \"%s\" 2>/dev/null|grep -v \"%s:\"|expand",
+ " -l -d %s %s -C \"$1\" 2>/dev/null|grep -v \"$1:\"|expand",
opts->objdump_path ?: "objdump",
opts->disassembler_style ? "-M " : "",
opts->disassembler_style ?: "",
map__rip_2objdump(map, sym->start),
map__rip_2objdump(map, sym->end),
opts->show_asm_raw ? "" : "--no-show-raw",
- opts->annotate_src ? "-S" : "",
- symfs_filename, symfs_filename);
+ opts->annotate_src ? "-S" : "");
if (err < 0) {
pr_err("Failure allocating memory for the command to run\n");
@@ -1756,7 +1755,8 @@ static int symbol__disassemble(struct symbol *sym, struct annotate_args *args)
close(stdout_fd[0]);
dup2(stdout_fd[1], 1);
close(stdout_fd[1]);
- execl("/bin/sh", "sh", "-c", command, NULL);
+ execl("/bin/sh", "sh", "-c", command, "--", symfs_filename,
+ NULL);
perror(command);
exit(-1);
}