Commit | Line | Data |
---|---|---|
a4ada9b8 MD |
1 | #undef TRACEPOINT_PROVIDER |
2 | #define TRACEPOINT_PROVIDER ust_tests_fork | |
30142219 MD |
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 | * | |
49276e52 MD |
10 | * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
11 | * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. | |
30142219 | 12 | * |
49276e52 MD |
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. | |
30142219 MD |
18 | */ |
19 | ||
4318ae1b | 20 | #include <lttng/tracepoint.h> |
30142219 MD |
21 | #include <sys/types.h> |
22 | ||
63ef2693 MD |
23 | TRACEPOINT_EVENT(ust_tests_fork, before_fork, |
24 | TP_ARGS(), | |
30142219 MD |
25 | TP_FIELDS() |
26 | ) | |
27 | ||
7083f0fe | 28 | TRACEPOINT_EVENT(ust_tests_fork, after_fork_child, |
63ef2693 | 29 | TP_ARGS(pid_t, pid), |
30142219 MD |
30 | TP_FIELDS( |
31 | ctf_integer(pid_t, pid, pid) | |
32 | ) | |
33 | ) | |
34 | ||
63ef2693 MD |
35 | TRACEPOINT_EVENT(ust_tests_fork, after_fork_parent, |
36 | TP_ARGS(), | |
30142219 MD |
37 | TP_FIELDS() |
38 | ) | |
39 | ||
63ef2693 MD |
40 | TRACEPOINT_EVENT(ust_tests_fork, after_exec, |
41 | TP_ARGS(), | |
30142219 MD |
42 | TP_FIELDS() |
43 | ) | |
44 | ||
45 | #endif /* _TRACEPOINT_UST_TESTS_FORK_H */ | |
46 | ||
30142219 | 47 | #undef TRACEPOINT_INCLUDE_FILE |
7f0aeeba | 48 | #define TRACEPOINT_INCLUDE_FILE ./ust_tests_fork.h |
30142219 | 49 | |
0f6c5917 | 50 | /* This part must be outside ifdef protection */ |
4318ae1b | 51 | #include <lttng/tracepoint-event.h> |