Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140910
b: refs/heads/master
c: 2314c4a
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt committed Mar 10, 2009
1 parent 7f477f1 commit 157f8c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40e26815fafd3b8c4aced17b1f22e68ef33eb8db
refs/heads/master: 2314c4ae1461c9e8b26cf8b9a851f280bc5769e1
14 changes: 14 additions & 0 deletions trunk/kernel/trace/trace_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,13 @@ static const struct seq_operations show_set_event_seq_ops = {
.stop = t_stop,
};

static const struct file_operations ftrace_avail_fops = {
.open = ftrace_event_seq_open,
.read = seq_read,
.llseek = seq_lseek,
.release = seq_release,
};

static const struct file_operations ftrace_set_event_fops = {
.open = ftrace_event_seq_open,
.read = seq_read,
Expand Down Expand Up @@ -569,6 +576,13 @@ static __init int event_trace_init(void)
if (!d_tracer)
return 0;

entry = debugfs_create_file("available_events", 0444, d_tracer,
(void *)&show_event_seq_ops,
&ftrace_avail_fops);
if (!entry)
pr_warning("Could not create debugfs "
"'available_events' entry\n");

entry = debugfs_create_file("set_event", 0644, d_tracer,
(void *)&show_set_event_seq_ops,
&ftrace_set_event_fops);
Expand Down

0 comments on commit 157f8c9

Please sign in to comment.