-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'lazy_symbolication' config #2958
Conversation
not sure how to test this - it seems that even setting lazy_symbolize to numbers other than 1 or 0 don't cause any "noticeable" issues - maybe the errors get swallowed. |
The other motivation for this change is so Meta doesn't have to supply a patch to hard code this value to 1 due to the size of some of the binaries that it traces against. |
Should we also add this as a config option? |
I started down that path but because this is more specific to the environment or binary target (so yeah maybe a case for specific uprobes), I thought it better as just an env var but I don't feel strongly. |
I think "symbolication" is the more accepted term over "symbolization". Some quick searching backs this up, e.g. https://lldb.llvm.org/use/symbolication.html I'm also biased because I don't like the American spelling of "symbolisation" ;) |
Ah great. @ajor is starting a culture war... I honestly don't feel strongly though BPFTRACE_LAZY_SYMBOLICATE is more letters AND the actual bcc field is "lazy_symbolize". That being said, in casual conversation I do tend to say "symbolication" so I yield to the wise recommendations of the bpftrace maintainers. But "analyse" is wrong. |
The scripts usually contain the binary target (as a part of uprobes), so IMHO it makes sense to be able to set this in the script via a config option. |
e0d9324
to
d9cafcf
Compare
Ok, changed it to 'BPFTRACE_LAZY_SYMBOLICATION' and added it to the config. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks good!
327ef4a
to
0d7a272
Compare
This can be used to lazily symbolicate userspace symbols instead of loading the entire symbol table ahead of time. This is useful for when tracing large binaries.
0d7a272
to
5be571d
Compare
This can be used to lazily symbolize userspace symbols instead of loading the entire symbol table ahead of time.
This is useful for when tracing large binaries.
Checklist
man/adoc/bpftrace.adoc
and if needed indocs/reference_guide.md
CHANGELOG.md