Expand description
A Rust library for defining and managing tracepoints in a no_std environment. It provides macros and structures to create tracepoints, manage their state, and handle trace events efficiently. The library is designed to be lightweight and suitable for embedded systems or kernel-level programming where the standard library is not available. It leverages Rust’s powerful macro system to simplify the creation and management of tracepoints. The macros provided by this library allow for easy insertion of tracepoints into code with minimal overhead.
Re-exports§
Modules§
- ptr
- A trait to convert various types to u64 representation. This is useful for passing arguments to tracepoints in a uniform way.
Macros§
- define_
event_ trace - Define a tracepoint with the given parameters.
Structs§
- Common
Trace Point Meta - CommonTracePointMeta holds metadata for a common tracepoint.
- ExtTrace
Point - An extended tracepoint structure that includes additional callback management and compiled expression handling.
- Kernel
Code Manipulator - A utility struct to manipulate kernel code, primarily used for ensuring that we can modify kernel code safely.
- RawTrace
Event Func - A structure representing a registered raw tracepoint callback function.
- Trace
CmdLine Cache - A cache for storing command line arguments for each trace point.
- Trace
CmdLine Cache Snapshot - A snapshot of the command line cache at a specific point in time.
- Trace
Default Func - A structure representing a registered tracepoint callback function.
- Trace
Entry - A trace entry structure that holds metadata about a trace event.
- Trace
Entry Parser - A parser for trace entries that formats them into human-readable strings.
- Trace
Event Func - A structure representing a registered tracepoint callback function.
- Trace
Filter File - TraceFilterFile provides a way to set filters on the tracepoint.
- Trace
Pipe Raw - A raw trace pipe buffer that stores trace events as byte vectors.
- Trace
Pipe Record - A trace pipe record with host-provided metadata captured when the event is written.
- Trace
Pipe Snapshot - A snapshot of the trace pipe buffer at a specific point in time.
- Trace
Point - The TracePoint structure represents a tracepoint in the system.
- Trace
Point Enable File - TracePointEnableFile provides a way to enable or disable the default trace pipe callback.
- Trace
Point Format File - TracePointFormatFile provides a way to get the format of the tracepoint.
- Trace
Point IdFile - TracePointIdFile provides a way to read the tracepoint ID.
- Trace
Point Map - TracePointMap is a mapping from tracepoint IDs to TracePoint references.
Enums§
- Trace
Callback Type - An enum representing the different types of tracepoint callback functions.
Traits§
- Kernel
Trace Ops - KernelTraceOps trait provides kernel-level operations for tracing.
- Trace
Pipe Ops - A trait defining operations for a trace pipe buffer.
Functions§
- global_
init_ events - Initialize the tracing events