diff options
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 576f4fa2af0d..789e14eb09a5 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -684,6 +684,7 @@ static struct dentry * | |||
684 | event_subsystem_dir(const char *name, struct dentry *d_events) | 684 | event_subsystem_dir(const char *name, struct dentry *d_events) |
685 | { | 685 | { |
686 | struct event_subsystem *system; | 686 | struct event_subsystem *system; |
687 | struct dentry *entry; | ||
687 | 688 | ||
688 | /* First see if we did not already create this dir */ | 689 | /* First see if we did not already create this dir */ |
689 | list_for_each_entry(system, &event_subsystems, list) { | 690 | list_for_each_entry(system, &event_subsystems, list) { |
@@ -712,6 +713,12 @@ event_subsystem_dir(const char *name, struct dentry *d_events) | |||
712 | 713 | ||
713 | system->preds = NULL; | 714 | system->preds = NULL; |
714 | 715 | ||
716 | entry = debugfs_create_file("filter", 0644, system->entry, system, | ||
717 | &ftrace_subsystem_filter_fops); | ||
718 | if (!entry) | ||
719 | pr_warning("Could not create debugfs " | ||
720 | "'%s/filter' entry\n", name); | ||
721 | |||
715 | return system->entry; | 722 | return system->entry; |
716 | } | 723 | } |
717 | 724 | ||