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

Aarch64 support #34

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from
Draft

Aarch64 support #34

wants to merge 29 commits into from

Conversation

Jongy
Copy link

@Jongy Jongy commented Feb 4, 2022

It works! but not complete & not ready for CR yet. I will list the missing things to do in the respective gProfiler PR.

#elif defined(__aarch64__)
switch (pthreads_impl) {
case PTI_GLIBC:
// TODO const bad
Copy link
Author

Choose a reason for hiding this comment

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

TODO explain

break;

case PTI_MUSL:
// TODO ensure really same as x86
Copy link
Author

Choose a reason for hiding this comment

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

TODO

#elif defined(__aarch64__)
switch (pthreads_impl) {
case PTI_GLIBC:
return (int64_t)(a - b) < 0x500;
Copy link
Author

Choose a reason for hiding this comment

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

TODO explain

// Yes - use the registers context given to the BPF program
user_regs = *ctx;
bpf_probe_read_kernel(&user_regs, sizeof(user_regs), ctx);
Copy link
Author

Choose a reason for hiding this comment

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

TODO figure this out - why these 2 lines do not have the same effect, as if bpf_probe_read_kernel fails.

TODO maybe because bpf_probe_read_kernel doesn't exist in pre-5.4, so this read fails???

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