aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/jump_label.h8
-rw-r--r--kernel/tracepoint.c6
-rw-r--r--lib/dynamic_debug.c4
3 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h
index b72cd9f92c2..81be4962b7a 100644
--- a/include/linux/jump_label.h
+++ b/include/linux/jump_label.h
@@ -25,10 +25,10 @@ extern void jump_label_update(unsigned long key, enum jump_label_type type);
25extern void jump_label_apply_nops(struct module *mod); 25extern void jump_label_apply_nops(struct module *mod);
26extern int jump_label_text_reserved(void *start, void *end); 26extern int jump_label_text_reserved(void *start, void *end);
27 27
28#define enable_jump_label(key) \ 28#define jump_label_enable(key) \
29 jump_label_update((unsigned long)key, JUMP_LABEL_ENABLE); 29 jump_label_update((unsigned long)key, JUMP_LABEL_ENABLE);
30 30
31#define disable_jump_label(key) \ 31#define jump_label_disable(key) \
32 jump_label_update((unsigned long)key, JUMP_LABEL_DISABLE); 32 jump_label_update((unsigned long)key, JUMP_LABEL_DISABLE);
33 33
34#else 34#else
@@ -39,12 +39,12 @@ do { \
39 goto label; \ 39 goto label; \
40} while (0) 40} while (0)
41 41
42#define enable_jump_label(cond_var) \ 42#define jump_label_enable(cond_var) \
43do { \ 43do { \
44 *(cond_var) = 1; \ 44 *(cond_var) = 1; \
45} while (0) 45} while (0)
46 46
47#define disable_jump_label(cond_var) \ 47#define jump_label_disable(cond_var) \
48do { \ 48do { \
49 *(cond_var) = 0; \ 49 *(cond_var) = 0; \
50} while (0) 50} while (0)
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index d6073a50a6c..e95ee7f31d4 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -265,10 +265,10 @@ static void set_tracepoint(struct tracepoint_entry **entry,
265 */ 265 */
266 rcu_assign_pointer(elem->funcs, (*entry)->funcs); 266 rcu_assign_pointer(elem->funcs, (*entry)->funcs);
267 if (!elem->state && active) { 267 if (!elem->state && active) {
268 enable_jump_label(&elem->state); 268 jump_label_enable(&elem->state);
269 elem->state = active; 269 elem->state = active;
270 } else if (elem->state && !active) { 270 } else if (elem->state && !active) {
271 disable_jump_label(&elem->state); 271 jump_label_disable(&elem->state);
272 elem->state = active; 272 elem->state = active;
273 } 273 }
274} 274}
@@ -285,7 +285,7 @@ static void disable_tracepoint(struct tracepoint *elem)
285 elem->unregfunc(); 285 elem->unregfunc();
286 286
287 if (elem->state) { 287 if (elem->state) {
288 disable_jump_label(&elem->state); 288 jump_label_disable(&elem->state);
289 elem->state = 0; 289 elem->state = 0;
290 } 290 }
291 rcu_assign_pointer(elem->funcs, NULL); 291 rcu_assign_pointer(elem->funcs, NULL);
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index e925c7b960f..7bd6df781ce 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -142,9 +142,9 @@ static void ddebug_change(const struct ddebug_query *query,
142 dt->num_enabled++; 142 dt->num_enabled++;
143 dp->flags = newflags; 143 dp->flags = newflags;
144 if (newflags) { 144 if (newflags) {
145 enable_jump_label(&dp->enabled); 145 jump_label_enable(&dp->enabled);
146 } else { 146 } else {
147 disable_jump_label(&dp->enabled); 147 jump_label_disable(&dp->enabled);
148 } 148 }
149 if (verbose) 149 if (verbose)
150 printk(KERN_INFO 150 printk(KERN_INFO