-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: master
Are you sure you want to change the base?
Aarch64 support #34
Conversation
#elif defined(__aarch64__) | ||
switch (pthreads_impl) { | ||
case PTI_GLIBC: | ||
// TODO const bad |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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???
It works! but not complete & not ready for CR yet. I will list the missing things to do in the respective gProfiler PR.