File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ static cl::list<std::string> DisassembleFunctions(
6565 " names only. Only work with show-disassembly-only" ),
6666 cl::cat(ProfGenCategory));
6767
68+ static cl::opt<bool >
69+ LoadFunctionFromSymbol (" load-function-from-symbol" ,
70+ cl::desc (" Gather additional binary function info "
71+ " from symbols (e.g. .symtab) in case "
72+ " dwarf info is incomplete." ),
73+ cl::cat(ProfGenCategory));
74+
6875static cl::opt<bool >
6976 KernelBinary (" kernel" ,
7077 cl::desc (" Generate the profile for Linux kernel binary." ),
@@ -257,7 +264,8 @@ void ProfiledBinary::load() {
257264 if (ShowDisassemblyOnly)
258265 decodePseudoProbe (Obj);
259266
260- populateSymbolsFromBinary (Obj);
267+ if (LoadFunctionFromSymbol || UsePseudoProbes)
268+ populateSymbolsFromBinary (Obj);
261269
262270 // Disassemble the text sections.
263271 disassemble (Obj);
You can’t perform that action at this time.
0 commit comments