Skip to contentSkip to conversation

tracepoint: add __rcu annotation

PATCH In review Lai Jiangshan 2 participants 3 messages Jan 4, 2011 – Jan 9, 2011 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 tracepoint: add __rcu annotation

Add __rcu annotation to :

	(struct tracepoint)->funcs

---

include/linux/tracepoint.h +1 -1
index d3e4f87..e0e400d 100644
@@ -32,7 +32,7 @@ struct tracepoint {
 	int state;			/* State. */
 	void (*regfunc)(void);
 	void (*unregfunc)(void);
-	struct tracepoint_func *funcs;
+	struct tracepoint_func __rcu *funcs;
 } __attribute__((aligned(32)));		/*
 					 * Aligned on 32 bytes because it is
 					 * globally visible and gcc happily
Acked-by on v1 2/3
#1 lore raw
Quoted 4 lines · * Lai Jiangshan ([email protected]) wrote:

Add __rcu annotation to :

	(struct tracepoint)->funcs

Yep, makes sense!

Thanks,

Quoted 14 lines

---

include/linux/tracepoint.h +1 -1
index d3e4f87..e0e400d 100644
@@ -32,7 +32,7 @@ struct tracepoint {
 	int state;			/* State. */
 	void (*regfunc)(void);
 	void (*unregfunc)(void);
-	struct tracepoint_func *funcs;
+	struct tracepoint_func __rcu *funcs;
 } __attribute__((aligned(32)));		/*
 					 * Aligned on 32 bytes because it is
 					 * globally visible and gcc happily
Signature · 4 lines
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
#2 lore raw

[tip:perf/urgent] tracepoint: Add __rcu annotation

In reply to Lai Jiangshan
Commit-ID:  bd1c8b22b7b81c6f6c4f5c19cb2387da3d02fb0f
Gitweb:     http://git.kernel.org/tip/bd1c8b22b7b81c6f6c4f5c19cb2387da3d02fb0f
Author:     Lai Jiangshan <[email protected]>
AuthorDate: Tue, 4 Jan 2011 16:06:09 +0800
Committer:  Steven Rostedt <[email protected]>
CommitDate: Fri, 7 Jan 2011 20:57:22 -0500

tracepoint: Add __rcu annotation

Add __rcu annotation to :

	(struct tracepoint)->funcs

LKML-Reference: <[email protected]>

---
 include/linux/tracepoint.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/tracepoint.h +1 -1
index 899103c..c681461 100644
@@ -32,7 +32,7 @@ struct tracepoint {
 	int state;			/* State. */
 	void (*regfunc)(void);
 	void (*unregfunc)(void);
-	struct tracepoint_func *funcs;
+	struct tracepoint_func __rcu *funcs;
 } __attribute__((aligned(32)));		/*
 					 * Aligned on 32 bytes because it is
 					 * globally visible and gcc happily