pmc_events.h (185363) | pmc_events.h (185582) |
---|---|
1/*- 2 * Copyright (c) 2005 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2005 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/hwpmc/pmc_events.h 185363 2008-11-27 09:00:47Z jkoshy $ | 26 * $FreeBSD: head/sys/dev/hwpmc/pmc_events.h 185582 2008-12-03 15:23:08Z jkoshy $ |
27 */ 28 29#ifndef _DEV_HWPMC_PMC_EVENTS_H_ 30#define _DEV_HWPMC_PMC_EVENTS_H_ 31 32/* 33 * PMC event codes. 34 * --- 386 unchanged lines hidden (view full) --- 421#define __PMC_EV_IAF() \ 422__PMC_EV(IAF, INSTR_RETIRED_ANY) \ 423__PMC_EV(IAF, CPU_CLK_UNHALTED_CORE) \ 424__PMC_EV(IAF, CPU_CLK_UNHALTED_REF) 425 426#define PMC_EV_IAF_FIRST PMC_EV_IAF_INSTR_RETIRED_ANY 427#define PMC_EV_IAF_LAST PMC_EV_IAF_CPU_CLK_UNHALTED_REF 428 | 27 */ 28 29#ifndef _DEV_HWPMC_PMC_EVENTS_H_ 30#define _DEV_HWPMC_PMC_EVENTS_H_ 31 32/* 33 * PMC event codes. 34 * --- 386 unchanged lines hidden (view full) --- 421#define __PMC_EV_IAF() \ 422__PMC_EV(IAF, INSTR_RETIRED_ANY) \ 423__PMC_EV(IAF, CPU_CLK_UNHALTED_CORE) \ 424__PMC_EV(IAF, CPU_CLK_UNHALTED_REF) 425 426#define PMC_EV_IAF_FIRST PMC_EV_IAF_INSTR_RETIRED_ANY 427#define PMC_EV_IAF_LAST PMC_EV_IAF_CPU_CLK_UNHALTED_REF 428 |
429#define __PMC_EV_ALIAS_IAF() \ 430__PMC_EV_ALIAS("instruction-retired", IAF_INSTR_RETIRED_ANY) \ 431__PMC_EV_ALIAS("unhalted-core-cycles", IAF_CPU_CLK_UNHALTED_CORE) \ 432__PMC_EV_ALIAS("unhalted-reference-cycles", IAF_CPU_CLK_UNHALTED_REF) 433 |
|
429/* 430 * Events supported by programmable function counters present in 431 * Intel Atom, Core and Core2 CPUs, from the "Intel 64 and IA-32 432 * Architectures Software Developer's Manual Volume 3B: System Programming 433 * Guide, Part 2", July 2008. 434 * 435 * These PMCs select events with a combination of an event code and 436 * unit mask. Quirks that need to be taken care of include: --- 986 unchanged lines hidden --- | 434/* 435 * Events supported by programmable function counters present in 436 * Intel Atom, Core and Core2 CPUs, from the "Intel 64 and IA-32 437 * Architectures Software Developer's Manual Volume 3B: System Programming 438 * Guide, Part 2", July 2008. 439 * 440 * These PMCs select events with a combination of an event code and 441 * unit mask. Quirks that need to be taken care of include: --- 986 unchanged lines hidden --- |