2010-02-02 19:24:58 +00:00
|
|
|
/*
|
|
|
|
* linux/arch/arm/include/asm/perf_event.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 picoChip Designs Ltd, Jamie Iles
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ARM_PERF_EVENT_H__
|
|
|
|
#define __ARM_PERF_EVENT_H__
|
|
|
|
|
|
|
|
/* ARM performance counters start from 1 (in the cp15 accesses) so use the
|
|
|
|
* same indexes here for consistency. */
|
|
|
|
#define PERF_EVENT_INDEX_OFFSET 1
|
|
|
|
|
2010-04-30 10:32:44 +00:00
|
|
|
/* ARM perf PMU IDs for use by internal perf clients. */
|
|
|
|
enum arm_perf_pmu_ids {
|
|
|
|
ARM_PERF_PMU_ID_XSCALE1 = 0,
|
|
|
|
ARM_PERF_PMU_ID_XSCALE2,
|
|
|
|
ARM_PERF_PMU_ID_V6,
|
|
|
|
ARM_PERF_PMU_ID_V6MP,
|
|
|
|
ARM_PERF_PMU_ID_CA8,
|
|
|
|
ARM_PERF_PMU_ID_CA9,
|
2011-06-03 16:40:15 +00:00
|
|
|
ARM_PERF_PMU_ID_CA5,
|
2011-01-19 14:24:38 +00:00
|
|
|
ARM_PERF_PMU_ID_CA15,
|
2010-04-30 10:32:44 +00:00
|
|
|
ARM_NUM_PMU_IDS,
|
|
|
|
};
|
|
|
|
|
|
|
|
extern enum arm_perf_pmu_ids
|
|
|
|
armpmu_get_pmu_id(void);
|
|
|
|
|
2010-02-02 19:24:58 +00:00
|
|
|
#endif /* __ARM_PERF_EVENT_H__ */
|