Ruby  3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
Macros | Functions
probes.h File Reference
#include <sys/sdt.h>
Include dependency graph for probes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _SDT_HAS_SEMAPHORES   1
 
#define STAP_HAS_SEMAPHORES   1 /* deprecated */
 
#define RUBY_DTRACE_METHOD_ENTRY_ENABLED()   __builtin_expect (ruby_method__entry_semaphore, 0)
 
#define RUBY_DTRACE_METHOD_ENTRY(arg1, arg2, arg3, arg4)   DTRACE_PROBE4 (ruby, method__entry, arg1, arg2, arg3, arg4)
 
#define RUBY_DTRACE_METHOD_RETURN_ENABLED()   __builtin_expect (ruby_method__return_semaphore, 0)
 
#define RUBY_DTRACE_METHOD_RETURN(arg1, arg2, arg3, arg4)   DTRACE_PROBE4 (ruby, method__return, arg1, arg2, arg3, arg4)
 
#define RUBY_DTRACE_CMETHOD_ENTRY_ENABLED()   __builtin_expect (ruby_cmethod__entry_semaphore, 0)
 
#define RUBY_DTRACE_CMETHOD_ENTRY(arg1, arg2, arg3, arg4)   DTRACE_PROBE4 (ruby, cmethod__entry, arg1, arg2, arg3, arg4)
 
#define RUBY_DTRACE_CMETHOD_RETURN_ENABLED()   __builtin_expect (ruby_cmethod__return_semaphore, 0)
 
#define RUBY_DTRACE_CMETHOD_RETURN(arg1, arg2, arg3, arg4)   DTRACE_PROBE4 (ruby, cmethod__return, arg1, arg2, arg3, arg4)
 
#define RUBY_DTRACE_REQUIRE_ENTRY_ENABLED()   __builtin_expect (ruby_require__entry_semaphore, 0)
 
#define RUBY_DTRACE_REQUIRE_ENTRY(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, require__entry, arg1, arg2, arg3)
 
#define RUBY_DTRACE_REQUIRE_RETURN_ENABLED()   __builtin_expect (ruby_require__return_semaphore, 0)
 
#define RUBY_DTRACE_REQUIRE_RETURN(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, require__return, arg1, arg2, arg3)
 
#define RUBY_DTRACE_FIND_REQUIRE_ENTRY_ENABLED()   __builtin_expect (ruby_find__require__entry_semaphore, 0)
 
#define RUBY_DTRACE_FIND_REQUIRE_ENTRY(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, find__require__entry, arg1, arg2, arg3)
 
#define RUBY_DTRACE_FIND_REQUIRE_RETURN_ENABLED()   __builtin_expect (ruby_find__require__return_semaphore, 0)
 
#define RUBY_DTRACE_FIND_REQUIRE_RETURN(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, find__require__return, arg1, arg2, arg3)
 
#define RUBY_DTRACE_LOAD_ENTRY_ENABLED()   __builtin_expect (ruby_load__entry_semaphore, 0)
 
#define RUBY_DTRACE_LOAD_ENTRY(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, load__entry, arg1, arg2, arg3)
 
#define RUBY_DTRACE_LOAD_RETURN_ENABLED()   __builtin_expect (ruby_load__return_semaphore, 0)
 
#define RUBY_DTRACE_LOAD_RETURN(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, load__return, arg1, arg2, arg3)
 
#define RUBY_DTRACE_RAISE_ENABLED()   __builtin_expect (ruby_raise_semaphore, 0)
 
#define RUBY_DTRACE_RAISE(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, raise, arg1, arg2, arg3)
 
#define RUBY_DTRACE_OBJECT_CREATE_ENABLED()   __builtin_expect (ruby_object__create_semaphore, 0)
 
#define RUBY_DTRACE_OBJECT_CREATE(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, object__create, arg1, arg2, arg3)
 
#define RUBY_DTRACE_ARRAY_CREATE_ENABLED()   __builtin_expect (ruby_array__create_semaphore, 0)
 
#define RUBY_DTRACE_ARRAY_CREATE(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, array__create, arg1, arg2, arg3)
 
#define RUBY_DTRACE_HASH_CREATE_ENABLED()   __builtin_expect (ruby_hash__create_semaphore, 0)
 
#define RUBY_DTRACE_HASH_CREATE(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, hash__create, arg1, arg2, arg3)
 
#define RUBY_DTRACE_STRING_CREATE_ENABLED()   __builtin_expect (ruby_string__create_semaphore, 0)
 
#define RUBY_DTRACE_STRING_CREATE(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, string__create, arg1, arg2, arg3)
 
#define RUBY_DTRACE_SYMBOL_CREATE_ENABLED()   __builtin_expect (ruby_symbol__create_semaphore, 0)
 
