Skip to content

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

if (user_mode(ctx)) {
// 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.

2 participants