git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nfsd: 4.1 has an rfc number
[safe/jmp/linux-2.6]
/
kernel
/
tracepoint.c
diff --git
a/kernel/tracepoint.c
b/kernel/tracepoint.c
index
1a6a453
..
cc89be5
100644
(file)
--- a/
kernel/tracepoint.c
+++ b/
kernel/tracepoint.c
@@
-48,7
+48,7
@@
static struct hlist_head tracepoint_table[TRACEPOINT_TABLE_SIZE];
/*
* Note about RCU :
/*
* Note about RCU :
- * It is used to
to
delay the free of multiple probes array until a quiescent
+ * It is used to delay the free of multiple probes array until a quiescent
* state is reached.
* Tracepoint entries modifications are protected by the tracepoints_mutex.
*/
* state is reached.
* Tracepoint entries modifications are protected by the tracepoints_mutex.
*/
@@
-597,7
+597,9
@@
void syscall_regfunc(void)
if (!sys_tracepoint_refcount) {
read_lock_irqsave(&tasklist_lock, flags);
do_each_thread(g, t) {
if (!sys_tracepoint_refcount) {
read_lock_irqsave(&tasklist_lock, flags);
do_each_thread(g, t) {
- set_tsk_thread_flag(t, TIF_SYSCALL_TRACEPOINT);
+ /* Skip kernel threads. */
+ if (t->mm)
+ set_tsk_thread_flag(t, TIF_SYSCALL_TRACEPOINT);
} while_each_thread(g, t);
read_unlock_irqrestore(&tasklist_lock, flags);
}
} while_each_thread(g, t);
read_unlock_irqrestore(&tasklist_lock, flags);
}