package ocaml-probes
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=e3587acc8c957181030a4c9daac7041f44c3faf908707b9cb3b808173e19d380
doc/ocaml-probes.probes_lib/Probes_lib/With_ptrace/index.html
Module Probes_lib.With_ptraceSource
For expert use only. Use trace_existing_process ~atomically:true and trace_new_process if possible, they do With_ptrace under the hood.
Atomically get and update the state of probes using ptrace. A simple state machine checks that the process is stopped before trying to get or update the state of probes:
(attach . (update | get_probe_state)* . detach
Attach to the process with pid, and stop it to allow probe update.
Enable/disable probes. Raise if not attached to any process. update writes to memory of the process that must have been already stopped by attach. update does not continue process execution and can be invoked more than once. Invoke detach to continue process execution after all updates are done.
force see trace_existing_process
Check which probes are enabled in the current process. Raise if not attached.