Re: hwpmc dealing with sparse cpu systems.

Joseph Koshy <[email protected]> Sat, 13 Oct 2007 09:37:15 +0530
Newsgroups gmane.os.freebsd.devel.smp
Message-ID <86k5prac98.wl%[email protected]>
> One of the engineers here seems to have found a bug in the
> hwpmc_mod.c module.  The problem we have is that cpuids can be
> greater than mp_ncpus due to sparseness.

> Does the fix here make sense?  (replace mp_ncpus with MAXCPU)

No, a simple global substitution would probably be incorrect because
it would allow userland to get hwpmc to attempt operations on
non-existent CPUs.

I will look into this.

Regards,
Koshy
<[email protected]>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-smp
To unsubscribe, send any mail to "[email protected]"