|
Babeltrace 2 C API
2.1.2
Open-source trace manipulation framework
|
This example shows a basic Babeltrace 2 shared object plugin definition C file.
The name of shared object plugin is vestige. Therefore the input and output component classes would be identified in the babeltrace2 command-line tool as source.vestige.input and sink.vestige.output.
Assume that vestige.c contains the code of the actual source and sink component classes, and that vestige.h contains its declarations.
vestige-plugin.c:
See Compile and link a Babeltrace 2 shared object plugin to learn how you could compile and link those files as a Babeltrace 2 shared object plugin.