diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:51 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 14:58:28 -0400 |
commit | e309b41dd65aa953f86765eeeecc941d8e1e8b8f (patch) | |
tree | 295d4ed6e2a766607f889a04b977ca27cc24929e /kernel/trace/ftrace.c | |
parent | b53dde9d34f2df396540988ebc65c33400f57b04 (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/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 66 |
1 files changed, 33 insertions, 33 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 */ |
54 | EXPORT_SYMBOL(mcount); | 54 | EXPORT_SYMBOL(mcount); |
55 | 55 | ||
56 | notrace void ftrace_list_func(unsigned long ip, unsigned long parent_ip) | 56 | void 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 | ||
82 | static int notrace __register_ftrace_function(struct ftrace_ops *ops) | 82 | static 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 | ||
113 | static int notrace __unregister_ftrace_function(struct ftrace_ops *ops) | 113 | static 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 | ||
198 | static struct dyn_ftrace *ftrace_free_records; | 198 | static struct dyn_ftrace *ftrace_free_records; |
199 | 199 | ||
200 | static inline int notrace | 200 | static inline int |
201 | ftrace_ip_in_hash(unsigned long ip, unsigned long key) | 201 | ftrace_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 | ||
217 | static inline void notrace | 217 | static inline void |
218 | ftrace_add_hash(struct dyn_ftrace *node, unsigned long key) | 218 | ftrace_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 | ||
223 | static notrace void ftrace_free_rec(struct dyn_ftrace *rec) | 223 | static 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 | ||
232 | static notrace struct dyn_ftrace *ftrace_alloc_dyn_node(unsigned long ip) | 232 | static 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 | ||
262 | static void notrace | 262 | static void |
263 | ftrace_record_ip(unsigned long ip) | 263 | ftrace_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 | ||
332 | static void notrace | 332 | static 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 | ||
408 | static void notrace ftrace_replace_code(int enable) | 408 | static 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 | ||
433 | static notrace void ftrace_shutdown_replenish(void) | 433 | static 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 | ||
442 | static notrace void | 442 | static void |
443 | ftrace_code_disable(struct dyn_ftrace *rec) | 443 | ftrace_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 | ||
461 | static int notrace __ftrace_modify_code(void *data) | 461 | static 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 | ||
485 | static void notrace ftrace_run_update_code(int command) | 485 | static 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 | ||
490 | static ftrace_func_t saved_ftrace_func; | 490 | static ftrace_func_t saved_ftrace_func; |
491 | 491 | ||
492 | static void notrace ftrace_startup(void) | 492 | static 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 | ||
517 | static void notrace ftrace_shutdown(void) | 517 | static 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 | ||
542 | static void notrace ftrace_startup_sysctl(void) | 542 | static 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 | ||
560 | static void notrace ftrace_shutdown_sysctl(void) | 560 | static void ftrace_shutdown_sysctl(void) |
561 | { | 561 | { |
562 | int command = FTRACE_DISABLE_MCOUNT; | 562 | int command = FTRACE_DISABLE_MCOUNT; |
563 | 563 | ||
@@ -577,7 +577,7 @@ static cycle_t ftrace_update_time; | |||
577 | static unsigned long ftrace_update_cnt; | 577 | static unsigned long ftrace_update_cnt; |
578 | unsigned long ftrace_update_tot_cnt; | 578 | unsigned long ftrace_update_tot_cnt; |
579 | 579 | ||
580 | static int notrace __ftrace_update_code(void *ignore) | 580 | static int __ftrace_update_code(void *ignore) |
581 | { | 581 | { |
582 | struct dyn_ftrace *p; | 582 | struct dyn_ftrace *p; |
583 | struct hlist_head head; | 583 | struct hlist_head head; |
@@ -618,7 +618,7 @@ static int notrace __ftrace_update_code(void *ignore) | |||
618 | return 0; | 618 | return 0; |
619 | } | 619 | } |
620 | 620 | ||
621 | static void notrace ftrace_update_code(void) | 621 | static void ftrace_update_code(void) |
622 | { | 622 | { |
623 | if (unlikely(ftrace_disabled)) | 623 | if (unlikely(ftrace_disabled)) |
624 | return; | 624 | return; |
@@ -626,7 +626,7 @@ static void notrace ftrace_update_code(void) | |||
626 | stop_machine_run(__ftrace_update_code, NULL, NR_CPUS); | 626 | stop_machine_run(__ftrace_update_code, NULL, NR_CPUS); |
627 | } | 627 | } |
628 | 628 | ||
629 | static int notrace ftraced(void *ignore) | 629 | static int ftraced(void *ignore) |
630 | { | 630 | { |
631 | unsigned long usecs; | 631 | unsigned long usecs; |
632 | 632 | ||
@@ -733,7 +733,7 @@ struct ftrace_iterator { | |||
733 | unsigned filtered; | 733 | unsigned filtered; |
734 | }; | 734 | }; |
735 | 735 | ||
736 | static void notrace * | 736 | static void * |
737 | t_next(struct seq_file *m, void *v, loff_t *pos) | 737 | t_next(struct seq_file *m, void *v, loff_t *pos) |
738 | { | 738 | { |
739 | struct ftrace_iterator *iter = m->private; | 739 | struct ftrace_iterator *iter = m->private; |
@@ -806,7 +806,7 @@ static struct seq_operations show_ftrace_seq_ops = { | |||
806 | .show = t_show, | 806 | .show = t_show, |
807 | }; | 807 | }; |
808 | 808 | ||
809 | static int notrace | 809 | static int |
810 | ftrace_avail_open(struct inode *inode, struct file *file) | 810 | ftrace_avail_open(struct inode *inode, struct file *file) |
811 | { | 811 | { |
812 | struct ftrace_iterator *iter; | 812 | struct ftrace_iterator *iter; |
@@ -845,7 +845,7 @@ int ftrace_avail_release(struct inode *inode, struct file *file) | |||
845 | return 0; | 845 | return 0; |
846 | } | 846 | } |
847 | 847 | ||
848 | static void notrace ftrace_filter_reset(void) | 848 | static void ftrace_filter_reset(void) |
849 | { | 849 | { |
850 | struct ftrace_page *pg; | 850 | struct ftrace_page *pg; |
851 | struct dyn_ftrace *rec; | 851 | struct dyn_ftrace *rec; |
@@ -867,7 +867,7 @@ static void notrace ftrace_filter_reset(void) | |||
867 | preempt_enable(); | 867 | preempt_enable(); |
868 | } | 868 | } |
869 | 869 | ||
870 | static int notrace | 870 | static int |
871 | ftrace_filter_open(struct inode *inode, struct file *file) | 871 | ftrace_filter_open(struct inode *inode, struct file *file) |
872 | { | 872 | { |
873 | struct ftrace_iterator *iter; | 873 | struct ftrace_iterator *iter; |
@@ -903,7 +903,7 @@ ftrace_filter_open(struct inode *inode, struct file *file) | |||
903 | return ret; | 903 | return ret; |
904 | } | 904 | } |
905 | 905 | ||
906 | static ssize_t notrace | 906 | static ssize_t |
907 | ftrace_filter_read(struct file *file, char __user *ubuf, | 907 | ftrace_filter_read(struct file *file, char __user *ubuf, |
908 | size_t cnt, loff_t *ppos) | 908 | size_t cnt, loff_t *ppos) |
909 | { | 909 | { |
@@ -913,7 +913,7 @@ ftrace_filter_read(struct file *file, char __user *ubuf, | |||
913 | return -EPERM; | 913 | return -EPERM; |
914 | } | 914 | } |
915 | 915 | ||
916 | static loff_t notrace | 916 | static loff_t |
917 | ftrace_filter_lseek(struct file *file, loff_t offset, int origin) | 917 | ftrace_filter_lseek(struct file *file, loff_t offset, int origin) |
918 | { | 918 | { |
919 | loff_t ret; | 919 | loff_t ret; |
@@ -933,7 +933,7 @@ enum { | |||
933 | MATCH_END_ONLY, | 933 | MATCH_END_ONLY, |
934 | }; | 934 | }; |
935 | 935 | ||
936 | static void notrace | 936 | static void |
937 | ftrace_match(unsigned char *buff, int len) | 937 | ftrace_match(unsigned char *buff, int len) |
938 | { | 938 | { |
939 | char str[KSYM_SYMBOL_LEN]; | 939 | char str[KSYM_SYMBOL_LEN]; |
@@ -1002,7 +1002,7 @@ ftrace_match(unsigned char *buff, int len) | |||
1002 | preempt_enable(); | 1002 | preempt_enable(); |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | static ssize_t notrace | 1005 | static ssize_t |
1006 | ftrace_filter_write(struct file *file, const char __user *ubuf, | 1006 | ftrace_filter_write(struct file *file, const char __user *ubuf, |
1007 | size_t cnt, loff_t *ppos) | 1007 | size_t cnt, loff_t *ppos) |
1008 | { | 1008 | { |
@@ -1094,7 +1094,7 @@ ftrace_filter_write(struct file *file, const char __user *ubuf, | |||
1094 | * Filters denote which functions should be enabled when tracing is enabled. | 1094 | * Filters denote which functions should be enabled when tracing is enabled. |
1095 | * If @buf is NULL and reset is set, all functions will be enabled for tracing. | 1095 | * If @buf is NULL and reset is set, all functions will be enabled for tracing. |
1096 | */ | 1096 | */ |
1097 | notrace void ftrace_set_filter(unsigned char *buf, int len, int reset) | 1097 | void ftrace_set_filter(unsigned char *buf, int len, int reset) |
1098 | { | 1098 | { |
1099 | if (unlikely(ftrace_disabled)) | 1099 | if (unlikely(ftrace_disabled)) |
1100 | return; | 1100 | return; |
@@ -1107,7 +1107,7 @@ notrace void ftrace_set_filter(unsigned char *buf, int len, int reset) | |||
1107 | mutex_unlock(&ftrace_filter_lock); | 1107 | mutex_unlock(&ftrace_filter_lock); |
1108 | } | 1108 | } |
1109 | 1109 | ||
1110 | static int notrace | 1110 | static int |
1111 | ftrace_filter_release(struct inode *inode, struct file *file) | 1111 | ftrace_filter_release(struct inode *inode, struct file *file) |
1112 | { | 1112 | { |
1113 | struct seq_file *m = (struct seq_file *)file->private_data; | 1113 | struct seq_file *m = (struct seq_file *)file->private_data; |
@@ -1242,7 +1242,7 @@ static __init int ftrace_init_debugfs(void) | |||
1242 | 1242 | ||
1243 | fs_initcall(ftrace_init_debugfs); | 1243 | fs_initcall(ftrace_init_debugfs); |
1244 | 1244 | ||
1245 | static int __init notrace ftrace_dynamic_init(void) | 1245 | static int __init ftrace_dynamic_init(void) |
1246 | { | 1246 | { |
1247 | struct task_struct *p; | 1247 | struct task_struct *p; |
1248 | unsigned long addr; | 1248 | unsigned long addr; |
@@ -1352,7 +1352,7 @@ int unregister_ftrace_function(struct ftrace_ops *ops) | |||
1352 | return ret; | 1352 | return ret; |
1353 | } | 1353 | } |
1354 | 1354 | ||
1355 | notrace int | 1355 | int |
1356 | ftrace_enable_sysctl(struct ctl_table *table, int write, | 1356 | ftrace_enable_sysctl(struct ctl_table *table, int write, |
1357 | struct file *file, void __user *buffer, size_t *lenp, | 1357 | struct file *file, void __user *buffer, size_t *lenp, |
1358 | loff_t *ppos) | 1358 | loff_t *ppos) |