]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r207578:
authorkan <kan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 18 Jun 2010 16:14:37 +0000 (16:14 +0000)
committerkan <kan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 18 Jun 2010 16:14:37 +0000 (16:14 +0000)
commit455f4ce1a3ca693e26b4a6cf20defca9459bf69f
treeab041d723aae0c507069cb00733b1361de4bce15
parent5bbd90dba032380292242b4d2089b23f43a9fe72
MFC r207578:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c