3
#define TRACEPOINT_CREATE_PROBES
5
* The header containing our TRACEPOINT_EVENTs.
7
#define TRACEPOINT_DEFINE
8
#include "emit_tracepoint.h"
11
emit_tracepoint(PyObject *self, PyObject *args)
13
const char *mesg_text;
15
if(!PyArg_ParseTuple(args, "s", &mesg_text))
19
tracepoint(emit_tracepoint, message, mesg_text);
24
static PyMethodDef EmitMethods[] = {
25
{"tracepoint", emit_tracepoint, METH_VARARGS, "Generate a tracepoint message."},
26
{NULL, NULL, 0, NULL} /* Sentinel */
33
(void) Py_InitModule("emit", EmitMethods);