Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf/hw_breakpoint: Remove default hw_breakpoint_arch_parse()

All architectures have implemented it, we can now remove the poor weak
version.

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-11-git-send-email-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Frederic Weisbecker and committed by
Ingo Molnar
cffbb3bd ac46c7fd

-23
-1
arch/arm/include/asm/hw_breakpoint.h
··· 122 122 extern int hw_breakpoint_arch_parse(struct perf_event *bp, 123 123 const struct perf_event_attr *attr, 124 124 struct arch_hw_breakpoint *hw); 125 - #define hw_breakpoint_arch_parse hw_breakpoint_arch_parse 126 125 extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, 127 126 unsigned long val, void *data); 128 127
-1
arch/arm64/include/asm/hw_breakpoint.h
··· 129 129 extern int hw_breakpoint_arch_parse(struct perf_event *bp, 130 130 const struct perf_event_attr *attr, 131 131 struct arch_hw_breakpoint *hw); 132 - #define hw_breakpoint_arch_parse hw_breakpoint_arch_parse 133 132 extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, 134 133 unsigned long val, void *data); 135 134
-1
arch/powerpc/include/asm/hw_breakpoint.h
··· 65 65 extern int hw_breakpoint_arch_parse(struct perf_event *bp, 66 66 const struct perf_event_attr *attr, 67 67 struct arch_hw_breakpoint *hw); 68 - #define hw_breakpoint_arch_parse hw_breakpoint_arch_parse 69 68 extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, 70 69 unsigned long val, void *data); 71 70 int arch_install_hw_breakpoint(struct perf_event *bp);
-1
arch/sh/include/asm/hw_breakpoint.h
··· 58 58 extern int hw_breakpoint_arch_parse(struct perf_event *bp, 59 59 const struct perf_event_attr *attr, 60 60 struct arch_hw_breakpoint *hw); 61 - #define hw_breakpoint_arch_parse hw_breakpoint_arch_parse 62 61 extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, 63 62 unsigned long val, void *data); 64 63
-1
arch/x86/include/asm/hw_breakpoint.h
··· 57 57 extern int hw_breakpoint_arch_parse(struct perf_event *bp, 58 58 const struct perf_event_attr *attr, 59 59 struct arch_hw_breakpoint *hw); 60 - #define hw_breakpoint_arch_parse hw_breakpoint_arch_parse 61 60 extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, 62 61 unsigned long val, void *data); 63 62
-1
arch/xtensa/include/asm/hw_breakpoint.h
··· 40 40 int hw_breakpoint_arch_parse(struct perf_event *bp, 41 41 const struct perf_event_attr *attr, 42 42 struct arch_hw_breakpoint *hw); 43 - #define hw_breakpoint_arch_parse hw_breakpoint_arch_parse 44 43 int hw_breakpoint_exceptions_notify(struct notifier_block *unused, 45 44 unsigned long val, void *data); 46 45
-17
kernel/events/hw_breakpoint.c
··· 400 400 return 0; 401 401 } 402 402 403 - #ifndef hw_breakpoint_arch_parse 404 - int hw_breakpoint_arch_parse(struct perf_event *bp, 405 - const struct perf_event_attr *attr, 406 - struct arch_hw_breakpoint *hw) 407 - { 408 - int err; 409 - 410 - err = arch_validate_hwbkpt_settings(bp); 411 - if (err) 412 - return err; 413 - 414 - *hw = bp->hw.info; 415 - 416 - return 0; 417 - } 418 - #endif 419 - 420 403 static int hw_breakpoint_parse(struct perf_event *bp, 421 404 const struct perf_event_attr *attr, 422 405 struct arch_hw_breakpoint *hw)