| 1 | #undef TRACEPOINT_PROVIDER |
| 2 | #define TRACEPOINT_PROVIDER lttng_python |
| 3 | |
| 4 | #if !defined(_TRACEPOINT_LTTNG_UST_PYTHON_H) || defined(TRACEPOINT_HEADER_MULTI_READ) |
| 5 | #define _TRACEPOINT_LTTNG_UST_PYTHON_H |
| 6 | |
| 7 | /* |
| 8 | * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com> |
| 9 | * |
| 10 | * This library is free software; you can redistribute it and/or modify it |
| 11 | * under the terms of the GNU Lesser General Public License as published by the |
| 12 | * Free Software Foundation; version 2.1 of the License. |
| 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
| 15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License |
| 17 | * for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU Lesser General Public License |
| 20 | * along with this library; if not, write to the Free Software Foundation, |
| 21 | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 | */ |
| 23 | |
| 24 | #include <lttng/tracepoint.h> |
| 25 | #include <stdbool.h> |
| 26 | |
| 27 | TRACEPOINT_EVENT(lttng_python, event, |
| 28 | TP_ARGS( |
| 29 | const char *, asctime, |
| 30 | const char *, msg, |
| 31 | const char *, logger_name, |
| 32 | const char *, funcName, |
| 33 | int, lineno, |
| 34 | int, int_loglevel, |
| 35 | int, thread, |
| 36 | const char *, threadName |
| 37 | ), |
| 38 | TP_FIELDS( |
| 39 | ctf_string(asctime, asctime) |
| 40 | ctf_string(msg, msg) |
| 41 | ctf_string(logger_name, logger_name) |
| 42 | ctf_string(funcName, funcName) |
| 43 | ctf_integer(unsigned int, lineno, lineno) |
| 44 | ctf_integer(unsigned int, int_loglevel, int_loglevel) |
| 45 | ctf_integer(unsigned int, thread, thread) |
| 46 | ctf_string(threadName, threadName) |
| 47 | ) |
| 48 | ) |
| 49 | |
| 50 | #endif /* _TRACEPOINT_LTTNG_UST_PYTHON_H */ |
| 51 | |
| 52 | #undef TRACEPOINT_INCLUDE |
| 53 | #define TRACEPOINT_INCLUDE "./lttng_ust_python.h" |
| 54 | |
| 55 | /* This part must be outside ifdef protection */ |
| 56 | #include <lttng/tracepoint-event.h> |