Bug 55571
Summary: | Have a --no-demangle option for "perf report" | ||
---|---|---|---|
Product: | Tracing/Profiling | Reporter: | William Cohen (wcohen) |
Component: | Perf tool | Assignee: | Namhyung Kim (namhyung) |
Status: | ASSIGNED --- | ||
Severity: | enhancement | CC: | acme |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: |
Description
William Cohen
2013-03-21 19:34:00 UTC
I merged Namhyung --no-demangle patch, but I think it would be great to be able to switch this on the fly, i.e. to assign a hotkey to toggle symbol_conf.demangle For that we would have to save both the mangled and demangled symbol name on 'struct symbol', having a bool symbol->demangled that if true means that symbol->name + symbol->namelen + 1 had the demangled symbol name and symbol->name had the mangled name, symbol__name(symbol) would check symbol_conf->demangle, etc. For the purposes that I have, Namhyung's patch works well. However, I can see where it would be nice to toggle between the mangled/demangled as the developer is referring to both things in binaries and source code. I'm not sure it'd ok to have both symbol names always. In most cases user might want demangled names only, and if so it's just wasting the memory. |