diff options
author | Dean Michael Berris <dberris@google.com> | 2017-05-22 03:23:54 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-05-22 03:23:54 +0000 |
commit | 658624e6a3e0a06c05e338e5c41518f50380f9fb (patch) | |
tree | fdfcfabb6c90215d19187bd8f3e50857150ab24f /compiler-rt/include | |
parent | 769b23beb9fa395317f7bbe60da2524dff7e2cda (diff) |
[XRay][compiler-rt] Add __xray_remove_customevent_handler(...)
This change adds __xray_remove_customevent_handler(...) to be consistent
with other APIs that add/remove handlers.
Diffstat (limited to 'compiler-rt/include')
-rw-r--r-- | compiler-rt/include/xray/xray_interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/include/xray/xray_interface.h b/compiler-rt/include/xray/xray_interface.h index c3833f0be35..dc0c277aa84 100644 --- a/compiler-rt/include/xray/xray_interface.h +++ b/compiler-rt/include/xray/xray_interface.h @@ -69,6 +69,10 @@ extern int __xray_remove_handler_arg1(); /// Provide a function to invoke when XRay encounters a custom event. extern int __xray_set_customevent_handler(void (*entry)(void*, std::size_t)); +/// This removes whatever the currently provided custom event handler is. +/// Returns 1 on success, 0 on error. +extern int __xray_remove_customevent_handler(); + enum XRayPatchingStatus { NOT_INITIALIZED = 0, SUCCESS = 1, |