lisa.trace.PrintTxtEventParser#

class lisa.trace.PrintTxtEventParser(event, func_field, content_field)[source]#

Bases: TxtEventParser

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

  • print

  • bprint

  • bputs

Note

bputs and print could be parsed in raw format, but that would make them harder to parse (function resolution needed), and bprint is just impossible to parse in raw format, since the data to interpolate the format string with are not displayed by trace-cmd.

Attributes

PARSER_REGEX_TERMINALS inherited

Snippets of regex to be used in building more complex regexes in textual trace parsers.

Properties

bytes_regex inherited

Same as regex but acting on bytes instead of str.

Attributes#

PrintTxtEventParser.PARSER_REGEX_TERMINALS = {'blank': ' +', 'floating': '\\d+\\.\\d+', 'identifier': '\\w+', 'integer': '\\d+'}#

Inherited attribute, see lisa.trace.EventParserBase.PARSER_REGEX_TERMINALS

Snippets of regex to be used in building more complex regexes in textual trace parsers.

Properties#

property PrintTxtEventParser.bytes_regex#

Inherited property, see lisa.trace.TxtEventParser.bytes_regex

Same as regex but acting on bytes instead of str.