When a binary is instrumented with --instrumentation-sleep-time and instrumentation-wait-forks options and lauched, the profile is periodically written until all the forks die. The problem is that we cannot wait for the whole process tree, and we have no way to tell when it's safe to read the profile. Hovewer, if we keep profile open throughout the life of the process tree, we can use fuser to determine when writing is finished. It will help us to write robust tests for instrumentation, as mentioned in https://reviews.llvm.org/D153771.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for working on this @treapster . Can you add to your diff stack a diff that adds a test that uses this improved mechanism?