package magic-trace

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

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

doc/magic-trace.magic_trace_core/Magic_trace_core/Elf/index.html

Module Magic_trace_core.ElfSource

include module type of Elf_intf
Sourcemodule Location : sig ... end
Sourcemodule Addr_table : sig ... end
Sourcemodule Stop_info : sig ... end
Sourcetype t
Sourceval create : Core.Filename.t -> t option

Returns name, address and filter string for using a symbol as a snapshot point.

The address is suitable for placing a breakpoint, and the filter string causes tracing to stop when executing code from that symbol. The filter string syntax is in ftrace format and is accepted both by the perf command line tool and the PERF_EVENT_IOC_SET_FILTER ioctl for the perf_event_open syscall.

Sourceval addr_table : t -> Addr_table.t

Find function symbols matching a regex and return a map from symbol name to symbol suitable for asking the user to disambiguate.

Sourceval all_symbols : t -> (string * Owee_elf.Symbol_table.Symbol.t) list
Sourceval find_symbol : t -> string -> Owee_elf.Symbol_table.Symbol.t option
Sourcemodule Symbol_resolver : sig ... end