iovisor / iovisor/bcc

demangled output

Open
#2,215 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

after running "funccount" on Mozilla firefox:

```
_ZN7mozilla6detail9MutexImplD2Ev 1126
_ZN7mozilla6detail9MutexImplC2ENS_12recordreplay8BehaviorE 1153
moz_xrealloc 1305
realloc 1366
moz_arena_realloc 2284
_ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE 3910
_ZN7mozilla6detail21ConditionVariableImpl10notify_oneEv 4848
_ZN7mozilla29BaseTimeDurationPlatformUtils21TicksFromMillisecondsEd 14664
_ZN7mozilla29BaseTimeDurationPlatformUtils9ToSecondsEl 16799
moz_arena_malloc 25022
moz_xmalloc 27496
_ZN7mozilla9TimeStamp8NowFuzzyENS_14TimeStamp63BitE 28645
_ZN7mozilla9TimeStamp3NowEb 28671
_ZN7mozilla9TimeStamp18GetFuzzyfoxEnabledEv 29441
malloc 42399
_ZN7mozilla6detail9MutexImpl4lockEv 51988
_ZN7mozilla6detail9MutexImpl6unlockEv 51990
```
I got the above output.

can we do better? if you do "objdump --demangle" you can easily get the demangle output from the binary. If someone can suggest how and where to modify the BCC (which I don't know) perhaps I can try combining it with:

https://github.com/whitequark/python-itanium_demangler

and submit a patch request.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the funccount output path and compare its symbol handling with objdump --demangle. Review the proposed python-itanium_demangler integration, and consider the work complete when the displayed mangled symbols are rendered as demangled names without changing their counts.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.