Replies: 1 comment 3 replies
-
Since you're seeing some arguments I'm guessing that this isn't a bug / problem in the library, but something specific to your BPF code. The discussions here are meant for help around the library, https://stackoverflow.com/questions/tagged/ebpf+or+bpf+or+xdp-bpf is a better bet for you. That said, IIRC
I'd try inspecting the error code, and then following up on SO if your problem persists. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use cilium-ebpf to write some simple monitoring programs. Currently I want to use tracepoint/syscalls/sys_enter_execve to get argv. but I am having problems with missing arguments.
The following is an example of code that can be reproduced:
task.c
main.go
You can see that in
task.c
I tried to use tracepoint/syscalls/sys_enter_execve to get the argv and print them out.After getting this ebpf program up and running, I will use ssh on another server to execute a script remotely. The command to be executed on the other server is shown below:
Ideally, the output of bpf_trace_printk should look like this:
But in sometime, the
-c
parameter is lost:I also tried using kprobe/sys_execve, but I still have the problem of missing parameters. Has anyone ever encountered this problem and solved it?
Beta Was this translation helpful? Give feedback.
All reactions