| 1 | #undef TRACEPOINT_SYSTEM |
| 2 | #define TRACEPOINT_SYSTEM ust_tests_fork |
| 3 | |
| 4 | #if !defined(_TRACEPOINT_UST_TESTS_FORK_H) || defined(TRACEPOINT_HEADER_MULTI_READ) |
| 5 | #define _TRACEPOINT_UST_TESTS_FORK_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 | #include <sys/types.h> |
| 27 | |
| 28 | TRACEPOINT_EVENT_NOARGS(ust_tests_fork_before_fork, |
| 29 | TP_FIELDS() |
| 30 | ) |
| 31 | |
| 32 | TRACEPOINT_EVENT(ust_tests_fork_after_fork_child, |
| 33 | TP_PROTO(pid_t pid), |
| 34 | TP_ARGS(pid), |
| 35 | TP_FIELDS( |
| 36 | ctf_integer(pid_t, pid, pid) |
| 37 | ) |
| 38 | ) |
| 39 | |
| 40 | TRACEPOINT_EVENT_NOARGS(ust_tests_fork_after_fork_parent, |
| 41 | TP_FIELDS() |
| 42 | ) |
| 43 | |
| 44 | TRACEPOINT_EVENT_NOARGS(ust_tests_fork_after_exec, |
| 45 | TP_FIELDS() |
| 46 | ) |
| 47 | |
| 48 | #endif /* _TRACEPOINT_UST_TESTS_FORK_H */ |
| 49 | |
| 50 | #undef TRACEPOINT_INCLUDE_PATH |
| 51 | #define TRACEPOINT_INCLUDE_PATH . |
| 52 | #undef TRACEPOINT_INCLUDE_FILE |
| 53 | #define TRACEPOINT_INCLUDE_FILE ust_tests_fork |
| 54 | |
| 55 | /* This part must be outside protection */ |
| 56 | #include <lttng/tracepoint-event.h> |