= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
package magic-trace
-
magic-trace.magic_trace
-
magic-trace.magic_trace_core
-
-
magic-trace.magic_trace_lib
-
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val breakpoint_fd :
Core.Pid.t ->
addr:int64 ->
single_hit:bool ->
t Core.Or_error.t
Uses perf_event_open
to set a hardware breakpoint at a given address in a process. When that breakpoint is hit the resulting file descriptor will poll as readable.
If single_hit
is set the breakpoint will disable itself after being hit once.
val destroy : t -> unit
module Hit : sig ... end
val fd : t -> Core_unix.File_descr.t
Returns a waitable fd valid only until t
is destroyed or GCd