aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:51 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:58:28 -0400
commite309b41dd65aa953f86765eeeecc941d8e1e8b8f (patch)
tree295d4ed6e2a766607f889a04b977ca27cc24929e /kernel
parentb53dde9d34f2df396540988ebc65c33400f57b04 (diff)
ftrace: remove notrace
now that we have a kbuild method for notrace, no need to pollute the C code with the annotations. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/ftrace.c66
-rw-r--r--kernel/trace/trace.c94
-rw-r--r--kernel/trace/trace.h6
-rw-r--r--kernel/trace/trace_functions.c12
-rw-r--r--kernel/trace/trace_irqsoff.c40
-rw-r--r--kernel/trace/trace_sched_switch.c12
-rw-r--r--kernel/trace/trace_sched_wakeup.c28
-rw-r--r--kernel/trace/trace_selftest.c2
8 files changed, 130 insertions, 130 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 57350cbd1f61..281d97a3208c 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -53,7 +53,7 @@ ftrace_func_t ftrace_trace_function __read_mostly = ftrace_stub;
53/* mcount is defined per arch in assembly */ 53/* mcount is defined per arch in assembly */
54EXPORT_SYMBOL(mcount); 54EXPORT_SYMBOL(mcount);
55 55
56notrace void ftrace_list_func(unsigned long ip, unsigned long parent_ip) 56void ftrace_list_func(unsigned long ip, unsigned long parent_ip)
57{ 57{
58 struct ftrace_ops *op = ftrace_list; 58 struct ftrace_ops *op = ftrace_list;
59 59
@@ -79,7 +79,7 @@ void clear_ftrace_function(void)
79 ftrace_trace_function = ftrace_stub; 79 ftrace_trace_function = ftrace_stub;
80} 80}
81 81
82static int notrace __register_ftrace_function(struct ftrace_ops *ops) 82static int __register_ftrace_function(struct ftrace_ops *ops)
83{ 83{
84 /* Should never be called by interrupts */ 84 /* Should never be called by interrupts */
85 spin_lock(&ftrace_lock); 85 spin_lock(&ftrace_lock);
@@ -110,7 +110,7 @@ static int notrace __register_ftrace_function(struct ftrace_ops *ops)
110 return 0; 110 return 0;
111} 111}
112 112
113static int notrace __unregister_ftrace_function(struct ftrace_ops *ops) 113static int __unregister_ftrace_function(struct ftrace_ops *ops)
114{ 114{
115 struct ftrace_ops **p; 115 struct ftrace_ops **p;
116 int ret = 0; 116 int ret = 0;
@@ -197,7 +197,7 @@ static int ftrace_record_suspend;
197 197
198static struct dyn_ftrace *ftrace_free_records; 198static struct dyn_ftrace *ftrace_free_records;
199 199
200static inline int notrace 200static inline int
201ftrace_ip_in_hash(unsigned long ip, unsigned long key) 201ftrace_ip_in_hash(unsigned long ip, unsigned long key)
202{ 202{
203 struct dyn_ftrace *p; 203 struct dyn_ftrace *p;
@@ -214,13 +214,13 @@ ftrace_ip_in_hash(unsigned long ip, unsigned long key)
214 return found; 214 return found;
215} 215}
216 216
217static inline void notrace 217static inline void
218ftrace_add_hash(struct dyn_ftrace *node, unsigned long key) 218ftrace_add_hash(struct dyn_ftrace *node, unsigned long key)
219{ 219{
220 hlist_add_head(&node->node, &ftrace_hash[key]); 220 hlist_add_head(&node->node, &ftrace_hash[key]);
221} 221}
222 222
223static notrace void ftrace_free_rec(struct dyn_ftrace *rec) 223static void ftrace_free_rec(struct dyn_ftrace *rec)
224{ 224{
225 /* no locking, only called from kstop_machine */ 225 /* no locking, only called from kstop_machine */
226 226
@@ -229,7 +229,7 @@ static notrace void ftrace_free_rec(struct dyn_ftrace *rec)
229 rec->flags |= FTRACE_FL_FREE; 229 rec->flags |= FTRACE_FL_FREE;
230} 230}
231 231
232static notrace struct dyn_ftrace *ftrace_alloc_dyn_node(unsigned long ip) 232static struct dyn_ftrace *ftrace_alloc_dyn_node(unsigned long ip)
233{ 233{
234 struct dyn_ftrace *rec; 234 struct dyn_ftrace *rec;
235 235
@@ -259,7 +259,7 @@ static notrace struct dyn_ftrace *ftrace_alloc_dyn_node(unsigned long ip)
259 return &ftrace_pages->records[ftrace_pages->index++]; 259 return &ftrace_pages->records[ftrace_pages->index++];
260} 260}
261 261
262static void notrace 262static void
263ftrace_record_ip(unsigned long ip) 263ftrace_record_ip(unsigned long ip)
264{ 264{
265 struct dyn_ftrace *node; 265 struct dyn_ftrace *node;
@@ -329,7 +329,7 @@ ftrace_record_ip(unsigned long ip)
329#define FTRACE_ADDR ((long)(ftrace_caller)) 329#define FTRACE_ADDR ((long)(ftrace_caller))
330#define MCOUNT_ADDR ((long)(mcount)) 330#define MCOUNT_ADDR ((long)(mcount))
331 331
332static void notrace 332static void
333__ftrace_replace_code(struct dyn_ftrace *rec, 333__ftrace_replace_code(struct dyn_ftrace *rec,
334 unsigned char *old, unsigned char *new, int enable) 334 unsigned char *old, unsigned char *new, int enable)
335{ 335{
@@ -405,7 +405,7 @@ __ftrace_replace_code(struct dyn_ftrace *rec,
405 } 405 }
406} 406}
407 407
408static void notrace ftrace_replace_code(int enable) 408static void ftrace_replace_code(int enable)
409{ 409{
410 unsigned char *new = NULL, *old = NULL; 410 unsigned char *new = NULL, *old = NULL;
411 struct dyn_ftrace *rec; 411 struct dyn_ftrace *rec;
@@ -430,7 +430,7 @@ static void notrace ftrace_replace_code(int enable)
430 } 430 }
431} 431}
432 432
433static notrace void ftrace_shutdown_replenish(void) 433static void ftrace_shutdown_replenish(void)
434{ 434{
435 if (ftrace_pages->next) 435 if (ftrace_pages->next)
436 return; 436 return;
@@ -439,7 +439,7 @@ static notrace void ftrace_shutdown_replenish(void)
439 ftrace_pages->next = (void *)get_zeroed_page(GFP_KERNEL); 439 ftrace_pages->next = (void *)get_zeroed_page(GFP_KERNEL);
440} 440}
441 441
442static notrace void 442static void
443ftrace_code_disable(struct dyn_ftrace *rec) 443ftrace_code_disable(struct dyn_ftrace *rec)
444{ 444{
445 unsigned long ip; 445 unsigned long ip;
@@ -458,7 +458,7 @@ ftrace_code_disable(struct dyn_ftrace *rec)
458 } 458 }
459} 459}
460 460
461static int notrace __ftrace_modify_code(void *data) 461static int __ftrace_modify_code(void *data)
462{ 462{
463 unsigned long addr; 463 unsigned long addr;
464 int *command = data; 464 int *command = data;
@@ -482,14 +482,14 @@ static int notrace __ftrace_modify_code(void *data)
482 return 0; 482 return 0;
483} 483}
484 484
485static void notrace ftrace_run_update_code(int command) 485static void ftrace_run_update_code(int command)
486{ 486{
487 stop_machine_run(__ftrace_modify_code, &command, NR_CPUS); 487 stop_machine_run(__ftrace_modify_code, &command, NR_CPUS);
488} 488}
489 489
490static ftrace_func_t saved_ftrace_func; 490static ftrace_func_t saved_ftrace_func;
491 491
492static void notrace ftrace_startup(void) 492static void ftrace_startup(void)
493{ 493{
494 int command = 0; 494 int command = 0;
495 495
@@ -514,7 +514,7 @@ static void notrace ftrace_startup(void)
514 mutex_unlock(&ftraced_lock); 514 mutex_unlock(&ftraced_lock);
515} 515}
516 516
517static void notrace ftrace_shutdown(void) 517static void ftrace_shutdown(void)
518{ 518{
519 int command = 0; 519 int command = 0;
520 520
@@ -539,7 +539,7 @@ static void notrace ftrace_shutdown(void)
539 mutex_unlock(&ftraced_lock); 539 mutex_unlock(&ftraced_lock);
540} 540}
541 541
542static void notrace ftrace_startup_sysctl(void) 542static void ftrace_startup_sysctl(void)
543{ 543{
544 int command = FTRACE_ENABLE_MCOUNT; 544 int command = FTRACE_ENABLE_MCOUNT;
545 545
@@ -557,7 +557,7 @@ static void notrace ftrace_startup_sysctl(void)
557 mutex_unlock(&ftraced_lock); 557 mutex_unlock(&ftraced_lock);
558} 558}
559 559
560s