Commit | Line | Data |
---|---|---|
c0c0989a MJ |
1 | /* |
2 | * SPDX-License-Identifier: MIT | |
3 | * | |
4 | * Copyright (C) 2013 Mentor Graphics | |
5 | */ | |
6 | ||
5b393d64 MJ |
7 | #undef LTTNG_UST_TRACEPOINT_PROVIDER |
8 | #define LTTNG_UST_TRACEPOINT_PROVIDER lttng_ust_pthread | |
600f634a | 9 | |
c2c72dde | 10 | #if !defined(_TRACEPOINT_UST_PTHREAD_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) |
600f634a SS |
11 | #define _TRACEPOINT_UST_PTHREAD_H |
12 | ||
13 | #ifdef __cplusplus | |
14 | extern "C" { | |
15 | #endif | |
16 | ||
600f634a SS |
17 | #include <lttng/tracepoint.h> |
18 | ||
7f2f82c3 | 19 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_req, |
cadfcbfc | 20 | LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, void *, ip), |
efa14d16 | 21 | LTTNG_UST_TP_FIELDS( |
600f634a | 22 | ctf_integer_hex(void *, mutex, mutex) |
5152f6df | 23 | ctf_unused(ip) |
600f634a SS |
24 | ) |
25 | ) | |
26 | ||
7f2f82c3 | 27 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_acq, |
cadfcbfc | 28 | LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip), |
efa14d16 | 29 | LTTNG_UST_TP_FIELDS( |
600f634a SS |
30 | ctf_integer_hex(void *, mutex, mutex) |
31 | ctf_integer(int, status, status) | |
5152f6df | 32 | ctf_unused(ip) |
600f634a SS |
33 | ) |
34 | ) | |
35 | ||
7f2f82c3 | 36 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_trylock, |
cadfcbfc | 37 | LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip), |
efa14d16 | 38 | LTTNG_UST_TP_FIELDS( |
600f634a SS |
39 | ctf_integer_hex(void *, mutex, mutex) |
40 | ctf_integer(int, status, status) | |
5152f6df | 41 | ctf_unused(ip) |
600f634a SS |
42 | ) |
43 | ) | |
44 | ||
7f2f82c3 | 45 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_unlock, |
cadfcbfc | 46 | LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip), |
efa14d16 | 47 | LTTNG_UST_TP_FIELDS( |
600f634a SS |
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 | ||
bb71a8ea MJ |
56 | #undef LTTNG_UST_TRACEPOINT_INCLUDE |
57 | #define LTTNG_UST_TRACEPOINT_INCLUDE "./ust_pthread.h" | |
600f634a SS |
58 | |
59 | /* This part must be outside ifdef protection */ | |
60 | #include <lttng/tracepoint-event.h> | |
61 | ||
62 | #ifdef __cplusplus | |
63 | } | |
64 | #endif |