Skip to content
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

Feature request: Add type information from CTF for userspace providers (USDT and pid) #120

Open
ericwmackay opened this issue Feb 27, 2025 · 0 comments

Comments

@ericwmackay
Copy link

Dtrace already has the ability to retrieve type information from CTF for kernel providers (like fbt). It would be great to have this power and flexibility for userspace providers like USDT and pid.

An example use case is for untangling complex struct types in either entry or return probe args[]. A function you're trying to trace may take a generic pointer as an argument, and your probe definition needs to cast the pointer to some complex struct in order to retrieve data from struct members. Defining these structs in Dtrace, and accessing the struct members, may be extremely difficult through other means such as including header files. Types may not be fully defined until compile time. The qemu project is a great example of code that fits this scenario.

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

No branches or pull requests

1 participant