Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust-python-agent / lttng_ust_python.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
5 */
6
7 #undef TRACEPOINT_PROVIDER
8 #define TRACEPOINT_PROVIDER lttng_python
9
10 #if !defined(_TRACEPOINT_LTTNG_UST_PYTHON_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_LTTNG_UST_PYTHON_H
12
13 #include <lttng/tracepoint.h>
14 #include <stdbool.h>
15
16 TRACEPOINT_EVENT(lttng_python, event,
17 TP_ARGS(
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 ),
27 TP_FIELDS(
28 ctf_string(asctime, asctime)
29 ctf_string(msg, msg)
30 ctf_string(logger_name, logger_name)
31 ctf_string(funcName, funcName)
32 ctf_integer(unsigned int, lineno, lineno)
33 ctf_integer(unsigned int, int_loglevel, int_loglevel)
34 ctf_integer(unsigned int, thread, thread)
35 ctf_string(threadName, threadName)
36 )
37 )
38
39 #endif /* _TRACEPOINT_LTTNG_UST_PYTHON_H */
40
41 #undef TRACEPOINT_INCLUDE
42 #define TRACEPOINT_INCLUDE "./lttng_ust_python.h"
43
44 /* This part must be outside ifdef protection */
45 #include <lttng/tracepoint-event.h>
This page took 0.029092 seconds and 4 git commands to generate.