freebsd-dev/sys/dev/hwpmc
Attilio Rao 71a19bdc64 Commit the support for removing cpumask_t and replacing it directly with
cpuset_t objects.
That is going to offer the underlying support for a simple bump of
MAXCPU and then support for number of cpus > 32 (as it is today).

Right now, cpumask_t is an int, 32 bits on all our supported architecture.
cpumask_t on the other side is implemented as an array of longs, and
easilly extendible by definition.

The architectures touched by this commit are the following:
- amd64
- i386
- pc98
- arm
- ia64
- XEN

while the others are still missing.
Userland is believed to be fully converted with the changes contained
here.

Some technical notes:
- This commit may be considered an ABI nop for all the architectures
  different from amd64 and ia64 (and sparc64 in the future)
- per-cpu members, which are now converted to cpuset_t, needs to be
  accessed avoiding migration, because the size of cpuset_t should be
  considered unknown
- size of cpuset_t objects is different from kernel and userland (this is
  primirally done in order to leave some more space in userland to cope
  with KBI extensions). If you need to access kernel cpuset_t from the
  userland please refer to example in this patch on how to do that
  correctly (kgdb may be a good source, for example).
- Support for other architectures is going to be added soon
- Only MAXCPU for amd64 is bumped now

The patch has been tested by sbruno and Nicholas Esborn on opteron
4 x 12 pack CPUs. More testing on big SMP is expected to came soon.
pluknet tested the patch with his 8-ways on both amd64 and i386.

Tested by:	pluknet, sbruno, gianni, Nicholas Esborn
Reviewed by:	jeff, jhb, sbruno
2011-05-05 14:39:14 +00:00
..
hwpmc_amd.c - Efficiency tweak: when checking for PMC overflows, only go to 2008-12-02 10:46:35 +00:00
hwpmc_amd.h - Separate PMC class dependent code from other kinds of machine 2008-11-09 17:37:54 +00:00
hwpmc_arm.c Intel XScale hwpmc(4) support. 2009-12-23 23:16:54 +00:00
hwpmc_core.c Fix invalid class removal when IAF is not the last class. 2010-09-05 13:31:14 +00:00
hwpmc_core.h Make sure that we clear the correct bits when we turn off 2010-07-29 17:52:23 +00:00
hwpmc_ia64.c Unbreak LINT. 2008-11-22 12:34:49 +00:00
hwpmc_intel.c - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
hwpmc_logging.c Handling SIGPIPE will cause deadlock/crash. 2010-03-26 14:35:48 +00:00
hwpmc_mips24k.c Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. 2010-03-03 15:05:58 +00:00
hwpmc_mips24k.h Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. 2010-03-03 15:05:58 +00:00
hwpmc_mips.c Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. 2010-03-03 15:05:58 +00:00
hwpmc_mod.c Commit the support for removing cpumask_t and replacing it directly with 2011-05-05 14:39:14 +00:00
hwpmc_pentium.c - Separate PMC class dependent code from other kinds of machine 2008-11-09 17:37:54 +00:00
hwpmc_pentium.h - Separate PMC class dependent code from other kinds of machine 2008-11-09 17:37:54 +00:00
hwpmc_piv.c Adjust the handling of the local APIC PMC interrupt vector: 2009-08-14 21:05:08 +00:00
hwpmc_piv.h - Separate PMC class dependent code from other kinds of machine 2008-11-09 17:37:54 +00:00
hwpmc_powerpc.c Unbreak LINT. 2008-11-22 12:34:49 +00:00
hwpmc_ppro.c Adjust the handling of the local APIC PMC interrupt vector: 2009-08-14 21:05:08 +00:00
hwpmc_ppro.h - Separate PMC class dependent code from other kinds of machine 2008-11-09 17:37:54 +00:00
hwpmc_sparc64.c Unbreak LINT. 2008-11-22 12:34:49 +00:00
hwpmc_tsc.c - Separate PMC class dependent code from other kinds of machine 2008-11-09 17:37:54 +00:00
hwpmc_tsc.h - Separate PMC class dependent code from other kinds of machine 2008-11-09 17:37:54 +00:00
hwpmc_uncore.c - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
hwpmc_uncore.h - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
hwpmc_x86.c Use a better check for a valid kernel stack address when capturing 2009-12-03 14:59:42 +00:00
hwpmc_xscale.c Intel XScale hwpmc(4) support. 2009-12-23 23:16:54 +00:00
hwpmc_xscale.h Intel XScale hwpmc(4) support. 2009-12-23 23:16:54 +00:00
pmc_events.h Fix two aliases that had the same name but were pointing to different 2010-10-04 17:22:18 +00:00