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: Incremental rewriting #200

Open
Maetveis opened this issue Nov 10, 2022 · 2 comments
Open

Feature: Incremental rewriting #200

Maetveis opened this issue Nov 10, 2022 · 2 comments

Comments

@Maetveis
Copy link
Contributor

Omnitrace could have an option to do binary rewrite on object files, and an option to intercept a compiler invocation to rewrite the file after it was compiled similar to how ccache or distcc work.
I'm guessing the linker will not have problems with linking instrumented functions.

This would allow for a workflow where only changed files have to be re-instrumented, potentially significantly cutting down on the time it takes to get a new trace after tweaking an application.
With projects in cmake using an option like this would be as easy as setting CMAKE_COMPILER_LAUNCHER.

@jrmadsen
Copy link
Collaborator

jrmadsen commented Nov 10, 2022

I'll think about this and get back to you.

An alternative might be to instead just provide a CMake target which adds -finstrument-functions flags to the target and provides a library with the instrumentation functions? The trade-off here is the decreased control over which functions get instrumented.

@ppanchad-amd
Copy link

@Maetveis Do you still need assistance with this ticket? If not, please close the ticket. Thanks!

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

3 participants