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

CPU architecture independent design #13

Open
gitkiru opened this issue Jul 20, 2023 · 1 comment
Open

CPU architecture independent design #13

gitkiru opened this issue Jul 20, 2023 · 1 comment

Comments

@gitkiru
Copy link

gitkiru commented Jul 20, 2023

It is nice to have dynamic user space profiling support. Instead of resolving dependencies, another approach that could be considered is to have a light-weight agent running on-board the system streaming the data and have an external server handle the UI part, that could be web-based as well. Regular ftrace based perf tool itself can generate CPU data reports at function level, though not continuously. When combined with the debug symbol resolution and external web server/UI and possibly adding process ID based tracing, that would work out well across CPU architectures.

@gitkiru
Copy link
Author

gitkiru commented Jul 26, 2023

Seems to work fine on x86_64. With the current code, does the compilation work fine for ARM32 CPUs? Looking at this for an embedded Linux environment - are there build or runtime dependencies for wachy or for the bpftrace it relies on other than enabling BPF kernel config? Applications need to be recompiled with debug option though for symbols. That is another consideration for profiling in a production environment with embedded Linux. (extracting and keeping a map of debug symbols to addresses offline similar to parca, but with relatively little overhead, may help do code navigation externally?)

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