hwpmc_uncore.h (230063) | hwpmc_uncore.h (232366) |
---|---|
1/*- 2 * Copyright (c) 2010 Fabien Thomas 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) 2010 Fabien Thomas 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/hwpmc_uncore.h 230063 2012-01-13 17:13:46Z gnn $ | 26 * $FreeBSD: head/sys/dev/hwpmc/hwpmc_uncore.h 232366 2012-03-01 21:23:26Z davide $ |
27 */ 28 29#ifndef _DEV_HWPMC_UNCORE_H_ 30#define _DEV_HWPMC_UNCORE_H_ 1 31 32/* 33 * Fixed-function PMCs. 34 */ --- 28 unchanged lines hidden (view full) --- 63 * Fixed-function counters. 64 */ 65 66#define UCF_MASK 0xF 67 68#define UCF_CTR0 0x394 69 70#define UCF_OFFSET 32 | 27 */ 28 29#ifndef _DEV_HWPMC_UNCORE_H_ 30#define _DEV_HWPMC_UNCORE_H_ 1 31 32/* 33 * Fixed-function PMCs. 34 */ --- 28 unchanged lines hidden (view full) --- 63 * Fixed-function counters. 64 */ 65 66#define UCF_MASK 0xF 67 68#define UCF_CTR0 0x394 69 70#define UCF_OFFSET 32 |
71#define UCF_OFFSET_SB 29 |
|
71#define UCF_CTRL 0x395 72 73/* 74 * Programmable counters. 75 */ 76 77#define UCP_PMC0 0x3B0 78#define UCP_EVSEL0 0x3C0 79#define UCP_OPCODE_MATCH 0x396 | 72#define UCF_CTRL 0x395 73 74/* 75 * Programmable counters. 76 */ 77 78#define UCP_PMC0 0x3B0 79#define UCP_EVSEL0 0x3C0 80#define UCP_OPCODE_MATCH 0x396 |
81#define UCP_CB0_EVSEL0 0x700 |
|
80 81/* 82 * Simplified programming interface in Intel Performance Architecture 83 * v2 and later. 84 */ 85 86#define UC_GLOBAL_STATUS 0x392 87#define UC_GLOBAL_CTRL 0x391 --- 39 unchanged lines hidden --- | 82 83/* 84 * Simplified programming interface in Intel Performance Architecture 85 * v2 and later. 86 */ 87 88#define UC_GLOBAL_STATUS 0x392 89#define UC_GLOBAL_CTRL 0x391 --- 39 unchanged lines hidden --- |