Tracepoint API namespacing ctf_string
[lttng-ust.git] / src / lib / lttng-ust-python-agent / lttng_ust_python.h
CommitLineData
c0c0989a
MJ
1/*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
5 */
6
5b393d64
MJ
7#undef LTTNG_UST_TRACEPOINT_PROVIDER
8#define LTTNG_UST_TRACEPOINT_PROVIDER lttng_python
c3e14096 9
c2c72dde 10#if !defined(_TRACEPOINT_LTTNG_UST_PYTHON_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
c3e14096
DG
11#define _TRACEPOINT_LTTNG_UST_PYTHON_H
12
c3e14096
DG
13#include <lttng/tracepoint.h>
14#include <stdbool.h>
15
7f2f82c3 16LTTNG_UST_TRACEPOINT_EVENT(lttng_python, event,
cadfcbfc 17 LTTNG_UST_TP_ARGS(
c3e14096
DG
18 const char *, asctime,
19 const char *, msg,
20 const char *, logger_name,
21 const char *, funcName,
22 int, lineno,
23 int, int_loglevel,
24 int, thread,
25 const char *, threadName
26 ),
efa14d16 27 LTTNG_UST_TP_FIELDS(
3202f63a
MJ
28 lttng_ust_field_string(asctime, asctime)
29 lttng_ust_field_string(msg, msg)
30 lttng_ust_field_string(logger_name, logger_name)
31 lttng_ust_field_string(funcName, funcName)
b4064f28
MJ
32 lttng_ust_field_integer(unsigned int, lineno, lineno)
33 lttng_ust_field_integer(unsigned int, int_loglevel, int_loglevel)
34 lttng_ust_field_integer(unsigned int, thread, thread)
3202f63a 35 lttng_ust_field_string(threadName, threadName)
c3e14096
DG
36 )
37)
38
39#endif /* _TRACEPOINT_LTTNG_UST_PYTHON_H */
40
bb71a8ea
MJ
41#undef LTTNG_UST_TRACEPOINT_INCLUDE
42#define LTTNG_UST_TRACEPOINT_INCLUDE "./lttng_ust_python.h"
c3e14096
DG
43
44/* This part must be outside ifdef protection */
45#include <lttng/tracepoint-event.h>
This page took 0.028971 seconds and 4 git commands to generate.