package owee

  1. Overview
  2. Docs
type t = {
  1. addr : int64;
    (*

    address of the probe site

    *)
  2. semaphore : int64 option;
    (*

    address of the semaphore corresponding to the probe

    *)
  3. provider : string;
  4. name : string;
  5. args : string;
    (*

    probe arguments

    *)
}
val iter : Owee_buf.t -> Owee_elf.section array -> f:(t -> unit) -> unit

iter buf sections ~f applies f to each stapsdt note, in order of appearance in .notes.stapsdt section. Expects buf to point to the beginning of an elf file. Raises Section_not_found if .note.stapsdt section is not found. Raises if .note.stapsdt is found but .stapsdt.base is not. Raises if the owner is not "stapsdt" or the type is not 3 for version 3 of probes. Raises if parsing of notes fails for other reasons.

OCaml

Innovation. Community. Security.