• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // N.B. This file is not used by this usdt_sample. Instead, the StaticTracepoint.h file from folly is used.
2 //  It is here only for demonstration purposes.
3 
4 /* Generated by the Systemtap dtrace wrapper */
5 
6 
7 #define _SDT_HAS_SEMAPHORES 1
8 
9 
10 #define STAP_HAS_SEMAPHORES 1 /* deprecated */
11 
12 
13 #include <sys/sdt.h>
14 
15 /* USDT_SAMPLE_LIB1_OPERATION_START ( uint64_t operation_id, const char * input ) */
16 #if defined STAP_SDT_V1
17 #define USDT_SAMPLE_LIB1_OPERATION_START_ENABLED() __builtin_expect (operation_start_semaphore, 0)
18 #define usdt_sample_lib1_operation_start_semaphore operation_start_semaphore
19 #else
20 #define USDT_SAMPLE_LIB1_OPERATION_START_ENABLED() __builtin_expect (usdt_sample_lib1_operation_start_semaphore, 0)
21 #endif
22 __extension__ extern unsigned short usdt_sample_lib1_operation_start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
23 #define USDT_SAMPLE_LIB1_OPERATION_START(arg1, arg2) \
24 DTRACE_PROBE2 (usdt_sample_lib1, operation_start, arg1, arg2)
25 
26 /* USDT_SAMPLE_LIB1_OPERATION_END ( uint64_t operation_id, const char * output ) */
27 #if defined STAP_SDT_V1
28 #define USDT_SAMPLE_LIB1_OPERATION_END_ENABLED() __builtin_expect (operation_end_semaphore, 0)
29 #define usdt_sample_lib1_operation_end_semaphore operation_end_semaphore
30 #else
31 #define USDT_SAMPLE_LIB1_OPERATION_END_ENABLED() __builtin_expect (usdt_sample_lib1_operation_end_semaphore, 0)
32 #endif
33 __extension__ extern unsigned short usdt_sample_lib1_operation_end_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
34 #define USDT_SAMPLE_LIB1_OPERATION_END(arg1, arg2) \
35 DTRACE_PROBE2 (usdt_sample_lib1, operation_end, arg1, arg2)
36 
37