[aarch64-port-dev ] RFR: 8240353: AArch64: missing support for -XX:+ExtendedDTraceProbes in C1

Nick Gasson nick.gasson at arm.com
Tue Mar 10 03:56:09 UTC 2020


Hi Andrew,

On 03/09/20 18:48 pm, Andrew Haley wrote:
>>
>> Also used bpftrace to check the method_entry, method_return, and
>> object_alloc probes are triggered correctly. E.g.
>>
>>   bpftrace -e 'usdt::hotspot:method__entry { printf("tid:%d, class:%s, name:%s, sig:%s\n", arg0, str(arg1, arg2), str(arg3, arg4), str(arg5, arg6)); }' -p `pidof java`
>>
>> But this needs the very latest bpftrace/libbcc due to some other
>> issues on AArch64.
>
> Hmm, what a pain. Can you tell us what you did to make this work? What
> packages you built and installed?

Specifically you need these two patches:

https://github.com/iovisor/bcc/commit/5011f992b3167c162b5a0ad57fd3fa23c9ea76b3.patch
https://github.com/iovisor/bpftrace/commit/ee5314ba23cc60e903b626b14bcfaafa3aa8b11b.patch

They apply cleanly on the "bcc" and "bpftrace" packages in Fedora
31. Alternatively you can build the master branch of iovisor/bcc and
iovisor/bpftrace on GitHub from source.


Thanks,
Nick


More information about the hotspot-compiler-dev mailing list