tetragon: add sleepable uprobe sensor#4915
Draft
olsajiri wants to merge 10 commits into
Draft
Conversation
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
9f846bc to
338d733
Compare
338d733 to
b7600c1
Compare
b7600c1 to
57ae643
Compare
It's not needed. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
At the moment we silently ignore when we match multiple entry points and just take the last one. Let's make sure we use proper entry point and fail in case there's more. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Adding support to detect sleepable tail calls with DetectSleepableTailCalls functions. Note also removing leftover debug print in detectMixBpfAndTailCalls. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Adding support for sensor to disable perf ringbuffer, so we could build sleepable sensor that does not support perf ringbuffer. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Add support for sensor to disable stacktrace, so we could build sleepable sensor that does not support builid stacktrace. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Adding support for sensor to disable preload, so we could build sleepable sensor without it, because it does not need it. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Adding sleepable uprobe objects: bpf_generic_uprobe_sleepable.o bpf_generic_retuprobe_sleepable.o bpf_multi_uprobe_sleepable.o bpf_multi_retuprobe_sleepable.o They are built with following macros enabled: __NO_PERF_RINGBUFFER __NO_STACKTRACE __NO_PRELOAD and allow sleepable retrieval of the data from uprobe. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Use bpf.DetectSleepableTailCalls() and allow to load sleepable uprobe sensor when it's possible. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Disable preload for sleepable sensor and use direct reading for strings. With preload disabled we no longer have extra 2 preload uprobes attached to the same offset. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
To allow disable sleepable uprobe sensor and prefer argument preload. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
57ae643 to
f921184
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wip