freebsd-src/etc
Domagoj Stolfa 93f27766a7 dtrace: Add the 'oformat' libdtrace option
This option can be used to specify a format to use in DTrace output.
The following formats are supported:
 - json
 - xml
 - html
 - none (default DTrace output)

This is implemented using libxo and integrated into libdtrace. Client
code only works with the following API:

 - dtrace_oformat_setup(dtrace_hdl_t *) -- to be called when output is starting.
 - dtrace_oformat_teardown(dtrace_hdl_t *) -- to be called when output is finished
 - dtrace_oformat(dtrace_hdl_t *) -- check if oformat is enabled.
 - dtrace_set_outfp(FILE *) -- sets the output file for oformat.
 - Ensure that oformat is correctly checked in the drop handler and record
   processing callbacks.

This commit also adds tests which check if the generated output is
valid (JSON, XML) and extends the dtrace(1) describing the structured output.

Reviewed by:	markj
Discussed with:	phil
MFC after:	2 months
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D41745
2024-01-10 18:14:26 -05:00
..
gss Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mail misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
mtree dtrace: Add the 'oformat' libdtrace option 2024-01-10 18:14:26 -05:00
root etc: remove leftover leading empty comments, blank lines 2023-08-22 13:03:28 -05:00
sendmail misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
termcap termcap.small: Include xterm-256color 2023-12-02 00:55:56 -05:00
group etc: remove leftover leading empty comments, blank lines 2023-08-22 13:03:28 -05:00
Makefile Proactively remove libc++ __tuple header file that became a directory 2023-12-13 19:53:17 +01:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
master.passwd etc: remove leftover leading empty comments, blank lines 2023-08-22 13:03:28 -05:00
shells etc: remove leftover leading empty comments, blank lines 2023-08-22 13:03:28 -05:00