Replies: 2 comments
-
I may have figured it out. bash was "readline"ing when prompt showed up in my terminal, so the readline wasn't hijacked this time. Is that right? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same issue, has anyone know how to slove it? If I want to catch the first bash readline event using ebpf? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the bash readline, I can get it up and running fine with the following code, but the first event is never received(trace_pipe and stdout), and all subsequent events are received. I don't know why.
The same situation occurs in
go install github.com/cilium/ebpf/examples/uretprobe@latest
And it's fine when use
uprobe
onreadline
(received all events)Clang:
uname:
Linux ubuntu2204 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
vmlinux.h:
5.8
Go code
ebpf code
Beta Was this translation helpful? Give feedback.
All reactions