Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust-libc-wrapper / ust_pthread.h
CommitLineData
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
14extern "C" {
15#endif
16
600f634a
SS
17#include <lttng/tracepoint.h>
18
6d4658aa 19TRACEPOINT_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)
23 )
24)
25
6d4658aa 26TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_acq,
35176231 27 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
600f634a
SS
28 TP_FIELDS(
29 ctf_integer_hex(void *, mutex, mutex)
30 ctf_integer(int, status, status)
31 )
32)
33
6d4658aa 34TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_trylock,
35176231 35 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
600f634a
SS
36 TP_FIELDS(
37 ctf_integer_hex(void *, mutex, mutex)
38 ctf_integer(int, status, status)
39 )
40)
41
6d4658aa 42TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_unlock,
35176231 43 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
600f634a
SS
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.027963 seconds and 4 git commands to generate.