-
-
Save 0xB10C/655e506e9e53092f4becf412284f572a to your computer and use it in GitHub Desktop.
`dtrace -h -s probes.d -o probes2.h` on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generated by the Systemtap dtrace wrapper */ | |
#define _SDT_HAS_SEMAPHORES 1 | |
#define STAP_HAS_SEMAPHORES 1 /* deprecated */ | |
#include <sys/sdt.h> | |
/* NET_INBOUND_MESSAGE ( int64_t, char *, char *, char *, int64_t, unsigned char * ) */ | |
#if defined STAP_SDT_V1 | |
#define NET_INBOUND_MESSAGE_ENABLED() __builtin_expect (inbound_message_semaphore, 0) | |
#define net_inbound_message_semaphore inbound_message_semaphore | |
#else | |
#define NET_INBOUND_MESSAGE_ENABLED() __builtin_expect (net_inbound_message_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short net_inbound_message_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define NET_INBOUND_MESSAGE(arg1, arg2, arg3, arg4, arg5, arg6) \ | |
DTRACE_PROBE6 (net, inbound_message, arg1, arg2, arg3, arg4, arg5, arg6) | |
/* NET_OUTBOUND_MESSAGE ( int64_t, char *, char *, char *, int64_t, unsigned char * ) */ | |
#if defined STAP_SDT_V1 | |
#define NET_OUTBOUND_MESSAGE_ENABLED() __builtin_expect (outbound_message_semaphore, 0) | |
#define net_outbound_message_semaphore outbound_message_semaphore | |
#else | |
#define NET_OUTBOUND_MESSAGE_ENABLED() __builtin_expect (net_outbound_message_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short net_outbound_message_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define NET_OUTBOUND_MESSAGE(arg1, arg2, arg3, arg4, arg5, arg6) \ | |
DTRACE_PROBE6 (net, outbound_message, arg1, arg2, arg3, arg4, arg5, arg6) | |
/* VALIDATION_BLOCK_CONNECTED ( unsigned char *, int32_t, uint64_t, int32_t, uint64_t, uint64_t ) */ | |
#if defined STAP_SDT_V1 | |
#define VALIDATION_BLOCK_CONNECTED_ENABLED() __builtin_expect (block_connected_semaphore, 0) | |
#define validation_block_connected_semaphore block_connected_semaphore | |
#else | |
#define VALIDATION_BLOCK_CONNECTED_ENABLED() __builtin_expect (validation_block_connected_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short validation_block_connected_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define VALIDATION_BLOCK_CONNECTED(arg1, arg2, arg3, arg4, arg5, arg6) \ | |
DTRACE_PROBE6 (validation, block_connected, arg1, arg2, arg3, arg4, arg5, arg6) | |
/* UTXOCACHE_FLUSH ( int64_t, uint32_t, uint64_t, uint64_t, boolean_t ) */ | |
#if defined STAP_SDT_V1 | |
#define UTXOCACHE_FLUSH_ENABLED() __builtin_expect (flush_semaphore, 0) | |
#define utxocache_flush_semaphore flush_semaphore | |
#else | |
#define UTXOCACHE_FLUSH_ENABLED() __builtin_expect (utxocache_flush_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short utxocache_flush_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define UTXOCACHE_FLUSH(arg1, arg2, arg3, arg4, arg5) \ | |
DTRACE_PROBE5 (utxocache, flush, arg1, arg2, arg3, arg4, arg5) | |
/* UTXOCACHE_ADD ( unsigned char *, uint32_t, uint32_t, int64_t, boolean_t ) */ | |
#if defined STAP_SDT_V1 | |
#define UTXOCACHE_ADD_ENABLED() __builtin_expect (add_semaphore, 0) | |
#define utxocache_add_semaphore add_semaphore | |
#else | |
#define UTXOCACHE_ADD_ENABLED() __builtin_expect (utxocache_add_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short utxocache_add_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define UTXOCACHE_ADD(arg1, arg2, arg3, arg4, arg5) \ | |
DTRACE_PROBE5 (utxocache, add, arg1, arg2, arg3, arg4, arg5) | |
/* UTXOCACHE_SPENT ( unsigned char *, uint32_t, uint32_t, int64_t, boolean_t ) */ | |
#if defined STAP_SDT_V1 | |
#define UTXOCACHE_SPENT_ENABLED() __builtin_expect (spent_semaphore, 0) | |
#define utxocache_spent_semaphore spent_semaphore | |
#else | |
#define UTXOCACHE_SPENT_ENABLED() __builtin_expect (utxocache_spent_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short utxocache_spent_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define UTXOCACHE_SPENT(arg1, arg2, arg3, arg4, arg5) \ | |
DTRACE_PROBE5 (utxocache, spent, arg1, arg2, arg3, arg4, arg5) | |
/* UTXOCACHE_UNCACHE ( unsigned char *, uint32_t, uint32_t, int64_t, boolean_t ) */ | |
#if defined STAP_SDT_V1 | |
#define UTXOCACHE_UNCACHE_ENABLED() __builtin_expect (uncache_semaphore, 0) | |
#define utxocache_uncache_semaphore uncache_semaphore | |
#else | |
#define UTXOCACHE_UNCACHE_ENABLED() __builtin_expect (utxocache_uncache_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short utxocache_uncache_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define UTXOCACHE_UNCACHE(arg1, arg2, arg3, arg4, arg5) \ | |
DTRACE_PROBE5 (utxocache, uncache, arg1, arg2, arg3, arg4, arg5) | |
/* COIN_SELECTION_SELECTED_COINS ( char *, char *, int64_t, int64_t, int64_t ) */ | |
#if defined STAP_SDT_V1 | |
#define COIN_SELECTION_SELECTED_COINS_ENABLED() __builtin_expect (selected_coins_semaphore, 0) | |
#define coin_selection_selected_coins_semaphore selected_coins_semaphore | |
#else | |
#define COIN_SELECTION_SELECTED_COINS_ENABLED() __builtin_expect (coin_selection_selected_coins_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short coin_selection_selected_coins_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define COIN_SELECTION_SELECTED_COINS(arg1, arg2, arg3, arg4, arg5) \ | |
DTRACE_PROBE5 (coin_selection, selected_coins, arg1, arg2, arg3, arg4, arg5) | |
/* COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL ( char *, boolean_t, int64_t, int32_t ) */ | |
#if defined STAP_SDT_V1 | |
#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL_ENABLED() __builtin_expect (normal_create_tx_internal_semaphore, 0) | |
#define coin_selection_normal_create_tx_internal_semaphore normal_create_tx_internal_semaphore | |
#else | |
#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL_ENABLED() __builtin_expect (coin_selection_normal_create_tx_internal_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short coin_selection_normal_create_tx_internal_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL(arg1, arg2, arg3, arg4) \ | |
DTRACE_PROBE4 (coin_selection, normal_create_tx_internal, arg1, arg2, arg3, arg4) | |
/* COIN_SELECTION_ATTEMPTING_APS_CREATE_TX ( char * ) */ | |
#if defined STAP_SDT_V1 | |
#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX_ENABLED() __builtin_expect (attempting_aps_create_tx_semaphore, 0) | |
#define coin_selection_attempting_aps_create_tx_semaphore attempting_aps_create_tx_semaphore | |
#else | |
#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX_ENABLED() __builtin_expect (coin_selection_attempting_aps_create_tx_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short coin_selection_attempting_aps_create_tx_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX(arg1) \ | |
DTRACE_PROBE1 (coin_selection, attempting_aps_create_tx, arg1) | |
/* COIN_SELECTION_APS_CREATE_TX_INTERNAL ( char *, boolean_t, boolean_t, int64_t, int32_t ) */ | |
#if defined STAP_SDT_V1 | |
#define COIN_SELECTION_APS_CREATE_TX_INTERNAL_ENABLED() __builtin_expect (aps_create_tx_internal_semaphore, 0) | |
#define coin_selection_aps_create_tx_internal_semaphore aps_create_tx_internal_semaphore | |
#else | |
#define COIN_SELECTION_APS_CREATE_TX_INTERNAL_ENABLED() __builtin_expect (coin_selection_aps_create_tx_internal_semaphore, 0) | |
#endif | |
__extension__ extern unsigned short coin_selection_aps_create_tx_internal_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
#define COIN_SELECTION_APS_CREATE_TX_INTERNAL(arg1, arg2, arg3, arg4, arg5) \ | |
DTRACE_PROBE5 (coin_selection, aps_create_tx_internal, arg1, arg2, arg3, arg4, arg5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Generated by dtrace(1M). | |
*/ | |
#ifndef BITCOIN_UTIL_PROBES_H | |
#define BITCOIN_UTIL_PROBES_H | |
#ifdef ENABLE_TRACING | |
#include <cstddef> | |
#include <unistd.h> | |
#endif // ENABLE_TRACING | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
#define NET_STABILITY "___dtrace_stability$net$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" | |
#define NET_TYPEDEFS "___dtrace_typedefs$net$v2" | |
#ifdef ENABLE_TRACING | |
#define NET_INBOUND_MESSAGE(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
do { \ | |
__asm__ volatile(".reference " NET_TYPEDEFS); \ | |
__dtrace_probe$net$inbound_message$v1$696e7436345f74$63686172202a$63686172202a$63686172202a$696e7436345f74$756e7369676e65642063686172202a(arg0, arg1, arg2, arg3, arg4, arg5); \ | |
__asm__ volatile(".reference " NET_STABILITY); \ | |
} while (0) | |
#define NET_INBOUND_MESSAGE_ENABLED() \ | |
({ int _r = __dtrace_isenabled$net$inbound_message$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
#define NET_OUTBOUND_MESSAGE(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
do { \ | |
__asm__ volatile(".reference " NET_TYPEDEFS); \ | |
__dtrace_probe$net$outbound_message$v1$696e7436345f74$63686172202a$63686172202a$63686172202a$696e7436345f74$756e7369676e65642063686172202a(arg0, arg1, arg2, arg3, arg4, arg5); \ | |
__asm__ volatile(".reference " NET_STABILITY); \ | |
} while (0) | |
#define NET_OUTBOUND_MESSAGE_ENABLED() \ | |
({ int _r = __dtrace_isenabled$net$outbound_message$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
extern void __dtrace_probe$net$inbound_message$v1$696e7436345f74$63686172202a$63686172202a$63686172202a$696e7436345f74$756e7369676e65642063686172202a(int64_t, const char*, const char*, const char*, int64_t, const std::byte*); | |
extern int __dtrace_isenabled$net$inbound_message$v1(void); | |
extern void __dtrace_probe$net$outbound_message$v1$696e7436345f74$63686172202a$63686172202a$63686172202a$696e7436345f74$756e7369676e65642063686172202a(int64_t, const char*, const char*, const char*, int64_t, const unsigned char*); | |
extern int __dtrace_isenabled$net$outbound_message$v1(void); | |
#else | |
#define NET_INBOUND_MESSAGE(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
do { \ | |
} while (0) | |
#define NET_INBOUND_MESSAGE_ENABLED() (0) | |
#define NET_OUTBOUND_MESSAGE(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
do { \ | |
} while (0) | |
#define NET_OUTBOUND_MESSAGE_ENABLED() (0) | |
#endif // ENABLE_TRACING | |
#define VALIDATION_STABILITY "___dtrace_stability$validation$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" | |
#define VALIDATION_TYPEDEFS "___dtrace_typedefs$validation$v2" | |
#ifdef ENABLE_TRACING | |
#define VALIDATION_BLOCK_CONNECTED(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
do { \ | |
__asm__ volatile(".reference " VALIDATION_TYPEDEFS); \ | |
__dtrace_probe$validation$block_connected$v1$756e7369676e65642063686172202a$696e7433325f74$75696e7436345f74$696e7433325f74$75696e7436345f74$75696e7436345f74(arg0, arg1, arg2, arg3, arg4, arg5); \ | |
__asm__ volatile(".reference " VALIDATION_STABILITY); \ | |
} while (0) | |
#define VALIDATION_BLOCK_CONNECTED_ENABLED() \ | |
({ int _r = __dtrace_isenabled$validation$block_connected$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
extern void __dtrace_probe$validation$block_connected$v1$756e7369676e65642063686172202a$696e7433325f74$75696e7436345f74$696e7433325f74$75696e7436345f74$75696e7436345f74(const unsigned char*, int32_t, uint64_t, int32_t, uint64_t, uint64_t); | |
extern int __dtrace_isenabled$validation$block_connected$v1(void); | |
#else | |
#define VALIDATION_BLOCK_CONNECTED(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
do { \ | |
} while (0) | |
#define VALIDATION_BLOCK_CONNECTED_ENABLED() (0) | |
#endif // ENABLE_TRACING | |
#define UTXOCACHE_STABILITY "___dtrace_stability$utxocache$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" | |
#define UTXOCACHE_TYPEDEFS "___dtrace_typedefs$utxocache$v2$626f6f6c65616e5f74" | |
#ifdef ENABLE_TRACING | |
#define UTXOCACHE_ADD(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
__asm__ volatile(".reference " UTXOCACHE_TYPEDEFS); \ | |
__dtrace_probe$utxocache$add$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(arg0, arg1, arg2, arg3, arg4); \ | |
__asm__ volatile(".reference " UTXOCACHE_STABILITY); \ | |
} while (0) | |
#define UTXOCACHE_ADD_ENABLED() \ | |
({ int _r = __dtrace_isenabled$utxocache$add$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
#define UTXOCACHE_FLUSH(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
__asm__ volatile(".reference " UTXOCACHE_TYPEDEFS); \ | |
__dtrace_probe$utxocache$flush$v1$696e7436345f74$75696e7433325f74$75696e7436345f74$75696e7436345f74$626f6f6c65616e5f74(arg0, arg1, arg2, arg3, arg4); \ | |
__asm__ volatile(".reference " UTXOCACHE_STABILITY); \ | |
} while (0) | |
#define UTXOCACHE_FLUSH_ENABLED() \ | |
({ int _r = __dtrace_isenabled$utxocache$flush$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
#define UTXOCACHE_SPENT(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
__asm__ volatile(".reference " UTXOCACHE_TYPEDEFS); \ | |
__dtrace_probe$utxocache$spent$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(arg0, arg1, arg2, arg3, arg4); \ | |
__asm__ volatile(".reference " UTXOCACHE_STABILITY); \ | |
} while (0) | |
#define UTXOCACHE_SPENT_ENABLED() \ | |
({ int _r = __dtrace_isenabled$utxocache$spent$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
#define UTXOCACHE_UNCACHE(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
__asm__ volatile(".reference " UTXOCACHE_TYPEDEFS); \ | |
__dtrace_probe$utxocache$uncache$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(arg0, arg1, arg2, arg3, arg4); \ | |
__asm__ volatile(".reference " UTXOCACHE_STABILITY); \ | |
} while (0) | |
#define UTXOCACHE_UNCACHE_ENABLED() \ | |
({ int _r = __dtrace_isenabled$utxocache$uncache$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
extern void __dtrace_probe$utxocache$add$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(const unsigned char*, uint32_t, uint32_t, int64_t, bool); | |
extern int __dtrace_isenabled$utxocache$add$v1(void); | |
extern void __dtrace_probe$utxocache$flush$v1$696e7436345f74$75696e7433325f74$75696e7436345f74$75696e7436345f74$626f6f6c65616e5f74(int64_t, uint32_t, uint64_t, uint64_t, bool); | |
extern int __dtrace_isenabled$utxocache$flush$v1(void); | |
extern void __dtrace_probe$utxocache$spent$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(const unsigned char*, uint32_t, uint32_t, int64_t, bool); | |
extern int __dtrace_isenabled$utxocache$spent$v1(void); | |
extern void __dtrace_probe$utxocache$uncache$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(const unsigned char*, uint32_t, uint32_t, int64_t, bool); | |
extern int __dtrace_isenabled$utxocache$uncache$v1(void); | |
#else | |
#define UTXOCACHE_ADD(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
} while (0) | |
#define UTXOCACHE_ADD_ENABLED() (0) | |
#define UTXOCACHE_FLUSH(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
} while (0) | |
#define UTXOCACHE_FLUSH_ENABLED() (0) | |
#define UTXOCACHE_SPENT(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
} while (0) | |
#define UTXOCACHE_SPENT_ENABLED() (0) | |
#define UTXOCACHE_UNCACHE(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
} while (0) | |
#define UTXOCACHE_UNCACHE_ENABLED() (0) | |
#endif // ENABLE_TRACING | |
#define COIN_SELECTION_STABILITY "___dtrace_stability$coin_selection$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" | |
#define COIN_SELECTION_TYPEDEFS "___dtrace_typedefs$coin_selection$v2$626f6f6c65616e5f74" | |
#ifdef ENABLE_TRACING | |
#define COIN_SELECTION_APS_CREATE_TX_INTERNAL(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
__asm__ volatile(".reference " COIN_SELECTION_TYPEDEFS); \ | |
__dtrace_probe$coin_selection$aps_create_tx_internal$v1$63686172202a$626f6f6c65616e5f74$626f6f6c65616e5f74$696e7436345f74$696e7433325f74(arg0, arg1, arg2, arg3, arg4); \ | |
__asm__ volatile(".reference " COIN_SELECTION_STABILITY); \ | |
} while (0) | |
#define COIN_SELECTION_APS_CREATE_TX_INTERNAL_ENABLED() \ | |
({ int _r = __dtrace_isenabled$coin_selection$aps_create_tx_internal$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX(arg0) \ | |
do { \ | |
__asm__ volatile(".reference " COIN_SELECTION_TYPEDEFS); \ | |
__dtrace_probe$coin_selection$attempting_aps_create_tx$v1$63686172202a(arg0); \ | |
__asm__ volatile(".reference " COIN_SELECTION_STABILITY); \ | |
} while (0) | |
#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX_ENABLED() \ | |
({ int _r = __dtrace_isenabled$coin_selection$attempting_aps_create_tx$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL(arg0, arg1, arg2, arg3) \ | |
do { \ | |
__asm__ volatile(".reference " COIN_SELECTION_TYPEDEFS); \ | |
__dtrace_probe$coin_selection$normal_create_tx_internal$v1$63686172202a$626f6f6c65616e5f74$696e7436345f74$696e7433325f74(arg0, arg1, arg2, arg3); \ | |
__asm__ volatile(".reference " COIN_SELECTION_STABILITY); \ | |
} while (0) | |
#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL_ENABLED() \ | |
({ int _r = __dtrace_isenabled$coin_selection$normal_create_tx_internal$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
#define COIN_SELECTION_SELECTED_COINS(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
__asm__ volatile(".reference " COIN_SELECTION_TYPEDEFS); \ | |
__dtrace_probe$coin_selection$selected_coins$v1$63686172202a$63686172202a$696e7436345f74$696e7436345f74$696e7436345f74(arg0, arg1, arg2, arg3, arg4); \ | |
__asm__ volatile(".reference " COIN_SELECTION_STABILITY); \ | |
} while (0) | |
#define COIN_SELECTION_SELECTED_COINS_ENABLED() \ | |
({ int _r = __dtrace_isenabled$coin_selection$selected_coins$v1(); \ | |
__asm__ volatile(""); \ | |
_r; }) | |
extern void __dtrace_probe$coin_selection$aps_create_tx_internal$v1$63686172202a$626f6f6c65616e5f74$626f6f6c65616e5f74$696e7436345f74$696e7433325f74(const char*, bool, bool, int64_t, int32_t); | |
extern int __dtrace_isenabled$coin_selection$aps_create_tx_internal$v1(void); | |
extern void __dtrace_probe$coin_selection$attempting_aps_create_tx$v1$63686172202a(const char*); | |
extern int __dtrace_isenabled$coin_selection$attempting_aps_create_tx$v1(void); | |
extern void __dtrace_probe$coin_selection$normal_create_tx_internal$v1$63686172202a$626f6f6c65616e5f74$696e7436345f74$696e7433325f74(const char*, bool, int64_t, int32_t); | |
extern int __dtrace_isenabled$coin_selection$normal_create_tx_internal$v1(void); | |
extern void __dtrace_probe$coin_selection$selected_coins$v1$63686172202a$63686172202a$696e7436345f74$696e7436345f74$696e7436345f74(const char*, const char*, int64_t, int64_t, int64_t); | |
extern int __dtrace_isenabled$coin_selection$selected_coins$v1(void); | |
#else | |
#define COIN_SELECTION_APS_CREATE_TX_INTERNAL(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
} while (0) | |
#define COIN_SELECTION_APS_CREATE_TX_INTERNAL_ENABLED() (0) | |
#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX(arg0) \ | |
do { \ | |
} while (0) | |
#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX_ENABLED() (0) | |
#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL(arg0, arg1, arg2, arg3) \ | |
do { \ | |
} while (0) | |
#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL_ENABLED() (0) | |
#define COIN_SELECTION_SELECTED_COINS(arg0, arg1, arg2, arg3, arg4) \ | |
do { \ | |
} while (0) | |
#define COIN_SELECTION_SELECTED_COINS_ENABLED() (0) | |
#endif // ENABLE_TRACING | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif // BITCOIN_UTIL_PROBES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- probes.h 2022-07-05 - +0200 | |
+++ probes-linux.h 2022-07-05 - +0200 | |
@@ -1,255 +1,132 @@ | |
-/* | |
- * Generated by dtrace(1M). | |
- */ | |
- | |
-#ifndef BITCOIN_UTIL_PROBES_H | |
-#define BITCOIN_UTIL_PROBES_H | |
- | |
-#ifdef ENABLE_TRACING | |
-#include <cstddef> | |
-#include <unistd.h> | |
- | |
-#endif // ENABLE_TRACING | |
- | |
-#ifdef __cplusplus | |
-extern "C" { | |
-#endif | |
- | |
-#define NET_STABILITY "___dtrace_stability$net$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" | |
- | |
-#define NET_TYPEDEFS "___dtrace_typedefs$net$v2" | |
- | |
-#ifdef ENABLE_TRACING | |
- | |
-#define NET_INBOUND_MESSAGE(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
- do { \ | |
- __asm__ volatile(".reference " NET_TYPEDEFS); \ | |
- __dtrace_probe$net$inbound_message$v1$696e7436345f74$63686172202a$63686172202a$63686172202a$696e7436345f74$756e7369676e65642063686172202a(arg0, arg1, arg2, arg3, arg4, arg5); \ | |
- __asm__ volatile(".reference " NET_STABILITY); \ | |
- } while (0) | |
-#define NET_INBOUND_MESSAGE_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$net$inbound_message$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
-#define NET_OUTBOUND_MESSAGE(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
- do { \ | |
- __asm__ volatile(".reference " NET_TYPEDEFS); \ | |
- __dtrace_probe$net$outbound_message$v1$696e7436345f74$63686172202a$63686172202a$63686172202a$696e7436345f74$756e7369676e65642063686172202a(arg0, arg1, arg2, arg3, arg4, arg5); \ | |
- __asm__ volatile(".reference " NET_STABILITY); \ | |
- } while (0) | |
-#define NET_OUTBOUND_MESSAGE_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$net$outbound_message$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
- | |
- | |
-extern void __dtrace_probe$net$inbound_message$v1$696e7436345f74$63686172202a$63686172202a$63686172202a$696e7436345f74$756e7369676e65642063686172202a(int64_t, const char*, const char*, const char*, int64_t, const std::byte*); | |
-extern int __dtrace_isenabled$net$inbound_message$v1(void); | |
-extern void __dtrace_probe$net$outbound_message$v1$696e7436345f74$63686172202a$63686172202a$63686172202a$696e7436345f74$756e7369676e65642063686172202a(int64_t, const char*, const char*, const char*, int64_t, const unsigned char*); | |
-extern int __dtrace_isenabled$net$outbound_message$v1(void); | |
- | |
-#else | |
- | |
-#define NET_INBOUND_MESSAGE(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
- do { \ | |
- } while (0) | |
-#define NET_INBOUND_MESSAGE_ENABLED() (0) | |
-#define NET_OUTBOUND_MESSAGE(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
- do { \ | |
- } while (0) | |
-#define NET_OUTBOUND_MESSAGE_ENABLED() (0) | |
- | |
-#endif // ENABLE_TRACING | |
- | |
-#define VALIDATION_STABILITY "___dtrace_stability$validation$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" | |
- | |
-#define VALIDATION_TYPEDEFS "___dtrace_typedefs$validation$v2" | |
- | |
-#ifdef ENABLE_TRACING | |
- | |
-#define VALIDATION_BLOCK_CONNECTED(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
- do { \ | |
- __asm__ volatile(".reference " VALIDATION_TYPEDEFS); \ | |
- __dtrace_probe$validation$block_connected$v1$756e7369676e65642063686172202a$696e7433325f74$75696e7436345f74$696e7433325f74$75696e7436345f74$75696e7436345f74(arg0, arg1, arg2, arg3, arg4, arg5); \ | |
- __asm__ volatile(".reference " VALIDATION_STABILITY); \ | |
- } while (0) | |
-#define VALIDATION_BLOCK_CONNECTED_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$validation$block_connected$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
- | |
- | |
-extern void __dtrace_probe$validation$block_connected$v1$756e7369676e65642063686172202a$696e7433325f74$75696e7436345f74$696e7433325f74$75696e7436345f74$75696e7436345f74(const unsigned char*, int32_t, uint64_t, int32_t, uint64_t, uint64_t); | |
-extern int __dtrace_isenabled$validation$block_connected$v1(void); | |
- | |
-#else | |
- | |
-#define VALIDATION_BLOCK_CONNECTED(arg0, arg1, arg2, arg3, arg4, arg5) \ | |
- do { \ | |
- } while (0) | |
-#define VALIDATION_BLOCK_CONNECTED_ENABLED() (0) | |
- | |
-#endif // ENABLE_TRACING | |
- | |
-#define UTXOCACHE_STABILITY "___dtrace_stability$utxocache$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" | |
- | |
-#define UTXOCACHE_TYPEDEFS "___dtrace_typedefs$utxocache$v2$626f6f6c65616e5f74" | |
- | |
-#ifdef ENABLE_TRACING | |
- | |
-#define UTXOCACHE_ADD(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- __asm__ volatile(".reference " UTXOCACHE_TYPEDEFS); \ | |
- __dtrace_probe$utxocache$add$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(arg0, arg1, arg2, arg3, arg4); \ | |
- __asm__ volatile(".reference " UTXOCACHE_STABILITY); \ | |
- } while (0) | |
-#define UTXOCACHE_ADD_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$utxocache$add$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
-#define UTXOCACHE_FLUSH(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- __asm__ volatile(".reference " UTXOCACHE_TYPEDEFS); \ | |
- __dtrace_probe$utxocache$flush$v1$696e7436345f74$75696e7433325f74$75696e7436345f74$75696e7436345f74$626f6f6c65616e5f74(arg0, arg1, arg2, arg3, arg4); \ | |
- __asm__ volatile(".reference " UTXOCACHE_STABILITY); \ | |
- } while (0) | |
-#define UTXOCACHE_FLUSH_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$utxocache$flush$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
-#define UTXOCACHE_SPENT(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- __asm__ volatile(".reference " UTXOCACHE_TYPEDEFS); \ | |
- __dtrace_probe$utxocache$spent$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(arg0, arg1, arg2, arg3, arg4); \ | |
- __asm__ volatile(".reference " UTXOCACHE_STABILITY); \ | |
- } while (0) | |
-#define UTXOCACHE_SPENT_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$utxocache$spent$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
-#define UTXOCACHE_UNCACHE(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- __asm__ volatile(".reference " UTXOCACHE_TYPEDEFS); \ | |
- __dtrace_probe$utxocache$uncache$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(arg0, arg1, arg2, arg3, arg4); \ | |
- __asm__ volatile(".reference " UTXOCACHE_STABILITY); \ | |
- } while (0) | |
-#define UTXOCACHE_UNCACHE_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$utxocache$uncache$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
- | |
- | |
-extern void __dtrace_probe$utxocache$add$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(const unsigned char*, uint32_t, uint32_t, int64_t, bool); | |
-extern int __dtrace_isenabled$utxocache$add$v1(void); | |
-extern void __dtrace_probe$utxocache$flush$v1$696e7436345f74$75696e7433325f74$75696e7436345f74$75696e7436345f74$626f6f6c65616e5f74(int64_t, uint32_t, uint64_t, uint64_t, bool); | |
-extern int __dtrace_isenabled$utxocache$flush$v1(void); | |
-extern void __dtrace_probe$utxocache$spent$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(const unsigned char*, uint32_t, uint32_t, int64_t, bool); | |
-extern int __dtrace_isenabled$utxocache$spent$v1(void); | |
-extern void __dtrace_probe$utxocache$uncache$v1$756e7369676e65642063686172202a$75696e7433325f74$75696e7433325f74$696e7436345f74$626f6f6c65616e5f74(const unsigned char*, uint32_t, uint32_t, int64_t, bool); | |
-extern int __dtrace_isenabled$utxocache$uncache$v1(void); | |
- | |
-#else | |
- | |
-#define UTXOCACHE_ADD(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- } while (0) | |
-#define UTXOCACHE_ADD_ENABLED() (0) | |
-#define UTXOCACHE_FLUSH(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- } while (0) | |
-#define UTXOCACHE_FLUSH_ENABLED() (0) | |
-#define UTXOCACHE_SPENT(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- } while (0) | |
-#define UTXOCACHE_SPENT_ENABLED() (0) | |
-#define UTXOCACHE_UNCACHE(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- } while (0) | |
-#define UTXOCACHE_UNCACHE_ENABLED() (0) | |
- | |
-#endif // ENABLE_TRACING | |
- | |
-#define COIN_SELECTION_STABILITY "___dtrace_stability$coin_selection$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" | |
- | |
-#define COIN_SELECTION_TYPEDEFS "___dtrace_typedefs$coin_selection$v2$626f6f6c65616e5f74" | |
- | |
-#ifdef ENABLE_TRACING | |
- | |
-#define COIN_SELECTION_APS_CREATE_TX_INTERNAL(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- __asm__ volatile(".reference " COIN_SELECTION_TYPEDEFS); \ | |
- __dtrace_probe$coin_selection$aps_create_tx_internal$v1$63686172202a$626f6f6c65616e5f74$626f6f6c65616e5f74$696e7436345f74$696e7433325f74(arg0, arg1, arg2, arg3, arg4); \ | |
- __asm__ volatile(".reference " COIN_SELECTION_STABILITY); \ | |
- } while (0) | |
-#define COIN_SELECTION_APS_CREATE_TX_INTERNAL_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$coin_selection$aps_create_tx_internal$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
-#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX(arg0) \ | |
- do { \ | |
- __asm__ volatile(".reference " COIN_SELECTION_TYPEDEFS); \ | |
- __dtrace_probe$coin_selection$attempting_aps_create_tx$v1$63686172202a(arg0); \ | |
- __asm__ volatile(".reference " COIN_SELECTION_STABILITY); \ | |
- } while (0) | |
-#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$coin_selection$attempting_aps_create_tx$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
-#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL(arg0, arg1, arg2, arg3) \ | |
- do { \ | |
- __asm__ volatile(".reference " COIN_SELECTION_TYPEDEFS); \ | |
- __dtrace_probe$coin_selection$normal_create_tx_internal$v1$63686172202a$626f6f6c65616e5f74$696e7436345f74$696e7433325f74(arg0, arg1, arg2, arg3); \ | |
- __asm__ volatile(".reference " COIN_SELECTION_STABILITY); \ | |
- } while (0) | |
-#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$coin_selection$normal_create_tx_internal$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
-#define COIN_SELECTION_SELECTED_COINS(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- __asm__ volatile(".reference " COIN_SELECTION_TYPEDEFS); \ | |
- __dtrace_probe$coin_selection$selected_coins$v1$63686172202a$63686172202a$696e7436345f74$696e7436345f74$696e7436345f74(arg0, arg1, arg2, arg3, arg4); \ | |
- __asm__ volatile(".reference " COIN_SELECTION_STABILITY); \ | |
- } while (0) | |
-#define COIN_SELECTION_SELECTED_COINS_ENABLED() \ | |
- ({ int _r = __dtrace_isenabled$coin_selection$selected_coins$v1(); \ | |
- __asm__ volatile(""); \ | |
- _r; }) | |
- | |
- | |
-extern void __dtrace_probe$coin_selection$aps_create_tx_internal$v1$63686172202a$626f6f6c65616e5f74$626f6f6c65616e5f74$696e7436345f74$696e7433325f74(const char*, bool, bool, int64_t, int32_t); | |
-extern int __dtrace_isenabled$coin_selection$aps_create_tx_internal$v1(void); | |
-extern void __dtrace_probe$coin_selection$attempting_aps_create_tx$v1$63686172202a(const char*); | |
-extern int __dtrace_isenabled$coin_selection$attempting_aps_create_tx$v1(void); | |
-extern void __dtrace_probe$coin_selection$normal_create_tx_internal$v1$63686172202a$626f6f6c65616e5f74$696e7436345f74$696e7433325f74(const char*, bool, int64_t, int32_t); | |
-extern int __dtrace_isenabled$coin_selection$normal_create_tx_internal$v1(void); | |
-extern void __dtrace_probe$coin_selection$selected_coins$v1$63686172202a$63686172202a$696e7436345f74$696e7436345f74$696e7436345f74(const char*, const char*, int64_t, int64_t, int64_t); | |
-extern int __dtrace_isenabled$coin_selection$selected_coins$v1(void); | |
- | |
-#else | |
- | |
-#define COIN_SELECTION_APS_CREATE_TX_INTERNAL(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- } while (0) | |
-#define COIN_SELECTION_APS_CREATE_TX_INTERNAL_ENABLED() (0) | |
-#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX(arg0) \ | |
- do { \ | |
- } while (0) | |
-#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX_ENABLED() (0) | |
-#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL(arg0, arg1, arg2, arg3) \ | |
- do { \ | |
- } while (0) | |
-#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL_ENABLED() (0) | |
-#define COIN_SELECTION_SELECTED_COINS(arg0, arg1, arg2, arg3, arg4) \ | |
- do { \ | |
- } while (0) | |
-#define COIN_SELECTION_SELECTED_COINS_ENABLED() (0) | |
+/* Generated by the Systemtap dtrace wrapper */ | |
-#endif // ENABLE_TRACING | |
+#define _SDT_HAS_SEMAPHORES 1 | |
-#ifdef __cplusplus | |
-} | |
+ | |
+#define STAP_HAS_SEMAPHORES 1 /* deprecated */ | |
+ | |
+ | |
+#include <sys/sdt.h> | |
+ | |
+/* NET_INBOUND_MESSAGE ( int64_t, char *, char *, char *, int64_t, unsigned char * ) */ | |
+#if defined STAP_SDT_V1 | |
+#define NET_INBOUND_MESSAGE_ENABLED() __builtin_expect (inbound_message_semaphore, 0) | |
+#define net_inbound_message_semaphore inbound_message_semaphore | |
+#else | |
+#define NET_INBOUND_MESSAGE_ENABLED() __builtin_expect (net_inbound_message_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short net_inbound_message_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define NET_INBOUND_MESSAGE(arg1, arg2, arg3, arg4, arg5, arg6) \ | |
+DTRACE_PROBE6 (net, inbound_message, arg1, arg2, arg3, arg4, arg5, arg6) | |
+ | |
+/* NET_OUTBOUND_MESSAGE ( int64_t, char *, char *, char *, int64_t, unsigned char * ) */ | |
+#if defined STAP_SDT_V1 | |
+#define NET_OUTBOUND_MESSAGE_ENABLED() __builtin_expect (outbound_message_semaphore, 0) | |
+#define net_outbound_message_semaphore outbound_message_semaphore | |
+#else | |
+#define NET_OUTBOUND_MESSAGE_ENABLED() __builtin_expect (net_outbound_message_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short net_outbound_message_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define NET_OUTBOUND_MESSAGE(arg1, arg2, arg3, arg4, arg5, arg6) \ | |
+DTRACE_PROBE6 (net, outbound_message, arg1, arg2, arg3, arg4, arg5, arg6) | |
+ | |
+/* VALIDATION_BLOCK_CONNECTED ( unsigned char *, int32_t, uint64_t, int32_t, uint64_t, uint64_t ) */ | |
+#if defined STAP_SDT_V1 | |
+#define VALIDATION_BLOCK_CONNECTED_ENABLED() __builtin_expect (block_connected_semaphore, 0) | |
+#define validation_block_connected_semaphore block_connected_semaphore | |
+#else | |
+#define VALIDATION_BLOCK_CONNECTED_ENABLED() __builtin_expect (validation_block_connected_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short validation_block_connected_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define VALIDATION_BLOCK_CONNECTED(arg1, arg2, arg3, arg4, arg5, arg6) \ | |
+DTRACE_PROBE6 (validation, block_connected, arg1, arg2, arg3, arg4, arg5, arg6) | |
+ | |
+/* UTXOCACHE_FLUSH ( int64_t, uint32_t, uint64_t, uint64_t, boolean_t ) */ | |
+#if defined STAP_SDT_V1 | |
+#define UTXOCACHE_FLUSH_ENABLED() __builtin_expect (flush_semaphore, 0) | |
+#define utxocache_flush_semaphore flush_semaphore | |
+#else | |
+#define UTXOCACHE_FLUSH_ENABLED() __builtin_expect (utxocache_flush_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short utxocache_flush_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define UTXOCACHE_FLUSH(arg1, arg2, arg3, arg4, arg5) \ | |
+DTRACE_PROBE5 (utxocache, flush, arg1, arg2, arg3, arg4, arg5) | |
+ | |
+/* UTXOCACHE_ADD ( unsigned char *, uint32_t, uint32_t, int64_t, boolean_t ) */ | |
+#if defined STAP_SDT_V1 | |
+#define UTXOCACHE_ADD_ENABLED() __builtin_expect (add_semaphore, 0) | |
+#define utxocache_add_semaphore add_semaphore | |
+#else | |
+#define UTXOCACHE_ADD_ENABLED() __builtin_expect (utxocache_add_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short utxocache_add_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define UTXOCACHE_ADD(arg1, arg2, arg3, arg4, arg5) \ | |
+DTRACE_PROBE5 (utxocache, add, arg1, arg2, arg3, arg4, arg5) | |
+ | |
+/* UTXOCACHE_SPENT ( unsigned char *, uint32_t, uint32_t, int64_t, boolean_t ) */ | |
+#if defined STAP_SDT_V1 | |
+#define UTXOCACHE_SPENT_ENABLED() __builtin_expect (spent_semaphore, 0) | |
+#define utxocache_spent_semaphore spent_semaphore | |
+#else | |
+#define UTXOCACHE_SPENT_ENABLED() __builtin_expect (utxocache_spent_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short utxocache_spent_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define UTXOCACHE_SPENT(arg1, arg2, arg3, arg4, arg5) \ | |
+DTRACE_PROBE5 (utxocache, spent, arg1, arg2, arg3, arg4, arg5) | |
+ | |
+/* UTXOCACHE_UNCACHE ( unsigned char *, uint32_t, uint32_t, int64_t, boolean_t ) */ | |
+#if defined STAP_SDT_V1 | |
+#define UTXOCACHE_UNCACHE_ENABLED() __builtin_expect (uncache_semaphore, 0) | |
+#define utxocache_uncache_semaphore uncache_semaphore | |
+#else | |
+#define UTXOCACHE_UNCACHE_ENABLED() __builtin_expect (utxocache_uncache_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short utxocache_uncache_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define UTXOCACHE_UNCACHE(arg1, arg2, arg3, arg4, arg5) \ | |
+DTRACE_PROBE5 (utxocache, uncache, arg1, arg2, arg3, arg4, arg5) | |
+ | |
+/* COIN_SELECTION_SELECTED_COINS ( char *, char *, int64_t, int64_t, int64_t ) */ | |
+#if defined STAP_SDT_V1 | |
+#define COIN_SELECTION_SELECTED_COINS_ENABLED() __builtin_expect (selected_coins_semaphore, 0) | |
+#define coin_selection_selected_coins_semaphore selected_coins_semaphore | |
+#else | |
+#define COIN_SELECTION_SELECTED_COINS_ENABLED() __builtin_expect (coin_selection_selected_coins_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short coin_selection_selected_coins_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define COIN_SELECTION_SELECTED_COINS(arg1, arg2, arg3, arg4, arg5) \ | |
+DTRACE_PROBE5 (coin_selection, selected_coins, arg1, arg2, arg3, arg4, arg5) | |
+ | |
+/* COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL ( char *, boolean_t, int64_t, int32_t ) */ | |
+#if defined STAP_SDT_V1 | |
+#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL_ENABLED() __builtin_expect (normal_create_tx_internal_semaphore, 0) | |
+#define coin_selection_normal_create_tx_internal_semaphore normal_create_tx_internal_semaphore | |
+#else | |
+#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL_ENABLED() __builtin_expect (coin_selection_normal_create_tx_internal_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short coin_selection_normal_create_tx_internal_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define COIN_SELECTION_NORMAL_CREATE_TX_INTERNAL(arg1, arg2, arg3, arg4) \ | |
+DTRACE_PROBE4 (coin_selection, normal_create_tx_internal, arg1, arg2, arg3, arg4) | |
+ | |
+/* COIN_SELECTION_ATTEMPTING_APS_CREATE_TX ( char * ) */ | |
+#if defined STAP_SDT_V1 | |
+#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX_ENABLED() __builtin_expect (attempting_aps_create_tx_semaphore, 0) | |
+#define coin_selection_attempting_aps_create_tx_semaphore attempting_aps_create_tx_semaphore | |
+#else | |
+#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX_ENABLED() __builtin_expect (coin_selection_attempting_aps_create_tx_semaphore, 0) | |
+#endif | |
+__extension__ extern unsigned short coin_selection_attempting_aps_create_tx_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define COIN_SELECTION_ATTEMPTING_APS_CREATE_TX(arg1) \ | |
+DTRACE_PROBE1 (coin_selection, attempting_aps_create_tx, arg1) | |
+ | |
+/* COIN_SELECTION_APS_CREATE_TX_INTERNAL ( char *, boolean_t, boolean_t, int64_t, int32_t ) */ | |
+#if defined STAP_SDT_V1 | |
+#define COIN_SELECTION_APS_CREATE_TX_INTERNAL_ENABLED() __builtin_expect (aps_create_tx_internal_semaphore, 0) | |
+#define coin_selection_aps_create_tx_internal_semaphore aps_create_tx_internal_semaphore | |
+#else | |
+#define COIN_SELECTION_APS_CREATE_TX_INTERNAL_ENABLED() __builtin_expect (coin_selection_aps_create_tx_internal_semaphore, 0) | |
#endif | |
+__extension__ extern unsigned short coin_selection_aps_create_tx_internal_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); | |
+#define COIN_SELECTION_APS_CREATE_TX_INTERNAL(arg1, arg2, arg3, arg4, arg5) \ | |
+DTRACE_PROBE5 (coin_selection, aps_create_tx_internal, arg1, arg2, arg3, arg4, arg5) | |
-#endif // BITCOIN_UTIL_PROBES_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment