14 #ifndef XRAY_XRAY_INTERFACE_H
15 #define XRAY_XRAY_INTERFACE_H
static __inline__ uint64_t
static __inline__ int32_t
static __inline__ uint16_t
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...
__SIZE_TYPE__ size_t
The unsigned integer type of the result of the sizeof operator.
int __xray_remove_handler_arg1()
Disables the XRay handler used to log first arguments of function calls.
XRayPatchingStatus __xray_patch()
This tells XRay to patch the instrumentation points.
int __xray_set_handler(void(*entry)(int32_t, XRayEntryType))
Provide a function to invoke for when instrumentation points are hit.
uintptr_t __xray_function_address(int32_t FuncId)
This function returns the address of the function provided a valid function id.
XRayPatchingStatus __xray_unpatch()
Reverses the effect of __xray_patch().
uint16_t __xray_register_event_type(const char *event_type)
int __xray_remove_handler()
This removes whatever the currently provided handler is.
int __xray_remove_typedevent_handler()
Removes the currently set typed event handler.
void __xray_init()
Initialize the required XRay data structures.
int __xray_set_handler_arg1(void(*entry)(int32_t, XRayEntryType, uint64_t))
Use XRay to log the first argument of each (instrumented) function call.
XRayPatchingStatus __xray_unpatch_function(int32_t FuncId)
This unpatches a specific function id.
int __xray_remove_customevent_handler()
This removes whatever the currently provided custom event handler is.
XRayPatchingStatus __xray_patch_function(int32_t FuncId)
This patches a specific function id.
XRayEntryType
Synchronize this with AsmPrinter::SledKind in LLVM.
int __xray_set_customevent_handler(void(*entry)(void *, std::size_t))
Provide a function to invoke when XRay encounters a custom event.
int __xray_set_typedevent_handler(void(*entry)(uint16_t, const void *, std::size_t))
Set a handler for xray typed event logging.
size_t __xray_max_function_id()
This function returns the maximum valid function id.