projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16acc0c
)
[PATCH] x86_64: Don't allow kprobes on __switch_to
author
Andi Kleen
<
[email protected]
>
Fri, 3 Feb 2006 20:51:38 +0000
(21:51 +0100)
committer
Linus Torvalds
<
[email protected]
>
Sun, 5 Feb 2006 00:43:14 +0000
(16:43 -0800)
kprobes cannot deal with the funny calling conventions when it
runs on a different stack when it returns. If someone wants
to instrument context switch they can add a probe to schedule()
instead.
Cc:
[email protected]
,
[email protected]
Signed-off-by: Andi Kleen <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/x86_64/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/x86_64/kernel/process.c
b/arch/x86_64/kernel/process.c
index 8ded407e4a9419fd5bcd57dea91e5ef42ad0d41a..22a05dec81a224491b4a5bf859507e1fa7b11966 100644
(file)
--- a/
arch/x86_64/kernel/process.c
+++ b/
arch/x86_64/kernel/process.c
@@
-516,8
+516,10
@@
out:
* This could still be optimized:
* - fold all the options into a flag word and test it with a single test.
* - could test fs/gs bitsliced
+ *
+ * Kprobes not supported here. Set the probe on schedule instead.
*/
-struct task_struct *
+
__kprobes
struct task_struct *
__switch_to(struct task_struct *prev_p, struct task_struct *next_p)
{
struct thread_struct *prev = &prev_p->thread,