Babeltrace 2 C API
2.0.5
Open-source trace manipulation framework
|
This example shows a basic Babeltrace 2 shared object plugin definition C file.
The shared object plugin's name 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 actual source and sink component classes's code, 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.