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

provide "AmIRunningUnder DrMemory()" feature #61

Open
derekbruening opened this issue Nov 28, 2014 · 3 comments
Open

provide "AmIRunningUnder DrMemory()" feature #61

derekbruening opened this issue Nov 28, 2014 · 3 comments

Comments

@derekbruening
Copy link
Contributor

From [email protected] on September 30, 2010 00:43:05

feature request from DynamoRIO issue #280 :

By the way, does DrMemory provide any client requests like "AmIRunningUnder DrMemory()"?
It'd be very useful for client programs to know that they are running under instrumentation tool to avoid calling HeapSetInformation.

Original issue: http://code.google.com/p/drmemory/issues/detail?id=61

@derekbruening
Copy link
Contributor Author

From [email protected] on September 30, 2010 00:08:12

FYI for ThreadSanitizer/Valgrind we have RunningOnValgrind() function https://code.google.com/p/data-race-test/source/browse/trunk/dynamic_annotations/dynamic_annotations.c?spec=svn2464&r=2453#130 We can also override its return value by RUNNING_ON_VALGRIND env and this is how we set the value when running under Dr. Memory right now.

@derekbruening
Copy link
Contributor Author

From [email protected] on July 30, 2013 10:43:00

xref core annotation issue #283 , issue #572 , issue #573

@derekbruening
Copy link
Contributor Author

Xref DynamoRIO/dynamorio#1237

Today DYNAMORIO_ANNOTATE_RUNNING_ON_DYNAMORIO or RUNNING_ON_VALGRIND should both work. But, there are no docs, and we don't provide dr_annotations.h in our release package. Plus, maybe we should provide our own with Dr. Memory in the name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant