I am creating a client in DynamoRIO, a dynamic binary instrumentation system. I need to generate some output files, but I want to put it in the same path that DynamoRIO is using for it's log path, which is a different directory for each run of the program. I want to use this directory, so I can create a unique file for each run, and yet know exactly which run it's associated with. How can I get that path at runtime?
I've googled and searched through the API but have not managed to find what I need yet. I found the FILE pointer for the log file, but in my runs I'm not using logging, so that pointer won't help. The logging directory is still being used, though, because I'm having DynamoRIO dump out the trace cache.
Any DynamoRIO users here who can help me out?
Sorry I couldn't create the relevant tags for my question, I don't have the reputation yet. Not a good sign when the tags relating to my question don't exist yet. :) Hopefully dynamo is similar enough to work out here.