Commit | Line | Data |
---|---|---|
c0c0989a MJ |
1 | /* |
2 | * SPDX-License-Identifier: MIT | |
3 | * | |
4 | * Copyright (C) 2013 Mentor Graphics | |
5 | */ | |
6 | ||
600f634a | 7 | #undef TRACEPOINT_PROVIDER |
6d4658aa | 8 | #define TRACEPOINT_PROVIDER lttng_ust_pthread |
600f634a SS |
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 | ||
600f634a SS |
17 | #include <lttng/tracepoint.h> |
18 | ||
6d4658aa | 19 | TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_req, |
35176231 | 20 | TP_ARGS(pthread_mutex_t *, mutex, void *, ip), |
600f634a SS |
21 | TP_FIELDS( |
22 | ctf_integer_hex(void *, mutex, mutex) | |
5152f6df | 23 | ctf_unused(ip) |
600f634a SS |
24 | ) |
25 | ) | |
26 | ||
6d4658aa | 27 | TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_acq, |
35176231 | 28 | TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip), |
600f634a SS |
29 | TP_FIELDS( |
30 | ctf_integer_hex(void *, mutex, mutex) | |
31 | ctf_integer(int, status, status) | |
5152f6df | 32 | ctf_unused(ip) |
600f634a SS |
33 | ) |
34 | ) | |
35 | ||
6d4658aa | 36 | TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_trylock, |
35176231 | 37 | TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip), |
600f634a SS |
38 | TP_FIELDS( |
39 | ctf_integer_hex(void *, mutex, mutex) | |
40 | ctf_integer(int, status, status) | |
5152f6df | 41 | ctf_unused(ip) |
600f634a SS |
42 | ) |
43 | ) | |
44 | ||
6d4658aa | 45 | TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_unlock, |
35176231 | 46 | TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip), |
600f634a SS |
47 | TP_FIELDS( |
48 | ctf_integer_hex(void *, mutex, mutex) | |
49 | ctf_integer(int, status, status) | |
5152f6df | 50 | ctf_unused(ip) |
600f634a SS |
51 | ) |
52 | ) | |
53 | ||
54 | #endif /* _TRACEPOINT_UST_PTHREAD_H */ | |
55 | ||
56 | #undef TRACEPOINT_INCLUDE | |
57 | #define TRACEPOINT_INCLUDE "./ust_pthread.h" | |
58 | ||
59 | /* This part must be outside ifdef protection */ | |
60 | #include <lttng/tracepoint-event.h> | |
61 | ||
62 | #ifdef __cplusplus | |
63 | } | |
64 | #endif |