diff options
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index d132997ab756..64ec4d278ffb 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -680,7 +680,6 @@ static struct dentry * | |||
680 | event_subsystem_dir(const char *name, struct dentry *d_events) | 680 | event_subsystem_dir(const char *name, struct dentry *d_events) |
681 | { | 681 | { |
682 | struct event_subsystem *system; | 682 | struct event_subsystem *system; |
683 | struct dentry *entry; | ||
684 | 683 | ||
685 | /* First see if we did not already create this dir */ | 684 | /* First see if we did not already create this dir */ |
686 | list_for_each_entry(system, &event_subsystems, list) { | 685 | list_for_each_entry(system, &event_subsystems, list) { |
@@ -709,12 +708,6 @@ event_subsystem_dir(const char *name, struct dentry *d_events) | |||
709 | 708 | ||
710 | system->preds = NULL; | 709 | system->preds = NULL; |
711 | 710 | ||
712 | entry = debugfs_create_file("filter", 0644, system->entry, system, | ||
713 | &ftrace_subsystem_filter_fops); | ||
714 | if (!entry) | ||
715 | pr_warning("Could not create debugfs " | ||
716 | "'%s/filter' entry\n", name); | ||
717 | |||
718 | return system->entry; | 711 | return system->entry; |
719 | } | 712 | } |
720 | 713 | ||
@@ -770,14 +763,13 @@ event_create_dir(struct ftrace_event_call *call, struct dentry *d_events) | |||
770 | " events/%s\n", call->name); | 763 | " events/%s\n", call->name); |
771 | return ret; | 764 | return ret; |
772 | } | 765 | } |
766 | entry = debugfs_create_file("filter", 0644, call->dir, call, | ||
767 | &ftrace_event_filter_fops); | ||
768 | if (!entry) | ||
769 | pr_warning("Could not create debugfs " | ||
770 | "'%s/filter' entry\n", call->name); | ||
773 | } | 771 | } |
774 | 772 | ||
775 | entry = debugfs_create_file("filter", 0644, call->dir, call, | ||
776 | &ftrace_event_filter_fops); | ||
777 | if (!entry) | ||
778 | pr_warning("Could not create debugfs " | ||
779 | "'%s/filter' entry\n", call->name); | ||
780 | |||
781 | /* A trace may not want to export its format */ | 773 | /* A trace may not want to export its format */ |
782 | if (!call->show_format) | 774 | if (!call->show_format) |
783 | return 0; | 775 | return 0; |