package magic-trace

  1. Overview
  2. Docs
Collects and displays high-resolution traces of what a process is doing

Install

Dune Dependency

Authors

Maintainers

Sources

v1.0.1.tar.gz
sha256=77b2e4b3bc769910656d0fdee4839250548aa49486fd3554f6c057f1d64abe99
sha512=1f111db6348673c22a110611182a92c8aa999668dc077c44bc4abcaa72ccb197899ff2577047888627b50fcc9890824de6c82b4fe9f06129190b8b487ec3f716

doc/magic-trace.magic_trace_lib/Magic_trace_lib/Breakpoint/index.html

Module Magic_trace_lib.BreakpointSource

Sourcetype t
Sourceval 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.

Sourceval destroy : t -> unit
Sourcemodule Hit : sig ... end
Sourceval next_hit : t -> Hit.t option
Sourceval fd : t -> Core_unix.File_descr.t

Returns a waitable fd valid only until t is destroyed or GCd

OCaml

Innovation. Community. Security.