Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156139
b: refs/heads/master
c: 8782711
h: refs/heads/master
i:
  156137: c04d1e1
  156135: 4553461
v: v3
  • Loading branch information
Li Zefan authored and Steven Rostedt committed Jul 23, 2009
1 parent 29d415f commit b96f44c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d8cc1ab793993c886c62abf77c93287df33ffd8b
refs/heads/master: 87827111a5538633b18e5c641ced673c4c2bb6ce
15 changes: 12 additions & 3 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2595,6 +2595,14 @@ ftrace_graph_open(struct inode *inode, struct file *file)
return ret;
}

static int
ftrace_graph_release(struct inode *inode, struct file *file)
{
if (file->f_mode & FMODE_READ)
seq_release(inode, file);
return 0;
}

static int
ftrace_set_func(unsigned long *array, int *idx, char *buffer)
{
Expand Down Expand Up @@ -2724,9 +2732,10 @@ ftrace_graph_write(struct file *file, const char __user *ubuf,
}

static const struct file_operations ftrace_graph_fops = {
.open = ftrace_graph_open,
.read = seq_read,
.write = ftrace_graph_write,
.open = ftrace_graph_open,
.read = seq_read,
.write = ftrace_graph_write,
.release = ftrace_graph_release,
};
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */

Expand Down

0 comments on commit b96f44c

Please sign in to comment.