Skip to content

arm64 support, good times#62

Merged
haesbaert merged 1 commit into
mainfrom
arm64
Sep 13, 2024
Merged

arm64 support, good times#62
haesbaert merged 1 commit into
mainfrom
arm64

Conversation

@haesbaert
Copy link
Copy Markdown
Collaborator

This fixes the missing bits for arm64 support in quark.

First change is basically the name of the first register, so define them for each architecture.

Second is that arm64 doesn't define an exit_thread in the kernel, so we had to change the probing point to perf_event_exit_task.

While here also kill the name member of kprobe{} and just derive it from target, so now the tracefs name will be something like: quark_perf_event_exit_task_$PID_$QID

On another PR I'll rename kp_wake_up_new_task to kp_fork, makes little sense to keep bringing the probe point all the way up, a kp_fork will be where we get wherever fork is coming from, kp_exec wherever exec is coming from, and kp_exit wherever exit is coming from.

This fixes the missing bits for arm64 support in quark.

First change is basically the name of the first register, so define them for
each architecture.

Second is that arm64 doesn't define an `exit_thread` in the kernel, so we had to
change the probing point to `perf_event_exit_task`.

While here also kill the `name` member of kprobe{} and just derive it from
target, so now the tracefs name will be something like:
quark_perf_event_exit_task_$PID_$QID

On another PR I'll rename kp_wake_up_new_task to kp_fork, makes little sense to
keep bringing the probe point all the way up, a kp_fork will be where we get
wherever fork is coming from, kp_exec wherever exec is coming from, and kp_exit
wherever exit is coming from.
@haesbaert haesbaert merged commit 72525cc into main Sep 13, 2024
@haesbaert haesbaert deleted the arm64 branch October 15, 2024 15:45
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.

2 participants