Expand description
A wrapper around trace_marker tracing features
Structs§
- Trace
- A trace context obtained from a
trace_event!()call.
Enums§
- Traced
Categories - The tracing categories that the trace_marker backend supports.
Statics§
- CATEGORY_
COUNTER - Vector counting how many tracing event contexts are running for each category.
- ENABLED_
CATEGORIES - Vector used to test if a category is enabled or not for tracing.
- EVENT_
COUNTER - Sequential identifier for scoped trace events. This unique identifier is incremented
for each new
trace_event()call. - TRACE_
MARKER_ 🔒FILE
Functions§
- init
- Initializes the trace_marker backend. It attepts to open the
trace_markerfile and keep a reference that can be shared throughout the lifetime of the crosvm process. - push_
descriptors_ internal - Platform-specific implementation of the
push_descriptors!macro. If thetrace_markerfile has been initialized properly, it adds its file descriptor to the list of file descriptors that are allowed to be accessed when the process is jailed in the sandbox. - trace_
simple_ print_ internal - Platform-specific implementation of the
trace_simple_print!macro. If tracing is enabled on the system, it writes the given message to thetrace_markerfile.