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

Use the right register type in arm64 #27

Merged
merged 1 commit into from
May 1, 2024

Conversation

javierhonduco
Copy link
Owner

@javierhonduco javierhonduco commented Apr 29, 2024

As we were using thhe x86 one, bpf_user_pt_regs_t is defined in vmlinux as:

typedef struct pt_regs bpf_user_pt_regs_t;

in x86 and:

typedef struct user_pt_regs bpf_user_pt_regs_t;

in arm64

Future work

Ensure retrieve_task_registers is correct for arm64 and add kernel tests for this architecture.

Test Plan

Tested on my x86 and arm64 machines.

As we were using thhe x86 one, `bpf_user_pt_regs_t` is defined in
vmlinux as:

```
typedef struct pt_regs bpf_user_pt_regs_t;
```

in x86 and:

```
typedef struct user_pt_regs bpf_user_pt_regs_t;
```

in arm64

Future work
===========

Ensure `retrieve_task_registers` is correct for arm64.

Test Plan
=========

Tested on my x86 and arm64 machines.
@javierhonduco javierhonduco requested a review from gmarler April 29, 2024 16:01
@javierhonduco javierhonduco merged commit 8cbe2f9 into main May 1, 2024
6 checks passed
@javierhonduco javierhonduco deleted the fix-arm64-registers-type branch May 1, 2024 08:31
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