Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust-libc-wrapper / ust_pthread.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2013 Mentor Graphics
5 */
6
7 #undef TRACEPOINT_PROVIDER
8 #define TRACEPOINT_PROVIDER lttng_ust_pthread
9
10 #if !defined(_TRACEPOINT_UST_PTHREAD_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_UST_PTHREAD_H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <lttng/tracepoint.h>
18
19 TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_req,
20 TP_ARGS(pthread_mutex_t *, mutex, void *, ip),
21 TP_FIELDS(
22 ctf_integer_hex(void *, mutex, mutex)
23 )
24 )
25
26 TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_acq,
27 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
28 TP_FIELDS(
29 ctf_integer_hex(void *, mutex, mutex)
30 ctf_integer(int, status, status)
31 )
32 )
33
34 TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_trylock,
35 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
36 TP_FIELDS(
37 ctf_integer_hex(void *, mutex, mutex)
38 ctf_integer(int, status, status)
39 )
40 )
41
42 TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_unlock,
43 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
44 TP_FIELDS(
45 ctf_integer_hex(void *, mutex, mutex)
46 ctf_integer(int, status, status)
47 )
48 )
49
50 #endif /* _TRACEPOINT_UST_PTHREAD_H */
51
52 #undef TRACEPOINT_INCLUDE
53 #define TRACEPOINT_INCLUDE "./ust_pthread.h"
54
55 /* This part must be outside ifdef protection */
56 #include <lttng/tracepoint-event.h>
57
58 #ifdef __cplusplus
59 }
60 #endif
This page took 0.029666 seconds and 4 git commands to generate.