Blame src/libpfm4/lib/events/arm_qcom_krait_events.h

Packit Service a1973e
/*
Packit Service a1973e
 * Copyright (c) 2014 by Vince Weaver <vincent.weaver@maine.edu>
Packit Service a1973e
 *
Packit Service a1973e
 * Permission is hereby granted, free of charge, to any person obtaining a copy
Packit Service a1973e
 * of this software and associated documentation files (the "Software"), to deal
Packit Service a1973e
 * in the Software without restriction, including without limitation the rights
Packit Service a1973e
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
Packit Service a1973e
 * of the Software, and to permit persons to whom the Software is furnished to do so,
Packit Service a1973e
 * subject to the following conditions:
Packit Service a1973e
 *
Packit Service a1973e
 * The above copyright notice and this permission notice shall be included in all
Packit Service a1973e
 * copies or substantial portions of the Software.
Packit Service a1973e
 *
Packit Service a1973e
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
Packit Service a1973e
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
Packit Service a1973e
 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
Packit Service a1973e
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Packit Service a1973e
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
Packit Service a1973e
 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Packit Service a1973e
 *
Packit Service a1973e
 * Qualcomm Krait Chips
Packit Service a1973e
 * based on info in the thread on linux-kernel:
Packit Service a1973e
 *   [PATCH 0/7] Support Krait CPU PMUs
Packit Service a1973e
 */
Packit Service a1973e
static const arm_entry_t arm_qcom_krait_pe[]={
Packit Service a1973e
	{.name = "L1D_CACHE_REFILL",
Packit Service a1973e
	 .modmsk = ARMV7_A15_ATTRS,
Packit Service a1973e
	 .code = 0x03,
Packit Service a1973e
	 .desc = "Level 1 data cache refill"
Packit Service a1973e
	},
Packit Service a1973e
	{.name = "L1D_CACHE_ACCESS",
Packit Service a1973e
	 .modmsk = ARMV7_A15_ATTRS,
Packit Service a1973e
	 .code = 0x04,
Packit Service a1973e
	 .desc = "Level 1 data cache access"
Packit Service a1973e
	},
Packit Service a1973e
	{.name = "INSTR_EXECUTED",
Packit Service a1973e
	 .modmsk = ARMV7_A15_ATTRS,
Packit Service a1973e
	 .code = 0x08,
Packit Service a1973e
	 .desc = "Instructions architecturally executed"
Packit Service a1973e
	},
Packit Service a1973e
	{.name = "PC_WRITE",
Packit Service a1973e
	 .modmsk = ARMV7_A15_ATTRS,
Packit Service a1973e
	 .code = 0x0c,
Packit Service a1973e
	 .desc = "Software change of PC.  Equivalent to branches"
Packit Service a1973e
	},
Packit Service a1973e
	{.name = "PC_BRANCH_MIS_PRED",
Packit Service a1973e
	 .modmsk = ARMV7_A15_ATTRS,
Packit Service a1973e
	 .code = 0x10,
Packit Service a1973e
	 .desc = "Branches mispredicted or not predicted"
Packit Service a1973e
	},
Packit Service a1973e
	{.name = "CLOCK_CYCLES",
Packit Service a1973e
	 .modmsk = ARMV7_A15_ATTRS,
Packit Service a1973e
	 .code = 0x11,
Packit Service a1973e
	 .desc = "Cycles"
Packit Service a1973e
	},
Packit Service a1973e
	{.name = "BRANCH_PRED",
Packit Service a1973e
	 .modmsk = ARMV7_A15_ATTRS,
Packit Service a1973e
	 .code = 0x12,
Packit Service a1973e
	 .desc = "Predictable branch speculatively executed"
Packit Service a1973e
	},
Packit Service a1973e
	{.name = "CPU_CYCLES",
Packit Service a1973e
	 .modmsk = ARMV7_A15_ATTRS,
Packit Service a1973e
	 .code = 0xff,
Packit Service a1973e
	 .desc = "Cycles"
Packit Service a1973e
	},
Packit Service a1973e
};