diff options
author | Christoph Hellwig <hch@lst.de> | 2007-05-04 12:47:46 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-05-04 12:48:24 -0400 |
commit | 33464e3b57834e161add62b499492cf43e35e54c (patch) | |
tree | bd78272d5e723fcfd08b2f4d8ce6f7ec7c6c1492 /include/asm-s390 | |
parent | dc87c3985e9b442c60994308a96f887579addc39 (diff) |
[S390] get rid of kprobes notifier call chain.
And here's a port of the powerpc patch to get rid of the notifier
chain completely to s390. It's ontop of Martins patch as that one
is in mainline already.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/kdebug.h | 18 | ||||
-rw-r--r-- | include/asm-s390/kprobes.h | 16 |
2 files changed, 19 insertions, 15 deletions
diff --git a/include/asm-s390/kdebug.h b/include/asm-s390/kdebug.h index 1b50f89819a4..d2d7ad276148 100644 --- a/include/asm-s390/kdebug.h +++ b/include/asm-s390/kdebug.h | |||
@@ -22,8 +22,21 @@ struct die_args { | |||
22 | */ | 22 | */ |
23 | extern int register_die_notifier(struct notifier_block *); | 23 | extern int register_die_notifier(struct notifier_block *); |
24 | extern int unregister_die_notifier(struct notifier_block *); | 24 | extern int unregister_die_notifier(struct notifier_block *); |
25 | extern int register_page_fault_notifier(struct notifier_block *); | 25 | |
26 | extern int unregister_page_fault_notifier(struct notifier_block *); | 26 | /* |
27 | * These are only here because kprobes.c wants them to implement a | ||
28 | * blatant layering violation. Will hopefully go away soon once all | ||
29 | * architectures are updated. | ||
30 | */ | ||
31 | static inline int register_page_fault_notifier(struct notifier_block *nb) | ||
32 | { | ||
33 | return 0; | ||
34 | } | ||
35 | static inline int unregister_page_fault_notifier(struct notifier_block *nb) | ||
36 | { | ||
37 | return 0; | ||
38 | } | ||
39 | |||
27 | extern struct atomic_notifier_head s390die_chain; | 40 | extern struct atomic_notifier_head s390die_chain; |
28 | 41 | ||
29 | enum die_val { | 42 | enum die_val { |
@@ -39,7 +52,6 @@ enum die_val { | |||
39 | DIE_GPF, | 52 | DIE_GPF, |
40 | DIE_CALL, | 53 | DIE_CALL, |
41 | DIE_NMI_IPI, | 54 | DIE_NMI_IPI, |
42 | DIE_PAGE_FAULT, | ||
43 | }; | 55 | }; |
44 | 56 | ||
45 | static inline int notify_die(enum die_val val, const char *str, | 57 | static inline int notify_die(enum die_val val, const char *str, |
diff --git a/include/asm-s390/kprobes.h b/include/asm-s390/kprobes.h index b847ff0ec3fa..830fe4c4eea6 100644 --- a/include/asm-s390/kprobes.h +++ b/include/asm-s390/kprobes.h | |||
@@ -97,18 +97,10 @@ void kretprobe_trampoline(void); | |||
97 | int is_prohibited_opcode(kprobe_opcode_t *instruction); | 97 | int is_prohibited_opcode(kprobe_opcode_t *instruction); |
98 | void get_instruction_type(struct arch_specific_insn *ainsn); | 98 | void get_instruction_type(struct arch_specific_insn *ainsn); |
99 | 99 | ||
100 | int kprobe_fault_handler(struct pt_regs *regs, int trapnr); | ||
101 | int kprobe_exceptions_notify(struct notifier_block *self, | ||
102 | unsigned long val, void *data); | ||
103 | |||
100 | #define flush_insn_slot(p) do { } while (0) | 104 | #define flush_insn_slot(p) do { } while (0) |
101 | 105 | ||
102 | #endif /* _ASM_S390_KPROBES_H */ | 106 | #endif /* _ASM_S390_KPROBES_H */ |
103 | |||
104 | #ifdef CONFIG_KPROBES | ||
105 | |||
106 | extern int kprobe_exceptions_notify(struct notifier_block *self, | ||
107 | unsigned long val, void *data); | ||
108 | #else /* !CONFIG_KPROBES */ | ||
109 | static inline int kprobe_exceptions_notify(struct notifier_block *self, | ||
110 | unsigned long val, void *data) | ||
111 | { | ||
112 | return 0; | ||
113 | } | ||
114 | #endif | ||