Skip to main content

Crate ktracepoint

Crate ktracepoint 

Source
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§

pub use paste;
pub use tp_lexer;

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§

CommonTracePointMeta
CommonTracePointMeta holds metadata for a common tracepoint.
ExtTracePoint
An extended tracepoint structure that includes additional callback management and compiled expression handling.
KernelCodeManipulator
A utility struct to manipulate kernel code, primarily used for ensuring that we can modify kernel code safely.
RawTraceEventFunc
A structure representing a registered raw tracepoint callback function.
TraceCmdLineCache
A cache for storing command line arguments for each trace point.
TraceCmdLineCacheSnapshot
A snapshot of the command line cache at a specific point in time.
TraceDefaultFunc
A structure representing a registered tracepoint callback function.
TraceEntry
A trace entry structure that holds metadata about a trace event.
TraceEntryParser
A parser for trace entries that formats them into human-readable strings.
TraceEventFunc
A structure representing a registered tracepoint callback function.
TraceFilterFile
TraceFilterFile provides a way to set filters on the tracepoint.
TracePipeRaw
A raw trace pipe buffer that stores trace events as byte vectors.
TracePipeRecord
A trace pipe record with host-provided metadata captured when the event is written.
TracePipeSnapshot
A snapshot of the trace pipe buffer at a specific point in time.
TracePoint
The TracePoint structure represents a tracepoint in the system.
TracePointEnableFile
TracePointEnableFile provides a way to enable or disable the default trace pipe callback.
TracePointFormatFile
TracePointFormatFile provides a way to get the format of the tracepoint.
TracePointIdFile
TracePointIdFile provides a way to read the tracepoint ID.
TracePointMap
TracePointMap is a mapping from tracepoint IDs to TracePoint references.

Enums§

TraceCallbackType
An enum representing the different types of tracepoint callback functions.

Traits§

KernelTraceOps
KernelTraceOps trait provides kernel-level operations for tracing.
TracePipeOps
A trait defining operations for a trace pipe buffer.

Functions§

global_init_events
Initialize the tracing events