Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- From: Brooks Davis <brooks@xxxxxxxxxxx>
- Date: Mon, 17 Mar 2008 09:42:52 -0500
On Mon, Mar 17, 2008 at 09:47:25AM -0400, John Baldwin wrote:
On Saturday 15 March 2008 01:43:00 am Joseph Koshy wrote:
FreeBSD has been trying to not be quite as i386-centric as it used to
be. If you look at other code in the kernel that handles per-cpu data
such as UMA you will see that it uses mp_maxid and CPU_ABSENT(). There
are other places in the kernel that are broken though (such as ndis(4)).
HWPMC is very x86 centric, for obvious reasons.
Considering other CPU archictectures support various performance counters it
really shouldn't be designed to be x86-centric even if it is currently only
implemented for x86 CPUs.
We should take some care to make sure we don't over generalize. From
what I've heard the people who wrote the performance counter framework
for x86 in linux where very, very unhappy when told to rework everything
to support at framework that went with ia64's exponentionaly more
complex instrumentation. If we can make small changes to support more
conventional non-x86 platforms, that's probably a good idea. If nothing
else, these counters could be even more useful on CPU-poor embedded
devices.
-- Brooks
Attachment:
pgp3tVfodVri6.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- From: Joseph Koshy
- Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- References:
- [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- From: David O'Brien
- Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- From: John Baldwin
- Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- From: Joseph Koshy
- Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- From: John Baldwin
- [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- Prev by Date: Power-Mgt (Was: Re: cvs commit: src/sys/i386/cpufreq est.c )
- Next by Date: Re: HEADS UP: zerocopy bpf commits impending
- Previous by thread: Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- Next by thread: Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'.
- Index(es):
Relevant Pages
|
|