Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121165
b: refs/heads/master
c: 0429149
h: refs/heads/master
i:
  121163: ebdd7db
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Nov 23, 2008
1 parent d9cead6 commit 49cb660
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 2bcd521a684cc94befbe2ce7d5b613c841b0d304
refs/heads/master: 0429149fb5e01edc410648591c19095d2074ee00
10 changes: 5 additions & 5 deletions trunk/kernel/trace/trace_branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ struct ftrace_pointer {
static void *
t_next(struct seq_file *m, void *v, loff_t *pos)
{
struct ftrace_pointer *f = m->private;
const struct ftrace_pointer *f = m->private;
struct ftrace_branch_data *p = v;

(*pos)++;
Expand Down Expand Up @@ -224,7 +224,7 @@ static void t_stop(struct seq_file *m, void *p)

static int t_show(struct seq_file *m, void *v)
{
struct ftrace_pointer *fp = m->private;
const struct ftrace_pointer *fp = m->private;
struct ftrace_branch_data *p = v;
const char *f;
long percent;
Expand Down Expand Up @@ -296,7 +296,7 @@ static const struct file_operations tracing_branch_fops = {
extern unsigned long __start_branch_profile[];
extern unsigned long __stop_branch_profile[];

static struct ftrace_pointer ftrace_branch_pos = {
static const struct ftrace_pointer ftrace_branch_pos = {
.start = __start_branch_profile,
.stop = __stop_branch_profile,
.hit = 1,
Expand All @@ -320,15 +320,15 @@ static __init int ftrace_branch_init(void)
d_tracer = tracing_init_dentry();

entry = debugfs_create_file("profile_annotated_branch", 0444, d_tracer,
&ftrace_annotated_branch_pos,
(void *)&ftrace_annotated_branch_pos,
&tracing_branch_fops);
if (!entry)
pr_warning("Could not create debugfs "
"'profile_annotatet_branch' entry\n");

#ifdef CONFIG_PROFILE_ALL_BRANCHES
entry = debugfs_create_file("profile_branch", 0444, d_tracer,
&ftrace_branch_pos,
(void *)&ftrace_branch_pos,
&tracing_branch_fops);
if (!entry)
pr_warning("Could not create debugfs"
Expand Down

0 comments on commit 49cb660

Please sign in to comment.