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

How to make offcputime and similar tools work with Rust? #5204

Open
alexxdgfyuih8oyl76r5t4g opened this issue Feb 4, 2025 · 1 comment
Open

Comments

@alexxdgfyuih8oyl76r5t4g
Copy link

alexxdgfyuih8oyl76r5t4g commented Feb 4, 2025

I need to get bcc tools to work with Rust.

It seems to work correctly with C programs, but not Rust programs.
If I'm right it's due to te difference in debug symbols (cause it kinda works but not 100% the way its suppose to).
I can see the most outer funcs, but not the ones inside them.
So if I have a->b->c I will only see a and then some systemcalls in the reslting flamegraph.
If it wac a C program a->b->c would be present just as expected.

Is there a known workaround?
If no, then what is responsible for getting debug sybmols?
What part of the code should I change if any?

@alexxdgfyuih8oyl76r5t4g alexxdgfyuih8oyl76r5t4g changed the title How to make offcputime and similar tools work for Rust? How to make offcputime and similar tools work withRust? Feb 4, 2025
@alexxdgfyuih8oyl76r5t4g alexxdgfyuih8oyl76r5t4g changed the title How to make offcputime and similar tools work withRust? How to make offcputime and similar tools work with Rust? Feb 4, 2025
@alexxdgfyuih8oyl76r5t4g
Copy link
Author

Upd: may be some other reason.
Tried renaming debug symbols of some functions, didn't work.

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