tracepoint: add __rcu annotation
PATCH 2/3 tracepoint: add __rcu annotation
Add __rcu annotation to :
(struct tracepoint)->funcs
Signed-off-by Lai Jiangshan <[email protected]>
---
include/linux/tracepoint.h +1 -1
@@ -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
Quoted 4 lines · * Lai Jiangshan ([email protected]) wrote:
Add
__rcuannotation to :(struct tracepoint)->funcsSigned-off-by Lai Jiangshan <[email protected]>
Yep, makes sense!
Thanks,
Quoted 14 lines
---
include/linux/tracepoint.h +1
-1@@ -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
[tip:perf/urgent] tracepoint: Add __rcu annotation
In reply to Lai JiangshanCommit-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
Signed-off-by Lai Jiangshan <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Steven Rostedt <[email protected]>
--- include/linux/tracepoint.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/tracepoint.h +1 -1
@@ -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