Skip to content

Commit

Permalink
python: Fix broken calculation on arm64 (#2562)
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun authored Feb 27, 2024
2 parents 248e659 + 90ae3c0 commit 575dd4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/unwinders/pyperf.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static inline __attribute__((__always_inline__)) int tls_read(void *tls_base, In
if (bpf_probe_read_user(&tls_addr, sizeof(tls_addr), tls_base - libc_offsets->pthread_size + libc_offsets->pthread_block)) {
return -1;
}
tls_addr = key * libc_offsets->pthread_key_data_size;
tls_addr = tls_addr + key * libc_offsets->pthread_key_data_size;
#else
#error "Unsupported platform"
#endif
Expand Down

0 comments on commit 575dd4e

Please sign in to comment.