freebsd-src/share
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
..
colldef
colldef_unicode
ctypedef
dict share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
doc share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
dtrace libdtrace: decode all tcp header flags and add 2023-12-31 15:02:03 +01:00
examples vmrun.sh: allow device name arguments in pci-passthru option 2024-01-02 20:20:42 +02:00
i18n
keys
man pthread_attr_get_np(3): Revamp 2024-01-10 18:50:19 +01:00
misc update homepage for FreeBSD Manual Pages (again) 2023-12-28 07:11:38 +00:00
mk dtrace: Add the 'oformat' libdtrace option 2024-01-10 18:14:26 -05:00
monetdef
monetdef_unicode
msgdef msgdef: fix NO and SI locales 2023-09-21 12:54:21 +02:00
msgdef_unicode
numericdef
numericdef_unicode
security
sendmail
skel share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
snmp
syscons
tabset share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
termcap share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
tests
timedef
vt Trim various $FreeBSD$ 2023-10-10 10:34:43 -07:00
zoneinfo Fix share/zoneinfo for DIRDEPS_BUILD 2023-11-20 12:52:43 -08:00
Makefile share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
Makefile.inc share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00