freebsd-dev/sys/dev/hwpmc
Eitan Adler 7a22215c53 Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

Discussed with:	-arch, rdivacky
Reviewed by:	cperciva
2013-11-30 22:17:27 +00:00
..
hwpmc_amd.c hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG 2012-09-18 13:33:39 +00:00
hwpmc_amd.h
hwpmc_arm.c Remove all the checks on curthread != NULL with the exception of some MD 2012-09-13 22:26:22 +00:00
hwpmc_core.c Fix a >80 character long line, introduced in my previous commit. 2013-08-25 12:02:20 +00:00
hwpmc_core.h Add Intel Ivy Bridge support to hwpmc(9). 2012-09-06 13:54:01 +00:00
hwpmc_ia64.c
hwpmc_intel.c Complete r250097: 2013-04-30 14:56:41 +00:00
hwpmc_logging.c Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
hwpmc_mips24k.c Rework MIPS PMC code: 2012-03-22 18:01:23 +00:00
hwpmc_mips.c Fix class malloc init for mips and powerpc that was not converted 2012-04-23 08:58:01 +00:00
hwpmc_mod.c Remove local change leftover, this should never have been part of 2013-09-20 23:10:52 +00:00
hwpmc_mpc7xxx.c Refactor PowerPC hwpmc(4) driver into generic and specific. More refactoring 2013-09-03 00:34:18 +00:00
hwpmc_octeon.c Add Octeon PMC hardware backend 2012-03-23 00:09:27 +00:00
hwpmc_pentium.c
hwpmc_pentium.h
hwpmc_piv.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_piv.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
hwpmc_powerpc.c Fix the build. 2013-09-05 01:13:26 +00:00
hwpmc_powerpc.h Fix hwpmc(4) for 32-bit PowerPC. 2013-09-04 04:11:38 +00:00
hwpmc_ppro.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_ppro.h
hwpmc_soft.c malloc(9) cannot return NULL if M_WAITOK flag is specified. 2013-04-30 15:59:22 +00:00
hwpmc_soft.h Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_sparc64.c
hwpmc_tsc.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_tsc.h
hwpmc_uncore.c Trailing whitespace cleanup along with 80 column enforcemnt. 2013-04-03 21:34:35 +00:00
hwpmc_uncore.h - Add support for the Intel Sandy Bridge microarchitecture (both core and uncore counting events) 2012-03-01 21:23:26 +00:00
hwpmc_x86.c Remove all the checks on curthread != NULL with the exception of some MD 2012-09-13 22:26:22 +00:00
hwpmc_xscale.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_xscale.h
pmc_events.h Remove the duplicate LLC_MISS event and put it in the right order. 2013-08-29 13:52:51 +00:00