Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15037
b: refs/heads/master
c: 00d7c05
h: refs/heads/master
i:
  15035: b16dca9
v: v3
  • Loading branch information
Keshavamurthy Anil S authored and Linus Torvalds committed Dec 12, 2005
1 parent 2e86ed4 commit 43afafe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cda315aba34ff4fb66bbb2945b723688f3414a75
refs/heads/master: 00d7c05ab168c10f9b520e07400923267bc04419
7 changes: 6 additions & 1 deletion trunk/include/linux/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <linux/spinlock.h>
#include <linux/rcupdate.h>

#ifdef CONFIG_KPROBES
#include <asm/kprobes.h>

/* kprobe_status settings */
Expand Down Expand Up @@ -147,7 +148,6 @@ struct kretprobe_instance {
struct task_struct *task;
};

#ifdef CONFIG_KPROBES
extern spinlock_t kretprobe_lock;
extern int arch_prepare_kprobe(struct kprobe *p);
extern void arch_copy_kprobe(struct kprobe *p);
Expand Down Expand Up @@ -195,6 +195,11 @@ void add_rp_inst(struct kretprobe_instance *ri);
void kprobe_flush_task(struct task_struct *tk);
void recycle_rp_inst(struct kretprobe_instance *ri);
#else /* CONFIG_KPROBES */

#define __kprobes /**/
struct jprobe;
struct kretprobe;

static inline struct kprobe *kprobe_running(void)
{
return NULL;
Expand Down
3 changes: 2 additions & 1 deletion trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include <linux/compat.h>
#include <linux/syscalls.h>
#include <linux/kprobes.h>

#include <asm/uaccess.h>
#include <asm/io.h>
Expand Down Expand Up @@ -168,7 +169,7 @@ EXPORT_SYMBOL(notifier_chain_unregister);
* of the last notifier function called.
*/

int notifier_call_chain(struct notifier_block **n, unsigned long val, void *v)
int __kprobes notifier_call_chain(struct notifier_block **n, unsigned long val, void *v)
{
int ret=NOTIFY_DONE;
struct notifier_block *nb = *n;
Expand Down

0 comments on commit 43afafe

Please sign in to comment.