Building your own parser
If you want to create your own parser, consider the structure of traceprinter as a starting point. This utility consists of a long list of callback definitions, followed by a fairly simple parsing procedure. Each of the callback definitions is for printing.
The following sections give a brief introduction to the building blocks
of your own parser that uses the traceparser library, and some of the issues you'll need to handle.
Alternatively, you can write a parser that uses C Library calls to read and parse event data from the kernel trace file;
for an example, see Parser
in the Sample Programs
appendix.
Page updated:
