Closed driftli closed 9 months ago
try to remove let pid = ctx.pid();
and check if the problem persists.
I have a problem with pid() but inside tccontext
try to remove
let pid = ctx.pid();
and check if the problem persists. I have a problem with pid() but inside tccontext
Thanks for reply.
I just tried remove let pid = ctx.pid()
and still have the problem.
I guess problem is on ebpf program compilation, maybe a compatibility issue. Because after I changed the kernel version to 5.14.0-148.el9.x86_64
and it can run normally. (PS: Original kernel version is 5.4.143
).
There is another problem I have found on kernel 3.10.0-1160.102.1.e17.x86_64
, error msg "error relocating function"
, but when I use SystemTap
to do the same task and it passed. Just report it. Similar issue: here.
There is another problem I have found on kernel 3.10.0-1160.102.1.e17.x86_64, error msg "error relocating function", but when I use SystemTap to do the same task and it passed. Just report it. Similar issue: https://github.com/aya-rs/aya/issues/831.
Ok, as far as I know ebpf is avalaible from kernel v4.1 and fully avalaible on from kernel v4.4
https://docs.lacework.net/onboarding/ebpf-support https://www.kernel.org/doc/html/latest/bpf/index.html https://www.tigera.io/learn/guides/ebpf/
I want to hook readline function for /usr/bin/bash with uretprobe. There are two copies of the code. The first one ran normally, here is:
The next one failed to start, which took me a long time to figure out and still failed.
And here is the error message:
Can someone help point out my mistake?