You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And look at the resulting symbols. I suspect this is related to the .. characters, but as far as I can tell bcc just reads symbol names from /proc/kallsyms.
The text was updated successfully, but these errors were encountered:
Ah, yes, it looks like you're right. Removing them causes the parsing to work correctly. The +NN syntax at the end is commonly used in all sorts of debugging/profiling contexts to mean "NN bytes past this symbol" (e.g., to highlight that a particular line of a function was sampled a lot). It might be a good idea to support symbols with that kind of suffix.
The
ustack
function frombpftrace
/bcc
produces symbols that for some reason cannot be parsed byrustc-demangle
, such as:To test this yourself, run a Rust program and then
bpftrace
with something like:sudo env BPFTRACE_NO_CPP_DEMANGLE=1 bpftrace -e 'profile:hz:1 /pid == '$(pgrep target/debug)'/ { printf("%ld %d %s\n", elapsed, tid, ustack) }'
And look at the resulting symbols. I suspect this is related to the
..
characters, but as far as I can tellbcc
just reads symbol names from/proc/kallsyms
.The text was updated successfully, but these errors were encountered: