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

Handle get_omnitrace_is_preloaded() function called multiple times #405

Closed
wants to merge 2 commits into from

Conversation

pranswarup
Copy link

get_omnitrace_is_preloaded() is called multiple times likely before the LD_PRELOAD environment variable is set to false in the code. The updated function sets a new environment variable once it finds that libomnitrace-dl.so has been loaded. Subsequent calls do not check for that libomnitrace-dl.so has been loaded after seeing that the OMNITRACE_DL_IS_PRELOADED environment variable is set to true. I have tested this code, and it runs fine, generating the trace results.

@pranswarup pranswarup closed this Oct 11, 2024
@pranswarup pranswarup deleted the SWDEV-486345_env branch October 11, 2024 15:44
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

Successfully merging this pull request may close these issues.

1 participant