perf tools: Allow user to indicate path to objdump in command line
[deliverable/linux.git] / tools / perf / util / annotate.c
index 3a282c0057d2266fa2adcdb00122bf3bfdb69c27..51ef69c9841dd076777326d9d01c5b5ae71f8335 100644 (file)
@@ -17,6 +17,7 @@
 #include <pthread.h>
 
 const char     *disassembler_style;
+const char     *objdump_path;
 
 static struct ins *ins__find(const char *name);
 static int disasm_line__parse(char *line, char **namep, char **rawp);
@@ -820,9 +821,10 @@ fallback:
                 dso, dso->long_name, sym, sym->name);
 
        snprintf(command, sizeof(command),
-                "objdump %s%s --start-address=0x%016" PRIx64
+                "%s %s%s --start-address=0x%016" PRIx64
                 " --stop-address=0x%016" PRIx64
                 " -d %s %s -C %s|grep -v %s|expand",
+                objdump_path ? objdump_path : "objdump",
                 disassembler_style ? "-M " : "",
                 disassembler_style ? disassembler_style : "",
                 map__rip_2objdump(map, sym->start),
This page took 0.029224 seconds and 5 git commands to generate.