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
Uh oh!
There was an error while loading. Please reload this page.
-
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_strwill 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