#define RUBY_DTRACE_SYMBOL_CREATE(arg1, arg2, arg3)   DTRACE_PROBE3 (ruby, symbol__create, arg1, arg2, arg3)
 
#define RUBY_DTRACE_PARSE_BEGIN_ENABLED()   __builtin_expect (ruby_parse__begin_semaphore, 0)
 
#define RUBY_DTRACE_PARSE_BEGIN(arg1, arg2)   DTRACE_PROBE2 (ruby, parse__begin, arg1, arg2)
 
#define RUBY_DTRACE_PARSE_END_ENABLED()   __builtin_expect (ruby_parse__end_semaphore, 0)
 
#define RUBY_DTRACE_PARSE_END(arg1, arg2)   DTRACE_PROBE2 (ruby, parse__end, arg1, arg2)
 
#define RUBY_DTRACE_GC_MARK_BEGIN_ENABLED()   __builtin_expect (ruby_gc__mark__begin_semaphore, 0)
 
#define RUBY_DTRACE_GC_MARK_BEGIN()   DTRACE_PROBE (ruby, gc__mark__begin)
 
#define RUBY_DTRACE_GC_MARK_END_ENABLED()   __builtin_expect (ruby_gc__mark__end_semaphore, 0)
 
#define RUBY_DTRACE_GC_MARK_END()   DTRACE_PROBE (ruby, gc__mark__end)
 
#define RUBY_DTRACE_GC_SWEEP_BEGIN_ENABLED()   __builtin_expect (ruby_gc__sweep__begin_semaphore, 0)
 
#define RUBY_DTRACE_GC_SWEEP_BEGIN()   DTRACE_PROBE (ruby, gc__sweep__begin)
 
#define RUBY_DTRACE_GC_SWEEP_END_ENABLED()   __builtin_expect (ruby_gc__sweep__end_semaphore, 0)
 
#define RUBY_DTRACE_GC_SWEEP_END()   DTRACE_PROBE (ruby, gc__sweep__end)
 

Functions

__extension__ unsigned short ruby_method__entry_semaphore __attribute__ ((unused)) __attribute__((section(".probes")))
 

Macro Definition Documentation

◆ _SDT_HAS_SEMAPHORES

#define _SDT_HAS_SEMAPHORES   1

Definition at line 4 of file probes.h.

◆ RUBY_DTRACE_ARRAY_CREATE

#define RUBY_DTRACE_ARRAY_CREATE (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, array__create, arg1, arg2, arg3)

Definition at line 152 of file probes.h.

◆ RUBY_DTRACE_ARRAY_CREATE_ENABLED

#define RUBY_DTRACE_ARRAY_CREATE_ENABLED ( )    __builtin_expect (ruby_array__create_semaphore, 0)

Definition at line 149 of file probes.h.

◆ RUBY_DTRACE_CMETHOD_ENTRY

#define RUBY_DTRACE_CMETHOD_ENTRY (   arg1,
  arg2,
  arg3,
  arg4 
)    DTRACE_PROBE4 (ruby, cmethod__entry, arg1, arg2, arg3, arg4)

Definition at line 42 of file probes.h.

◆ RUBY_DTRACE_CMETHOD_ENTRY_ENABLED

#define RUBY_DTRACE_CMETHOD_ENTRY_ENABLED ( )    __builtin_expect (ruby_cmethod__entry_semaphore, 0)

Definition at line 39 of file probes.h.

◆ RUBY_DTRACE_CMETHOD_RETURN

#define RUBY_DTRACE_CMETHOD_RETURN (   arg1,
  arg2,
  arg3,
  arg4 
)    DTRACE_PROBE4 (ruby, cmethod__return, arg1, arg2, arg3, arg4)

Definition at line 53 of file probes.h.

◆ RUBY_DTRACE_CMETHOD_RETURN_ENABLED

#define RUBY_DTRACE_CMETHOD_RETURN_ENABLED ( )    __builtin_expect (ruby_cmethod__return_semaphore, 0)

Definition at line 50 of file probes.h.

◆ RUBY_DTRACE_FIND_REQUIRE_ENTRY

#define RUBY_DTRACE_FIND_REQUIRE_ENTRY (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, find__require__entry, arg1, arg2, arg3)

Definition at line 86 of file probes.h.

◆ RUBY_DTRACE_FIND_REQUIRE_ENTRY_ENABLED

#define RUBY_DTRACE_FIND_REQUIRE_ENTRY_ENABLED ( )    __builtin_expect (ruby_find__require__entry_semaphore, 0)

Definition at line 83 of file probes.h.

◆ RUBY_DTRACE_FIND_REQUIRE_RETURN

