Skip to content

chore(ebpf): check for CONFIG_X86_FRED #4713

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

geyslan
Copy link
Member

@geyslan geyslan commented Apr 17, 2025

1. Explain what the PR does

9725ea3 chore(ebpf): update pt_regs struct

This reflects pt_regs struct in kernel 6.15.

43efe19 chore(ebpf): check for CONFIG_X86_FRED

If in a kernel lacking bpf_task_pt_regs() but somehow with CONFIG_X86_FRED
suppport, calculate pt_regs considering FRED extra padding.

2. Explain how to test it

3. Other comments

https://lore.kernel.org/all/[email protected]/

@geyslan geyslan self-assigned this Apr 17, 2025
@Copilot Copilot AI review requested due to automatic review settings April 17, 2025 12:34
Copilot

This comment was marked as outdated.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

pkg/ebpf/c/vmlinux_flavors.h:111

  • [nitpick] The structure name 'fred_info___check' uses triple underscores, which can be confusing. Consider renaming it to 'fred_info_check' for improved clarity.
struct fred_info___check {

geyslan added 2 commits May 30, 2025 11:54
If in a kernel lacking bpf_task_pt_regs() but somehow with CONFIG_X86_FRED
suppport, calculate pt_regs considering FRED extra padding.
This reflects pt_regs struct in kernel 6.15.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant