]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fbt: Add support for CTFv3 containers
authorMark Johnston <markj@FreeBSD.org>
Mon, 7 Mar 2022 13:45:53 +0000 (08:45 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 18 Apr 2022 16:38:28 +0000 (12:38 -0400)
commit246787fcb82463ba8c052994d8674e3cb7425d6a
tree271764ec7e24cbc8eda7edea947129c7e9f80888
parent6e6983ee2b722a4d931bc1829870a22e5853951d
fbt: Add support for CTFv3 containers

The general aim in this and subsequent patches is to minimize the
amount of code that directly references CTF types such as ctf_type_t,
ctf_array_t, etc.  To that end, introduce some routines similar to the
existing fbt_get_ctt_size() (which exists to deal with differences
between v1 and v2) and change ctf_lookup_by_id() to return a void
pointer.

Support for v2 containers is preserved.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

(cherry picked from commit d9175438c0e77ef2b400601aa8cf8098c82a77a7)
(cherry picked from commit 2ecf3b58ebdfd6452b8ce269943da362b40c2e63)
sys/cddl/dev/fbt/fbt.c