aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/profiling/stap_probes.h
blob: ba8020c5a3263fdd3774d4f640a5d229c4560562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* Generated by the Systemtap dtrace wrapper */

#define _SDT_HAS_SEMAPHORES 1


#define STAP_HAS_SEMAPHORES 1 /* deprecated */


#include <sys/sdt.h>

/* _STAP_ADD_MARK ( int tag) */
#if defined STAP_SDT_V1
#define _STAP_ADD_MARK_ENABLED() __builtin_expect (add_mark_semaphore, 0)
#define _stap_add_mark_semaphore add_mark_semaphore
#else
#define _STAP_ADD_MARK_ENABLED() __builtin_expect (_stap_add_mark_semaphore, 0)
#endif
__extension__ extern unsigned short _stap_add_mark_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
#define _STAP_ADD_MARK(arg1) \
DTRACE_PROBE1(_stap,add_mark,arg1)

/* _STAP_TIMING_NS_BEGIN ( int tag) */
#if defined STAP_SDT_V1
#define _STAP_TIMING_NS_BEGIN_ENABLED() __builtin_expect (timing_ns_begin_semaphore, 0)
#define _stap_timing_ns_begin_semaphore timing_ns_begin_semaphore
#else
#define _STAP_TIMING_NS_BEGIN_ENABLED() __builtin_expect (_stap_timing_ns_begin_semaphore, 0)
#endif
__extension__ extern unsigned short _stap_timing_ns_begin_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
#define _STAP_TIMING_NS_BEGIN(arg1) \
DTRACE_PROBE1(_stap,timing_ns_begin,arg1)

/* _STAP_TIMING_NS_END ( int tag) */
#if defined STAP_SDT_V1
#define _STAP_TIMING_NS_END_ENABLED() __builtin_expect (timing_ns_end_semaphore, 0)
#define _stap_timing_ns_end_semaphore timing_ns_end_semaphore
#else
#define _STAP_TIMING_NS_END_ENABLED() __builtin_expect (_stap_timing_ns_end_semaphore, 0)
#endif
__extension__ extern unsigned short _stap_timing_ns_end_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
#define _STAP_TIMING_NS_END(arg1) \
DTRACE_PROBE1(_stap,timing_ns_end,arg1)