#define RUBY_DTRACE_FIND_REQUIRE_RETURN (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, find__require__return, arg1, arg2, arg3)

Definition at line 97 of file probes.h.

◆ RUBY_DTRACE_FIND_REQUIRE_RETURN_ENABLED

#define RUBY_DTRACE_FIND_REQUIRE_RETURN_ENABLED ( )    __builtin_expect (ruby_find__require__return_semaphore, 0)

Definition at line 94 of file probes.h.

◆ RUBY_DTRACE_GC_MARK_BEGIN

#define RUBY_DTRACE_GC_MARK_BEGIN ( )    DTRACE_PROBE (ruby, gc__mark__begin)

Definition at line 218 of file probes.h.

◆ RUBY_DTRACE_GC_MARK_BEGIN_ENABLED

#define RUBY_DTRACE_GC_MARK_BEGIN_ENABLED ( )    __builtin_expect (ruby_gc__mark__begin_semaphore, 0)

Definition at line 215 of file probes.h.

◆ RUBY_DTRACE_GC_MARK_END

#define RUBY_DTRACE_GC_MARK_END ( )    DTRACE_PROBE (ruby, gc__mark__end)

Definition at line 229 of file probes.h.

◆ RUBY_DTRACE_GC_MARK_END_ENABLED

#define RUBY_DTRACE_GC_MARK_END_ENABLED ( )    __builtin_expect (ruby_gc__mark__end_semaphore, 0)

Definition at line 226 of file probes.h.

◆ RUBY_DTRACE_GC_SWEEP_BEGIN

#define RUBY_DTRACE_GC_SWEEP_BEGIN ( )    DTRACE_PROBE (ruby, gc__sweep__begin)

Definition at line 240 of file probes.h.

◆ RUBY_DTRACE_GC_SWEEP_BEGIN_ENABLED

#define RUBY_DTRACE_GC_SWEEP_BEGIN_ENABLED ( )    __builtin_expect (ruby_gc__sweep__begin_semaphore, 0)

Definition at line 237 of file probes.h.

◆ RUBY_DTRACE_GC_SWEEP_END

#define RUBY_DTRACE_GC_SWEEP_END ( )    DTRACE_PROBE (ruby, gc__sweep__end)

Definition at line 251 of file probes.h.

◆ RUBY_DTRACE_GC_SWEEP_END_ENABLED

#define RUBY_DTRACE_GC_SWEEP_END_ENABLED ( )    __builtin_expect (ruby_gc__sweep__end_semaphore, 0)

Definition at line 248 of file probes.h.

◆ RUBY_DTRACE_HASH_CREATE

#define RUBY_DTRACE_HASH_CREATE (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, hash__create, arg1, arg2, arg3)

Definition at line 163 of file probes.h.

◆ RUBY_DTRACE_HASH_CREATE_ENABLED

#define RUBY_DTRACE_HASH_CREATE_ENABLED ( )    __builtin_expect (ruby_hash__create_semaphore, 0)

Definition at line 160 of file probes.h.

◆ RUBY_DTRACE_LOAD_ENTRY

#define RUBY_DTRACE_LOAD_ENTRY (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, load__entry, arg1, arg2, arg3)

Definition at line 108 of file probes.h.

◆ RUBY_DTRACE_LOAD_ENTRY_ENABLED

#define RUBY_DTRACE_LOAD_ENTRY_ENABLED ( )    __builtin_expect (ruby_load__entry_semaphore, 0)

Definition at line 105 of file probes.h.

◆ RUBY_DTRACE_LOAD_RETURN

#define RUBY_DTRACE_LOAD_RETURN (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, load__return, arg1, arg2, arg3)

Definition at line 119 of file probes.h.

◆ RUBY_DTRACE_LOAD_RETURN_ENABLED

#define RUBY_DTRACE_LOAD_RETURN_ENABLED ( )    __builtin_expect (ruby_load__return_semaphore, 0)

Definition at line 116 of file probes.h.

◆ RUBY_DTRACE_METHOD_ENTRY

#define RUBY_DTRACE_METHOD_ENTRY (   arg1,
  arg2,
  arg3,
  arg4 
)    DTRACE_PROBE4 (ruby, method__entry, arg1, arg2, arg3, arg4)

Definition at line 20 of file probes.h.

◆ RUBY_DTRACE_METHOD_ENTRY_ENABLED

#define RUBY_DTRACE_METHOD_ENTRY_ENABLED ( )    __builtin_expect (ruby_method__entry_semaphore, 0)

Definition at line 17 of file probes.h.

◆ RUBY_DTRACE_METHOD_RETURN

