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

fix: Remove unnecessary check for syscall wrapper in sys_enter tracepoint #4236

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yanivagman
Copy link
Collaborator

@yanivagman yanivagman commented Aug 7, 2024

1. Explain what the PR does

The sys_enter raw tracepoint always provides direct access to pt_regs, regardless of the architecture's use of a syscall wrapper. This commit removes the redundant conditional check and simplifies the logic for extracting system call arguments.

2. Explain how to test it

3. Other comments

See the code here being executed before the call to the sys_enter tracepoint:
https://github.com/torvalds/linux/blob/master/arch/x86/entry/entry_64_fred.S#L21

…oint

The sys_enter raw tracepoint always provides direct access to pt_regs,
regardless of the architecture's use of a syscall wrapper. This commit removes
the redundant conditional check and simplifies the logic for extracting system
call arguments.
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.

2 participants