Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a DOF parser, derived from DTrace v1 but simplified. The parser is intended to run in a strict-mode seccomp jail, and does no I/O except via pre-provided file descriptors. The host side should do I/O using the functions in dof_parser_host.h. The seccomp parser child returns output as a stream of dof_parsed_t records, which are variable-length records with an early size member (the reader code in dof_parser_host.c takes care of reading the right amount of data). Errors are returned as PIT_ERR records in this stream, or signified by a simple crash (in which case the invoker can simply restart it). The parser has a notably noisy debugging mechanism which can be turned on via make dof_dbg=yes (it is separate from make debugging=yes because it makes the daemon emit lots of stuff on stderr, which you're unlikely to want unless you're actually debugging USDT itself). Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information