Add sandbox support for AsanCoverage.
Support dumping coverage data generated by AsanCoverage from sandboxed processes. For the GPU process, we simply pre-open a file before engaging the sandbox. For the renderers, we use a helper process which we fork from the zygote. The helper process collects coverage data from renderers over a socket and writes it to a file. This allows an arbitrary number of renderers to share one output file. With this change, GPU and renderers will write coverage data to .sancov.packed files which may contain data from multiple modules/processes. Previously, we created one .sancov file per process per module (and still do so for other processes). Note that the new behavior takes effect regardless of whether the sandbox is actually enabled. BUG=336212 R=jln@chromium.org TBR=kbr@chromium.org Review URL: https://codereview.chromium.org/280303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274248 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment