Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140909
b: refs/heads/master
c: 40e2681
h: refs/heads/master
i:
  140907: 7f397c5
v: v3
  • Loading branch information
Steven Rostedt committed Mar 10, 2009
1 parent 0c4a449 commit 7f477f1
Show file tree
Hide file tree
Showing 2 changed files with 16 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: ce8eb2bf05042452107e489782105d2e235cbdd0
refs/heads/master: 40e26815fafd3b8c4aced17b1f22e68ef33eb8db
18 changes: 15 additions & 3 deletions trunk/kernel/trace/trace_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static int ftrace_set_clr_event(char *buf, int set)
mutex_lock(&event_mutex);
events_for_each(call) {

if (!call->name)
if (!call->name || !call->regfunc)
continue;

if (match &&
Expand Down Expand Up @@ -207,8 +207,20 @@ t_next(struct seq_file *m, void *v, loff_t *pos)

(*pos)++;

if ((unsigned long)call >= (unsigned long)__stop_ftrace_events)
return NULL;
for (;;) {
if ((unsigned long)call >= (unsigned long)__stop_ftrace_events)
return NULL;

/*
* The ftrace subsystem is for showing formats only.
* They can not be enabled or disabled via the event files.
*/
if (call->regfunc)
break;

call++;
next = call;
}

m->private = ++next;

Expand Down

0 comments on commit 7f477f1

Please sign in to comment.