Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some bug fix #11

Merged
merged 6 commits into from
Sep 11, 2024
Merged

some bug fix #11

merged 6 commits into from
Sep 11, 2024

Conversation

chentao-kernel
Copy link
Owner

some bug fix and add vmilinux.h for x86 and arm64

now next task no record when pre task return directly, fix
it.

Fixes: 5df42b2 ("ebpf: offcpu: Fix offcpu pid info")

Signed-off-by: Tao Chen <[email protected]>
clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function
-O2 -g -Wall -Werror  -I/root/spycat/pkg/ebpf/headers/arm64 -I/root/spycat/pkg/ebpf/headers
-target bpf -D__TARGET_ARCH_arm64  -c /root/spycat/pkg/ebpf/cpu/offcpu/offcpu.bpf.c
-o /root/spycat/pkg/ebpf/cpu/offcpu/offcpu.bpf.o

Signed-off-by: Tao Chen <[email protected]>
kernel-5.15, arm64, __sync_val_compare_and_swap automic instruction
not supported, the error info:
libbpf: prog 'futex_exit': relo #0: matching candidate #0 <byte_off>
[10064] struct syscall_trace_exit.ret (0:2 @ offset 16)
libbpf: prog 'futex_exit': relo #0: patched insn #73 (LDX/ST/STX) off 16 -> 16
libbpf: prog 'futex_exit': BPF program load failed: No error information
libbpf: prog 'futex_exit': -- BEGIN PROG LOAD LOG --

Signed-off-by: Tao Chen <[email protected]>
Now kprobe optimized in x86 with ftrace, and the wakeup events seems
more accurate with kprobe,so change it.

Signed-off-by: Tao Chen <[email protected]>
@chentao-kernel chentao-kernel merged commit 936d471 into main Sep 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant