API for getting symbol for a given addr
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
Does anybody know a method/API to retrieve the symbol from a u64 address?
...
Kernel symbols are in /boot/System.map , /proc/kallsyms, and user symbols usually in perf.map, but looking up these files will be quite slow for resolving a single addr
As an alternative, I am using stack_traces.get_stackid, translate stack_id to a vector of stack symbols, and get the top frame, but it still a rather slow method IMO, isn't it?
I am looking for a method to translate a given addr to symbol directly
Thanks for any advice.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the stack_traces.get_stackid approach and the symbol sources named in the issue: /boot/System.map, /proc/kallsyms, and perf.map. Determine whether BCC has an existing entry point for translating an address directly to a symbol; done requires a defined API scope and an agreed way to verify the lookup behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- operating-systems, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100