Deleted Added
full compact
hwpmc_amd.c (282658) hwpmc_amd.c (298431)
1/*-
2 * Copyright (c) 2003-2008 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 *

--- 15 unchanged lines hidden (view full) ---

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003-2008 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 *

--- 15 unchanged lines hidden (view full) ---

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_amd.c 282658 2015-05-08 19:40:00Z jhb $");
32__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_amd.c 298431 2016-04-21 19:40:10Z pfg $");
33
34/* Support for the AMD K7 and later processors */
35
36#include <sys/param.h>
37#include <sys/lock.h>
38#include <sys/malloc.h>
39#include <sys/mutex.h>
40#include <sys/pmc.h>

--- 195 unchanged lines hidden (view full) ---

236 { PMC_EV_K8_NB_SIZED_COMMANDS, 0xEB, 0x7F },
237 { PMC_EV_K8_NB_PROBE_RESULT, 0xEC, 0x0F },
238 { PMC_EV_K8_NB_HT_BUS0_BANDWIDTH, 0xF6, 0x0F },
239 { PMC_EV_K8_NB_HT_BUS1_BANDWIDTH, 0xF7, 0x0F },
240 { PMC_EV_K8_NB_HT_BUS2_BANDWIDTH, 0xF8, 0x0F }
241
242};
243
33
34/* Support for the AMD K7 and later processors */
35
36#include <sys/param.h>
37#include <sys/lock.h>
38#include <sys/malloc.h>
39#include <sys/mutex.h>
40#include <sys/pmc.h>

--- 195 unchanged lines hidden (view full) ---

236 { PMC_EV_K8_NB_SIZED_COMMANDS, 0xEB, 0x7F },
237 { PMC_EV_K8_NB_PROBE_RESULT, 0xEC, 0x0F },
238 { PMC_EV_K8_NB_HT_BUS0_BANDWIDTH, 0xF6, 0x0F },
239 { PMC_EV_K8_NB_HT_BUS1_BANDWIDTH, 0xF7, 0x0F },
240 { PMC_EV_K8_NB_HT_BUS2_BANDWIDTH, 0xF8, 0x0F }
241
242};
243
244const int amd_event_codes_size =
245 sizeof(amd_event_codes) / sizeof(amd_event_codes[0]);
244const int amd_event_codes_size = nitems(amd_event_codes);
246
247/*
248 * Per-processor information
249 */
250
251struct amd_cpu {
252 struct pmc_hw pc_amdpmcs[AMD_NPMCS];
253};

--- 780 unchanged lines hidden ---
245
246/*
247 * Per-processor information
248 */
249
250struct amd_cpu {
251 struct pmc_hw pc_amdpmcs[AMD_NPMCS];
252};

--- 780 unchanged lines hidden ---