diff options
Diffstat (limited to 'kernel/trace/trace_stat.c')
| -rw-r--r-- | kernel/trace/trace_stat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/trace/trace_stat.c b/kernel/trace/trace_stat.c index 75e19e86c954..6cf935316769 100644 --- a/kernel/trace/trace_stat.c +++ b/kernel/trace/trace_stat.c | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | #include <linux/list.h> | 12 | #include <linux/list.h> |
| 13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
| 14 | #include <linux/rbtree.h> | 14 | #include <linux/rbtree.h> |
| 15 | #include <linux/debugfs.h> | 15 | #include <linux/tracefs.h> |
| 16 | #include "trace_stat.h" | 16 | #include "trace_stat.h" |
| 17 | #include "trace.h" | 17 | #include "trace.h" |
| 18 | 18 | ||
| @@ -65,7 +65,7 @@ static void reset_stat_session(struct stat_session *session) | |||
| 65 | 65 | ||
| 66 | static void destroy_session(struct stat_session *session) | 66 | static void destroy_session(struct stat_session *session) |
| 67 | { | 67 | { |
| 68 | debugfs_remove(session->file); | 68 | tracefs_remove(session->file); |
| 69 | __reset_stat_session(session); | 69 | __reset_stat_session(session); |
| 70 | mutex_destroy(&session->stat_mutex); | 70 | mutex_destroy(&session->stat_mutex); |
| 71 | kfree(session); | 71 | kfree(session); |
| @@ -279,9 +279,9 @@ static int tracing_stat_init(void) | |||
| 279 | if (IS_ERR(d_tracing)) | 279 | if (IS_ERR(d_tracing)) |
| 280 | return 0; | 280 | return 0; |
| 281 | 281 | ||
| 282 | stat_dir = debugfs_create_dir("trace_stat", d_tracing); | 282 | stat_dir = tracefs_create_dir("trace_stat", d_tracing); |
| 283 | if (!stat_dir) | 283 | if (!stat_dir) |
| 284 | pr_warning("Could not create debugfs " | 284 | pr_warning("Could not create tracefs " |
| 285 | "'trace_stat' entry\n"); | 285 | "'trace_stat' entry\n"); |
| 286 | return 0; | 286 | return 0; |
| 287 | } | 287 | } |
| @@ -291,7 +291,7 @@ static int init_stat_file(struct stat_session *session) | |||
| 291 | if (!stat_dir && tracing_stat_init()) | 291 | if (!stat_dir && tracing_stat_init()) |
| 292 | return -ENODEV; | 292 | return -ENODEV; |
| 293 | 293 | ||
| 294 | session->file = debugfs_create_file(session->ts->name, 0644, | 294 | session->file = tracefs_create_file(session->ts->name, 0644, |
| 295 | stat_dir, | 295 | stat_dir, |
| 296 | session, &tracing_stat_fops); | 296 | session, &tracing_stat_fops); |
| 297 | if (!session->file) | 297 | if (!session->file) |
