freebsd-nq/cddl
Jonathan T. Looney 96fbe51956 When copying types from one CTF container to another, ensure that we
encode 0-length (i.e. "") structure and union member names as offset 0.
This ensures that we don't confuse other parts of the CTF code which
expect this encoding.

This resolves a Dtrace error resolving members of anonymous structs/unions
within the (struct mbuf) type which some users were seeing after r366908.

While here, update the code in ctf_add_generic() to encode 0-length type
names as offset 0.

Reviewed by:	markj
MFC after:	2 weeks
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D27246
2020-11-20 17:26:02 +00:00
..
compat/opensolaris Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
contrib/opensolaris When copying types from one CTF container to another, ensure that we 2020-11-20 17:26:02 +00:00
lib loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
sbin Use MLINKS where appropriate for zfs/zpool subcommand pages 2020-09-02 15:20:10 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
usr.bin Add missing includes of src.opts.mk 2020-11-16 17:20:35 +00:00
usr.sbin Remove -I flag for include path that doesn't exist 2020-09-10 15:37:07 +00:00
Makefile Convert traditional ${MK_TESTS} conditional idiom for including test 2017-08-02 08:35:51 +00:00
Makefile.inc Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00