| 1 | #undef TRACEPOINT_PROVIDER |
| 2 | #define TRACEPOINT_PROVIDER 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 MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
| 11 | * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. |
| 12 | * |
| 13 | * Permission is hereby granted to use or copy this program |
| 14 | * for any purpose, provided the above notices are retained on all copies. |
| 15 | * Permission to modify the code and to distribute modified code is granted, |
| 16 | * provided the above notices are retained, and a notice that the code was |
| 17 | * modified is included with the above copyright notice. |
| 18 | */ |
| 19 | |
| 20 | #include <lttng/tracepoint.h> |
| 21 | #include <sys/types.h> |
| 22 | |
| 23 | TRACEPOINT_EVENT(ust_tests_fork, before_fork, |
| 24 | TP_ARGS(), |
| 25 | TP_FIELDS() |
| 26 | ) |
| 27 | |
| 28 | TRACEPOINT_EVENT(ust_tests_fork, after_fork_child, |
| 29 | TP_ARGS(pid_t, pid), |
| 30 | TP_FIELDS( |
| 31 | ctf_integer(pid_t, pid, pid) |
| 32 | ) |
| 33 | ) |
| 34 | |
| 35 | TRACEPOINT_EVENT(ust_tests_fork, after_fork_parent, |
| 36 | TP_ARGS(), |
| 37 | TP_FIELDS() |
| 38 | ) |
| 39 | |
| 40 | TRACEPOINT_EVENT(ust_tests_fork, after_exec, |
| 41 | TP_ARGS(), |
| 42 | TP_FIELDS() |
| 43 | ) |
| 44 | |
| 45 | #endif /* _TRACEPOINT_UST_TESTS_FORK_H */ |
| 46 | |
| 47 | #undef TRACEPOINT_INCLUDE_FILE |
| 48 | #define TRACEPOINT_INCLUDE_FILE ./ust_tests_fork.h |
| 49 | |
| 50 | /* This part must be outside ifdef protection */ |
| 51 | #include <lttng/tracepoint-event.h> |