Replies: 1 comment 1 reply
-
This is an interesting point. I'd have to look more but I believe that the probes are attached in the order that they appear in the script. So, if you create a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm dealing with large bpftrace scripts and sometimes it takes a couple of seconds or minutes for bpftrace to start tracing. This is not an issue if I'm providing the command via
-c
, but I'd like to know if there is a way detect that the bpftrace program is ready to trace in general. I'd like to run my command outside of bpftrace (i.e., without using-c
) but I need to know that bpftrace is ready.Now that I think about it, I could probably use
-c
for that, e.g.,-c "/bin/sh -c 'touch /tmp/bpftrace.ready && sleep infinity'"
. If there is a better way that does not feel like a hack, then please let me know.Beta Was this translation helpful? Give feedback.
All reactions