#define RUBY_DTRACE_METHOD_RETURN (   arg1,
  arg2,
  arg3,
  arg4 
)    DTRACE_PROBE4 (ruby, method__return, arg1, arg2, arg3, arg4)

Definition at line 31 of file probes.h.

◆ RUBY_DTRACE_METHOD_RETURN_ENABLED

#define RUBY_DTRACE_METHOD_RETURN_ENABLED ( )    __builtin_expect (ruby_method__return_semaphore, 0)

Definition at line 28 of file probes.h.

◆ RUBY_DTRACE_OBJECT_CREATE

#define RUBY_DTRACE_OBJECT_CREATE (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, object__create, arg1, arg2, arg3)

Definition at line 141 of file probes.h.

◆ RUBY_DTRACE_OBJECT_CREATE_ENABLED

#define RUBY_DTRACE_OBJECT_CREATE_ENABLED ( )    __builtin_expect (ruby_object__create_semaphore, 0)

Definition at line 138 of file probes.h.

◆ RUBY_DTRACE_PARSE_BEGIN

#define RUBY_DTRACE_PARSE_BEGIN (   arg1,
  arg2 
)    DTRACE_PROBE2 (ruby, parse__begin, arg1, arg2)

Definition at line 196 of file probes.h.

◆ RUBY_DTRACE_PARSE_BEGIN_ENABLED

#define RUBY_DTRACE_PARSE_BEGIN_ENABLED ( )    __builtin_expect (ruby_parse__begin_semaphore, 0)

Definition at line 193 of file probes.h.

◆ RUBY_DTRACE_PARSE_END

#define RUBY_DTRACE_PARSE_END (   arg1,
  arg2 
)    DTRACE_PROBE2 (ruby, parse__end, arg1, arg2)

Definition at line 207 of file probes.h.

◆ RUBY_DTRACE_PARSE_END_ENABLED

#define RUBY_DTRACE_PARSE_END_ENABLED ( )    __builtin_expect (ruby_parse__end_semaphore, 0)

Definition at line 204 of file probes.h.

◆ RUBY_DTRACE_RAISE

#define RUBY_DTRACE_RAISE (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, raise, arg1, arg2, arg3)

Definition at line 130 of file probes.h.

◆ RUBY_DTRACE_RAISE_ENABLED

#define RUBY_DTRACE_RAISE_ENABLED ( )    __builtin_expect (ruby_raise_semaphore, 0)

Definition at line 127 of file probes.h.

◆ RUBY_DTRACE_REQUIRE_ENTRY

#define RUBY_DTRACE_REQUIRE_ENTRY (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, require__entry, arg1, arg2, arg3)

Definition at line 64 of file probes.h.

◆ RUBY_DTRACE_REQUIRE_ENTRY_ENABLED

#define RUBY_DTRACE_REQUIRE_ENTRY_ENABLED ( )    __builtin_expect (ruby_require__entry_semaphore, 0)

Definition at line 61 of file probes.h.

◆ RUBY_DTRACE_REQUIRE_RETURN

#define RUBY_DTRACE_REQUIRE_RETURN (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, require__return, arg1, arg2, arg3)

Definition at line 75 of file probes.h.

◆ RUBY_DTRACE_REQUIRE_RETURN_ENABLED

#define RUBY_DTRACE_REQUIRE_RETURN_ENABLED ( )    __builtin_expect (ruby_require__return_semaphore, 0)

Definition at line 72 of file probes.h.

◆ RUBY_DTRACE_STRING_CREATE

#define RUBY_DTRACE_STRING_CREATE (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, string__create, arg1, arg2, arg3)

Definition at line 174 of file probes.h.

◆ RUBY_DTRACE_STRING_CREATE_ENABLED

#define RUBY_DTRACE_STRING_CREATE_ENABLED ( )    __builtin_expect (ruby_string__create_semaphore, 0)

Definition at line 171 of file probes.h.

◆ RUBY_DTRACE_SYMBOL_CREATE

#define RUBY_DTRACE_SYMBOL_CREATE (   arg1,
  arg2,
  arg3 
)    DTRACE_PROBE3 (ruby, symbol__create, arg1, arg2, arg3)

Definition at line 185 of file probes.h.

◆ RUBY_DTRACE_SYMBOL_CREATE_ENABLED

#define RUBY_DTRACE_SYMBOL_CREATE_ENABLED ( )    __builtin_expect (ruby_symbol__create_semaphore, 0)

Definition at line 182 of file probes.h.

◆ STAP_HAS_SEMAPHORES

#define STAP_HAS_SEMAPHORES   1 /* deprecated */

Definition at line 7 of file probes.h.

Function Documentation

◆ __attribute__()

__extension__ unsigned short ruby_gc__sweep__end_semaphore __attribute__ ( (unused)  )