|
Packit |
577717 |
/*
|
|
Packit |
577717 |
* Copyright (c) 2014 Google Inc. All rights reserved
|
|
Packit |
577717 |
* Contributed by Stephane Eranian <eranian@gmail.com>
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
Packit |
577717 |
* of this software and associated documentation files (the "Software"), to deal
|
|
Packit |
577717 |
* in the Software without restriction, including without limitation the rights
|
|
Packit |
577717 |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
Packit |
577717 |
* of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
Packit |
577717 |
* subject to the following conditions:
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* The above copyright notice and this permission notice shall be included in all
|
|
Packit |
577717 |
* copies or substantial portions of the Software.
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
Packit |
577717 |
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
Packit |
577717 |
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
Packit |
577717 |
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
Packit |
577717 |
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
|
Packit |
577717 |
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* This file is part of libpfm, a performance monitoring support library for
|
|
Packit |
577717 |
* applications on Linux.
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* PMU: hswep_unc_ubo (Intel Haswell-EP U-Box uncore PMU)
|
|
Packit |
577717 |
*/
|
|
Packit |
577717 |
|
|
Packit |
577717 |
static const intel_x86_umask_t hswep_unc_u_event_msg[]={
|
|
Packit |
577717 |
{ .uname = "DOORBELL_RCVD",
|
|
Packit |
577717 |
.udesc = "TBD",
|
|
Packit |
577717 |
.ucode = 0x800,
|
|
Packit |
577717 |
.uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
};
|
|
Packit |
577717 |
|
|
Packit |
577717 |
static const intel_x86_umask_t hswep_unc_u_phold_cycles[]={
|
|
Packit |
577717 |
{ .uname = "ASSERT_TO_ACK",
|
|
Packit |
577717 |
.udesc = "Number of cycles asserted to ACK",
|
|
Packit |
577717 |
.ucode = 0x100,
|
|
Packit |
577717 |
.uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
};
|
|
Packit |
577717 |
|
|
Packit |
577717 |
static const intel_x86_entry_t intel_hswep_unc_u_pe[]={
|
|
Packit |
577717 |
{ .name = "UNC_U_EVENT_MSG",
|
|
Packit |
577717 |
.desc = "VLW Received",
|
|
Packit |
577717 |
.code = 0x42,
|
|
Packit |
577717 |
.cntmsk = 0x3,
|
|
Packit |
577717 |
.ngrp = 1,
|
|
Packit |
577717 |
.modmsk = HSWEP_UNC_UBO_ATTRS,
|
|
Packit |
577717 |
.numasks = LIBPFM_ARRAY_SIZE(hswep_unc_u_event_msg),
|
|
Packit |
577717 |
.umasks = hswep_unc_u_event_msg
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
{ .name = "UNC_U_PHOLD_CYCLES",
|
|
Packit |
577717 |
.desc = "Cycles PHOLD asserts to Ack",
|
|
Packit |
577717 |
.code = 0x45,
|
|
Packit |
577717 |
.cntmsk = 0x3,
|
|
Packit |
577717 |
.ngrp = 1,
|
|
Packit |
577717 |
.modmsk = HSWEP_UNC_UBO_ATTRS,
|
|
Packit |
577717 |
.numasks = LIBPFM_ARRAY_SIZE(hswep_unc_u_phold_cycles),
|
|
Packit |
577717 |
.umasks = hswep_unc_u_phold_cycles
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
{ .name = "UNC_U_RACU_REQUESTS",
|
|
Packit |
577717 |
.desc = "RACU requests",
|
|
Packit |
577717 |
.code = 0x46,
|
|
Packit |
577717 |
.cntmsk = 0x3,
|
|
Packit |
577717 |
.modmsk = HSWEP_UNC_UBO_ATTRS,
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
};
|