Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285067
b: refs/heads/master
c: 69a3083
h: refs/heads/master
i:
  285065: 2c68611
  285063: ee47664
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Dec 21, 2011
1 parent 568da61 commit a4c00fe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 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: fc13cb0ce45296f331263a6034aa1814203e1ac3
refs/heads/master: 69a3083c4a7df0322d97bb2b43a33cb12af8131a
5 changes: 3 additions & 2 deletions trunk/include/linux/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ enum {
FTRACE_ITER_FILTER = (1 << 0),
FTRACE_ITER_NOTRACE = (1 << 1),
FTRACE_ITER_PRINTALL = (1 << 2),
FTRACE_ITER_HASH = (1 << 3),
FTRACE_ITER_ENABLED = (1 << 4),
FTRACE_ITER_DO_HASH = (1 << 3),
FTRACE_ITER_HASH = (1 << 4),
FTRACE_ITER_ENABLED = (1 << 5),
};

void arch_ftrace_update_code(int command);
Expand Down
16 changes: 8 additions & 8 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,9 @@ static void *t_hash_start(struct seq_file *m, loff_t *pos)
void *p = NULL;
loff_t l;

if (!(iter->flags & FTRACE_ITER_DO_HASH))
return NULL;

if (iter->func_pos > *pos)
return NULL;

Expand Down Expand Up @@ -2343,12 +2346,8 @@ static void *t_start(struct seq_file *m, loff_t *pos)
break;
}

if (!p) {
if (iter->flags & FTRACE_ITER_FILTER)
return t_hash_start(m, pos);

return NULL;
}
if (!p)
return t_hash_start(m, pos);

return iter;
}
Expand Down Expand Up @@ -2541,8 +2540,9 @@ ftrace_regex_open(struct ftrace_ops *ops, int flag,
static int
ftrace_filter_open(struct inode *inode, struct file *file)
{
return ftrace_regex_open(&global_ops, FTRACE_ITER_FILTER,
inode, file);
return ftrace_regex_open(&global_ops,
FTRACE_ITER_FILTER | FTRACE_ITER_DO_HASH,
inode, file);
}

static int
Expand Down

0 comments on commit a4c00fe

Please sign in to comment.