103089688SWill Deacon /* 203089688SWill Deacon * Copyright (C) 2012 ARM Ltd. 303089688SWill Deacon * 403089688SWill Deacon * This program is free software; you can redistribute it and/or modify 503089688SWill Deacon * it under the terms of the GNU General Public License version 2 as 603089688SWill Deacon * published by the Free Software Foundation. 703089688SWill Deacon * 803089688SWill Deacon * This program is distributed in the hope that it will be useful, 903089688SWill Deacon * but WITHOUT ANY WARRANTY; without even the implied warranty of 1003089688SWill Deacon * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1103089688SWill Deacon * GNU General Public License for more details. 1203089688SWill Deacon * 1303089688SWill Deacon * You should have received a copy of the GNU General Public License 1403089688SWill Deacon * along with this program. If not, see <http://www.gnu.org/licenses/>. 1503089688SWill Deacon */ 1603089688SWill Deacon 1703089688SWill Deacon #ifndef __ASM_PERF_EVENT_H 1803089688SWill Deacon #define __ASM_PERF_EVENT_H 1903089688SWill Deacon 20*75e42462SMarc Zyngier #ifdef CONFIG_HW_PERF_EVENTS 21*75e42462SMarc Zyngier struct pt_regs; 22*75e42462SMarc Zyngier extern unsigned long perf_instruction_pointer(struct pt_regs *regs); 23*75e42462SMarc Zyngier extern unsigned long perf_misc_flags(struct pt_regs *regs); 24*75e42462SMarc Zyngier #define perf_misc_flags(regs) perf_misc_flags(regs) 25*75e42462SMarc Zyngier #endif 2603089688SWill Deacon 2703089688SWill Deacon #endif 28