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__
|
|
|
|
|
2012-07-29 11:36:28 +00:00
|
|
|
/*
|
|
|
|
* The ARMv7 CPU PMU supports up to 32 event counters.
|
|
|
|
*/
|
|
|
|
#define ARMPMU_MAX_HWEVENTS 32
|
|
|
|
|
|
|
|
#define HW_OP_UNSUPPORTED 0xFFFF
|
|
|
|
#define C(_x) PERF_COUNT_HW_CACHE_##_x
|
|
|
|
#define CACHE_OP_UNSUPPORTED 0xFFFF
|
2010-04-30 10:32:44 +00:00
|
|
|
|
2012-11-22 12:05:55 +00:00
|
|
|
#ifdef CONFIG_HW_PERF_EVENTS
|
2012-09-13 15:40:46 +00:00
|
|
|
struct pt_regs;
|
|
|
|
extern unsigned long perf_instruction_pointer(struct pt_regs *regs);
|
|
|
|
extern unsigned long perf_misc_flags(struct pt_regs *regs);
|
|
|
|
#define perf_misc_flags(regs) perf_misc_flags(regs)
|
2012-11-22 12:05:55 +00:00
|
|
|
#endif
|
2012-09-13 15:40:46 +00:00
|
|
|
|
2010-02-02 19:24:58 +00:00
|
|
|
#endif /* __ARM_PERF_EVENT_H__ */
|