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? |
0 replies
|
Same issue, has anyone know how to slove it? If I want to catch the first bash readline event using ebpf? |
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
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@latestAnd it's fine when use
uprobeonreadline(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/Linuxvmlinux.h:
5.8Go code
ebpf code
All reactions