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

centos kernel 5.15.46 run error #266

Closed
suselee opened this issue Jan 10, 2025 · 4 comments
Closed

centos kernel 5.15.46 run error #266

suselee opened this issue Jan 10, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@suselee
Copy link

suselee commented Jan 10, 2025

Describe the bug

failed to attach tracepoint,group: syscalls name: sys_enter_accept4,err:reading file "/sys/kernel/debug/tracing/events/syscalls/...."

error is reported with each execution。

Screenshots

image

Copy link

dosubot bot commented Jan 10, 2025

Hello @suselee! I'm here to help you out with any bugs, questions, or contributions you may have. Let's tackle this issue together!

The error you're encountering with Kyanos on CentOS kernel 5.15.46, specifically the failure to attach the sys_enter_accept4 tracepoint, might be due to missing files in the /sys/kernel/debug/tracing/events/syscalls/ directory. Here are some steps you can take to troubleshoot and potentially resolve this issue:

  1. Check Kernel Configuration: Ensure that your kernel is configured with the necessary options to support eBPF and tracepoints. You might need to enable options like CONFIG_BPF, CONFIG_BPF_SYSCALL, CONFIG_FTRACE, and CONFIG_KPROBE_EVENTS.

  2. Verify Permissions: Make sure that the user running Kyanos has the necessary permissions to access the /sys/kernel/debug/tracing/events/syscalls/ directory. You might need to run Kyanos as a superuser or adjust the permissions accordingly.

  3. Enable Debugging: Use Kyanos's debugging options to get more detailed logs. You can start Kyanos with the following options to enable detailed logging:

    --bpf-event-log-level 5 --conntrack-log-level 5 --protocol-log-level 5 --agent-log-level 5 --debug-output

    This will provide more insights into what might be going wrong during the tracepoint attachment process [1].

  4. Check for Missing Files: If the files are indeed missing, it could be due to a kernel version mismatch or a missing kernel feature. Ensure that your kernel version is fully compatible with the version of Kyanos you are using.

These steps should help you diagnose and potentially fix the issue with attaching tracepoints in Kyanos.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the bug Something isn't working label Jan 10, 2025
@hengyoush
Copy link
Owner

Please execute cat /etc/os-release and provider the result.

@hengyoush
Copy link
Owner

Are you run with sudo?

@hengyoush
Copy link
Owner

No reply, closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants