For Chrome OS running ARC container, we want to also collect tracing result when using chrome://tracing. This also enables the framework level tracing when Chrome OS is NOT in dev-mode, where adb and shell is not available.
This can be achieved by:
1. bind mount /sys/kernel/debug/tracing/trace_marker into the container, so the trace markers can be written.
2. Create a mojo interface for host to trigger tracing in the container.
3. Read the trace result from /sys/kernel/debug/tracing/trace in the host side.
The corresponding issue in Android: https://b.corp.google.com/issues/29776474
Comment 1 by bugdroid1@chromium.org
, Mar 15 2017