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