Add 'ctf_unused' tracepoint field type
[lttng-ust.git] / liblttng-ust-libc-wrapper / ust_pthread.h
... / ...
CommitLineData
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
14extern "C" {
15#endif
16
17#include <lttng/tracepoint.h>
18
19TRACEPOINT_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 ctf_unused(ip)
24 )
25)
26
27TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_acq,
28 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
29 TP_FIELDS(
30 ctf_integer_hex(void *, mutex, mutex)
31 ctf_integer(int, status, status)
32 ctf_unused(ip)
33 )
34)
35
36TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_trylock,
37 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
38 TP_FIELDS(
39 ctf_integer_hex(void *, mutex, mutex)
40 ctf_integer(int, status, status)
41 ctf_unused(ip)
42 )
43)
44
45TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_unlock,
46 TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
47 TP_FIELDS(
48 ctf_integer_hex(void *, mutex, mutex)
49 ctf_integer(int, status, status)
50 ctf_unused(ip)
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
This page took 0.023516 seconds and 4 git commands to generate.