hwpmc_amd.c (174395) | hwpmc_amd.c (177343) |
---|---|
1/*- 2 * Copyright (c) 2003-2007 Joseph Koshy 3 * Copyright (c) 2007 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * Portions of this software were developed by A. Joseph Koshy under 7 * sponsorship from the FreeBSD Foundation and Google, Inc. 8 * --- 16 unchanged lines hidden (view full) --- 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003-2007 Joseph Koshy 3 * Copyright (c) 2007 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * Portions of this software were developed by A. Joseph Koshy under 7 * sponsorship from the FreeBSD Foundation and Google, Inc. 8 * --- 16 unchanged lines hidden (view full) --- 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_amd.c 174395 2007-12-07 08:20:17Z jkoshy $"); | 33__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_amd.c 177343 2008-03-18 08:36:19Z adrian $"); |
34 35/* Support for the AMD K7 and later processors */ 36 37#include <sys/param.h> 38#include <sys/lock.h> 39#include <sys/malloc.h> 40#include <sys/mutex.h> 41#include <sys/pmc.h> --- 636 unchanged lines hidden (view full) --- 678 struct pmc *pm; 679 struct pmc_cpu *pc; 680 struct pmc_hw *phw; 681 pmc_value_t v; 682 683 KASSERT(cpu >= 0 && cpu < mp_ncpus, 684 ("[amd,%d] out of range CPU %d", __LINE__, cpu)); 685 | 34 35/* Support for the AMD K7 and later processors */ 36 37#include <sys/param.h> 38#include <sys/lock.h> 39#include <sys/malloc.h> 40#include <sys/mutex.h> 41#include <sys/pmc.h> --- 636 unchanged lines hidden (view full) --- 678 struct pmc *pm; 679 struct pmc_cpu *pc; 680 struct pmc_hw *phw; 681 pmc_value_t v; 682 683 KASSERT(cpu >= 0 && cpu < mp_ncpus, 684 ("[amd,%d] out of range CPU %d", __LINE__, cpu)); 685 |
686 PMCDBG(MDP,INT,1, "cpu=%d tf=0x%p um=%d", cpu, (void *) tf, | 686 PMCDBG(MDP,INT,1, "cpu=%d tf=%p um=%d", cpu, (void *) tf, |
687 TRAPF_USERMODE(tf)); 688 689 retval = 0; 690 691 pc = pmc_pcpu[cpu]; 692 693 /* 694 * look for all PMCs that have interrupted: --- 314 unchanged lines hidden --- | 687 TRAPF_USERMODE(tf)); 688 689 retval = 0; 690 691 pc = pmc_pcpu[cpu]; 692 693 /* 694 * look for all PMCs that have interrupted: --- 314 unchanged lines hidden --- |