-
-
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
Allow uprobe placement on arbitrary addresses when --unsafe is used. #1388
Conversation
nice, thanks for working on this!
I think the message can be improved a bit. Matching a symbol isn't a requirement for bpftrace. All it wants to know is that it is not inserting a probe in the middle of an instruction and then crashing the tracee. Maybe something along the lines of |
I don't think that's the correct warning either. At least it doesn't fit into the control flow in the source code. Originally it failed because there was no symbol defined at that address ( How about
? |
Having a
Maybe we could add some checks that at least verify that the address is not completely out of bounds, but that can be done in a later pr too. |
Can you squash the commits into one? :) |
a0a8b5d
to
eabb4b3
Compare
@danobi what do you think of the warning message? |
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.
Seems reasonable to me. But I think documentation needs updating
eabb4b3
to
3a6670e
Compare
3a6670e
to
023faff
Compare
Thanks! |
Follow-up to #1282.
When there is no symbol found for requested address of uprobe placement and
--unsafe
is set, warning is emitted, and uprobe is placed as normally.Checklist
docs/reference_guide.md
CHANGELOG.md