How to get process full command line in BPF code. #5129
Unanswered
Songrui625
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to get process full command line in BPF code and follow the method mentioned in bpftrace/bpftrace#2116.
However seems like
bpf_probe_read_user_str
will stop reading when read NULL character('\0'). And if process cmdline contains space character, the cmdline we read in BPF code is not complete.BPF code:
How to get process full command line in BPF code in a right way.
Beta Was this translation helpful? Give feedback.
All reactions