You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now the only mention of usdt outside of libbpf function definitions is in program types, which comes from libbpf.
We could start by including this comment from libbpf source code.
Linux kernel selftests is a comprehensive example that I think should be at least linked in documentation.
I'd love to see a section about setting up and using semaphores with USDT as I'm having problems with that.
I couldn't yet figure out how when checking with readelf -n executable to make semaphore non zero.
My understanding is that for usdt with provider "customProvider" and name "probe_name" one should create a global variable like this unsigned short customProvider_probe_name_semaphore SEC(".probes");
But this doesn't work for me.
I hope you find this issue worth pursuing.
Best regards,
Krzysztof
The text was updated successfully, but these errors were encountered:
As of now the only mention of usdt outside of libbpf function definitions is in program types, which comes from libbpf.
We could start by including this comment from libbpf source code.
Linux kernel selftests is a comprehensive example that I think should be at least linked in documentation.
I'd love to see a section about setting up and using semaphores with USDT as I'm having problems with that.
I couldn't yet figure out how when checking with
readelf -n executable
to make semaphore non zero.My understanding is that for usdt with provider "customProvider" and name "probe_name" one should create a global variable like this
unsigned short customProvider_probe_name_semaphore SEC(".probes");
But this doesn't work for me.
I hope you find this issue worth pursuing.
Best regards,
Krzysztof
The text was updated successfully, but these errors were encountered: