lisa.trace#

Trace Parser Module

Classes

AndTraceEventChecker

Check that all the given event checkers are satisfied.

AssociativeTraceEventChecker

Base class for associative operators like and and or.

CPU

Alias to int used for CPU IDs.

CollectorBase

Base class for devlib.collector.CollectorBase-based collectors using composition.

ComposedCollector

Compose multiple lisa.trace.CollectorBase together.

CustomFieldsTxtEventParser

Subclass of TxtEventParser to be used for funky formats.

DmesgCollector

Wrapper around devlib.collector.dmesg.DmesgCollector.

DynamicTraceEventChecker

Do not check anything, but exposes the information that one of the group of events will be used.

EmptyTraceEventChecker

Check for no event at all.

EventParserBase

Base class for trace event parser.

FtraceCollector

Thin wrapper around devlib.collector.ftrace.FtraceCollector.

FtraceConf

Configuration class of FtraceCollector.

HRTxtTraceParser

Parse text trace in their human readable format (as opposed to the raw format).

MetaTxtTraceParser

Textual trace parser to parse meta-events.

MockTraceParser

Mock parser that just returns the dataframes it was given.

OptionalTraceEventChecker

Do not check anything, but exposes the information that the events may be used if present.

OrTraceEventChecker

Check that one of the given event checkers is satisfied.

PrintTxtEventParser

Event parser for the folling events, displayed in non-raw format by trace-cmd:.

SimpleTxtTraceParser

Simple text trace parser (base) class.

SysTraceParser

Parse Google’s systrace format.

Trace

This class provides a way to access event dataframes and ties together various low-level moving pieces to make that happen.

TraceBase

Base class for all public trace classes.

TraceDumpTraceParser

trace.dat parser shipped by LISA.

TraceEventChecker

Check for one single event.

TraceEventCheckerBase

ABC for events checker classes.

TraceParserBase

Abstract Base Class for trace parsers.

TxtEventParser

Trace event parser for raw output of trace-cmd report -R trace.dat.

TxtTraceParser

Text trace parser for the raw output of trace-cmd report -R trace.dat.

TxtTraceParserBase

Text trace parser base class.

Functions

__getattr__()

may_use_events()

Same as requires_events() but just exposes some events that may be used if presents.

requires_events()

Decorator for methods that require some given trace events.

requires_one_event_of()

Same as requires_events() with logical OR semantic.

will_use_events_from()

Same as requires_events() but just exposes some events groups that will be used, depending on some dynamic factor.

Exceptions

DroppedTraceEventError

Raised when some events were dropped from the ftrace ring buffer because of lack of space.

MissingMetadataError

Raised when a given metadata is not available.

MissingTraceEventError

param missing_events:

The missing trace events :type missing_events: TraceEventCheckerBase or list(str).

TraceDumpError

Exception containing errors forwarded from the trace-dump parser.