diff options
author | Frederic Weisbecker <frederic@kernel.org> | 2018-06-25 22:58:56 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-06-26 03:07:58 -0400 |
commit | ac46c7fddef702dadae18c1fc932530cd31cf9cd (patch) | |
tree | bf7223d8b565c8d138e76f3c300b09579b0c9206 /arch/xtensa/include/asm/hw_breakpoint.h | |
parent | 551624d6fc6b282cdcc3f8ab395cb03da0a38fc7 (diff) |
perf/arch/xtensa: Implement hw_breakpoint_arch_parse()
Migrate to the new API in order to remove arch_validate_hwbkpt_settings()
that clumsily mixes up architecture validation and commit
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Joel Fernandes <joel.opensrc@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rich Felker <dalias@libc.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Link: http://lkml.kernel.org/r/1529981939-8231-10-git-send-email-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/xtensa/include/asm/hw_breakpoint.h')
-rw-r--r-- | arch/xtensa/include/asm/hw_breakpoint.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/xtensa/include/asm/hw_breakpoint.h b/arch/xtensa/include/asm/hw_breakpoint.h index 2525bf6816a6..f347c2132e6b 100644 --- a/arch/xtensa/include/asm/hw_breakpoint.h +++ b/arch/xtensa/include/asm/hw_breakpoint.h | |||
@@ -30,13 +30,17 @@ struct arch_hw_breakpoint { | |||
30 | u16 type; | 30 | u16 type; |
31 | }; | 31 | }; |
32 | 32 | ||
33 | struct perf_event_attr; | ||
33 | struct perf_event; | 34 | struct perf_event; |
34 | struct pt_regs; | 35 | struct pt_regs; |
35 | struct task_struct; | 36 | struct task_struct; |
36 | 37 | ||
37 | int hw_breakpoint_slots(int type); | 38 | int hw_breakpoint_slots(int type); |
38 | int arch_check_bp_in_kernelspace(struct arch_hw_breakpoint *hw); | 39 | int arch_check_bp_in_kernelspace(struct arch_hw_breakpoint *hw); |
39 | int arch_validate_hwbkpt_settings(struct perf_event *bp); | 40 | int hw_breakpoint_arch_parse(struct perf_event *bp, |
41 | const struct perf_event_attr *attr, | ||
42 | struct arch_hw_breakpoint *hw); | ||
43 | #define hw_breakpoint_arch_parse hw_breakpoint_arch_parse | ||
40 | int hw_breakpoint_exceptions_notify(struct notifier_block *unused, | 44 | int hw_breakpoint_exceptions_notify(struct notifier_block *unused, |
41 | unsigned long val, void *data); | 45 | unsigned long val, void *data); |
42 | 46 | ||