]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ctf: Import ctf.h from OpenBSD
authorMark Johnston <markj@FreeBSD.org>
Mon, 7 Mar 2022 13:42:57 +0000 (08:42 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 7 Mar 2022 15:43:18 +0000 (10:43 -0500)
commit2d5d2a986ce1a93b8567dbdf3f80bc2b545d6998
tree0c57e58a2d9b0963a97f59d8dedc23f08cff18bf
parentc3b6408ee82b95f03acd5f789fa832d2a1500fbd
ctf: Import ctf.h from OpenBSD

Use it instead of the existing ctf.h from OpenSolaris.  This makes it
easier to use CTF in the core kernel, and to extend the CTF format to
support wider type IDs.

The imported ctf.h is modified to depend only on _types.h, and also to
provide macros which use the "parent" bit of a type ID to refer to types
in a parent CTF container.

No functional change intended.

Reviewed by: Domagoj Stolfa, emaste
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34358
cddl/contrib/opensolaris/tools/ctf/common/ctf_headers.h
cddl/lib/libdtrace/Makefile
sys/cddl/contrib/opensolaris/uts/common/sys/ctf.h [deleted file]
sys/sys/ctf.h [new file with mode: 0644]
tools/build/Makefile