Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2012 19:37:24 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        sbruno@freebsd.org
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: pmc warnings on stable/9
Message-ID:  <CAFMmRNwg=9BYqatDRcY7=2vgJqhaC03wN3F9PvphYBE-YRmRjw@mail.gmail.com>
In-Reply-To: <1344381411.18854.16.camel@powernoodle.corp.yahoo.com>
References:  <1344381411.18854.16.camel@powernoodle.corp.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 7, 2012 at 7:16 PM, Sean Bruno <seanbru@yahoo-inc.com> wrote:
> I have no idea the significance, or danger.  When compiling on stable/9
> I have always seen the following WARNINGS.  Can we silence/fix these?
> Or is it supposed to be that way?  :-)
>
> WARNING: hwpmc_soft.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: kern_pmc.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: kern_rwlock.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: kern_sx.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: kern_lock.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: hwpmc_intel.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: hwpmc_tsc.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: hwpmc_amd.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: kern_clock.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: kern_mutex.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: trap.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: hwpmc_x86.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: hwpmc_uncore.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: hwpmc_piv.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: hwpmc_core.c: enum pmc_event has too many values: 1531 > 1023
> WARNING: hwpmc_logging.c: enum pmc_event has too many values: 1531 >
> 1023
> WARNING: hwpmc_mod.c: enum pmc_event has too many values: 1531 > 1023
>
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

These warnings(and the previous one from your other thread) both come
from ctfconvert.  I haven't looked into them in detail but I suspect
that the CTF format is not able to represent things like enums with
more than 1024 entries, or structures with more than a certain number
of members.  I've never seen any actual side-effects of the warnings,
although I suspect that if you tried to use DTrace to examine
variables with the affected types you wouldn't be able to inspect
everything.  As far as I know, DTrace is the only consumer of CTF data
in the kernel.

I have dreams of replacing DTrace's usage of CTF with libdwarf, but
that's little more than idle musings on my part at this stage.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNwg=9BYqatDRcY7=2vgJqhaC03wN3F9PvphYBE-YRmRjw>