aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_kprobe.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-14 13:22:29 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-14 13:22:29 -0400
commit3f3c73de77b5598e9f87812ac4da9445090c3b4a (patch)
tree1b6ea5c10c273025c3d38dddda1975dc3d9a5070 /kernel/trace/trace_kprobe.c
parent9497d7380b9c450830190c75aa43b25c278bb1f9 (diff)
parenteae473581cf93dad94ca833aa961c033c6a43924 (diff)
Merge tag 'trace-4.1-tracefs' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracefs from Steven Rostedt: "This adds the new tracefs file system. This has been in linux-next for more than one release, as I had it ready for the 4.0 merge window, but a last minute thing that needed to go into Linux first had to be done. That was that perf hard coded the file system number when reading /sys/kernel/debugfs/tracing directory making sure that the path had the debugfs mount # before it would parse the tracing file. This broke other use cases of perf, and the check is removed. Now when mounting /sys/kernel/debug, tracefs is automatically mounted in /sys/kernel/debug/tracing such that old tools will still see that path as expected. But now system admins can mount tracefs directly and not need to mount debugfs, which can expose security issues. A new directory is created when tracefs is configured such that system admins can now mount it separately (/sys/kernel/tracing)" * tag 'trace-4.1-tracefs' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing: Have mkdir and rmdir be part of tracefs tracefs: Add directory /sys/kernel/tracing tracing: Automatically mount tracefs on debugfs/tracing tracing: Convert the tracing facility over to use tracefs tracefs: Add new tracefs file system tracing: Create cmdline tracer options on tracing fs init tracing: Only create tracer options files if directory exists debugfs: Provide a file creation function that also takes an initial size
Diffstat (limited to 'kernel/trace/trace_kprobe.c')
-rw-r--r--kernel/trace/trace_kprobe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index d73f565b4e06..ed998fbf09ce 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -1310,7 +1310,7 @@ static int unregister_kprobe_event(struct trace_kprobe *tk)
1310 return ret; 1310 return ret;
1311} 1311}
1312 1312
1313/* Make a debugfs interface for controlling probe points */ 1313/* Make a tracefs interface for controlling probe points */
1314static __init int init_kprobe_trace(void) 1314static __init int init_kprobe_trace(void)
1315{ 1315{
1316 struct dentry *d_tracer; 1316 struct dentry *d_tracer;
@@ -1323,20 +1323,20 @@ static __init int init_kprobe_trace(void)
1323 if (IS_ERR(d_tracer)) 1323 if (IS_ERR(d_tracer))
1324 return 0; 1324 return 0;
1325 1325
1326 entry = debugfs_create_file("kprobe_events", 0644, d_tracer, 1326 entry = tracefs_create_file("kprobe_events", 0644, d_tracer,
1327 NULL, &kprobe_events_ops); 1327 NULL, &kprobe_events_ops);
1328 1328
1329 /* Event list interface */ 1329 /* Event list interface */
1330 if (!entry) 1330 if (!entry)
1331 pr_warning("Could not create debugfs " 1331 pr_warning("Could not create tracefs "
1332 "'kprobe_events' entry\n"); 1332 "'kprobe_events' entry\n");
1333 1333
1334 /* Profile interface */ 1334 /* Profile interface */
1335 entry = debugfs_create_file("kprobe_profile", 0444, d_tracer, 1335 entry = tracefs_create_file("kprobe_profile", 0444, d_tracer,
1336 NULL, &kprobe_profile_ops); 1336 NULL, &kprobe_profile_ops);
1337 1337
1338 if (!entry) 1338 if (!entry)
1339 pr_warning("Could not create debugfs " 1339 pr_warning("Could not create tracefs "
1340 "'kprobe_profile' entry\n"); 1340 "'kprobe_profile' entry\n");
1341 return 0; 1341 return 0;
1342} 1342}