]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When copying types from one CTF container to another, ensure that we
authorJonathan T. Looney <jtl@FreeBSD.org>
Tue, 17 Nov 2020 14:07:27 +0000 (14:07 +0000)
committerJonathan T. Looney <jtl@FreeBSD.org>
Tue, 17 Nov 2020 14:07:27 +0000 (14:07 +0000)
commit3cbb4cc200f8a0ad7ed08233425ea54524a21f1c
tree7ae0be87e6ad9d077987cb2c142328ac95e0e908
parent2f40fc6ff3f2da0dbfd8fb168dc6e3a6696a4087
When copying types from one CTF container to another, ensure that we
always copy intrinsic data types before copying bitfields which are
based on those types. This ensures the type ordering in the destination
CTF container matches the assumption made elsewhere in the CTF code
that instrinsic data types will always appear before bitfields based on
those types.

This resolves the following error message some users have seen after
r366908:
    "/usr/lib/dtrace/ipfw.d", line 121: failed to copy type of 'ip6p':
    Conflicting type is already defined

Reviewed by: markj
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D27213
cddl/contrib/opensolaris/common/ctf/ctf_create.c