]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not encode more than CTF_MAX_VLEN(1023) enum members.
authorAlexander Kabaev <kan@FreeBSD.org>
Mon, 3 May 2010 18:04:17 +0000 (18:04 +0000)
committerAlexander Kabaev <kan@FreeBSD.org>
Mon, 3 May 2010 18:04:17 +0000 (18:04 +0000)
commit59879e52c1d56b4c7e7ff1cee46770722d254fe8
treec1213ce3a18f1e15e9eb7be442b559119f0dfa18
parent2d5d7f7f61f2217db46e1f9673aecc111d651df9
Do not encode more than CTF_MAX_VLEN(1023) enum members.

CTF can not represent enums with more than CTF_MAX_VLEN members, but
ctfconvert will happily ignore that limitation and create CTF section no
other tool can interpret.

This change is different from similar change from upstream, which just
returns an error if big enum is encountered.  Doing that means that
every FreeBSD kernel with compiled in hwpmc will have no useable CTF
information due to pmc_event enum having 1236+ members.
cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c