Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140747
b: refs/heads/master
c: e68746a
h: refs/heads/master
i:
  140745: 048458e
  140743: 3f3638b
v: v3
  • Loading branch information
Steven Rostedt committed Feb 16, 2009
1 parent d35e63e commit 1c118de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: 64e7c440618998fd69eee6ab490b042d12248021
refs/heads/master: e68746a271eb3393a2183840be9e903caddf765b
14 changes: 8 additions & 6 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,8 +1153,6 @@ static void ftrace_match_records(char *buff, int len, int enable)

/* should not be called from interrupt context */
spin_lock(&ftrace_lock);
if (enable)
ftrace_filtered = 1;
do_for_each_ftrace_rec(pg, rec) {

if (rec->flags & FTRACE_FL_FAILED)
Expand All @@ -1166,7 +1164,12 @@ static void ftrace_match_records(char *buff, int len, int enable)
else
rec->flags |= flag;
}

/*
* Only enable filtering if we have a function that
* is filtered on.
*/
if (enable && (rec->flags & FTRACE_FL_FILTER))
ftrace_filtered = 1;
} while_for_each_ftrace_rec();
spin_unlock(&ftrace_lock);
}
Expand Down Expand Up @@ -1217,9 +1220,6 @@ static void ftrace_match_module_records(char *buff, char *mod, int enable)

/* should not be called from interrupt context */
spin_lock(&ftrace_lock);
if (enable)
ftrace_filtered = 1;

do_for_each_ftrace_rec(pg, rec) {

if (rec->flags & FTRACE_FL_FAILED)
Expand All @@ -1232,6 +1232,8 @@ static void ftrace_match_module_records(char *buff, char *mod, int enable)
else
rec->flags |= flag;
}
if (enable && (rec->flags & FTRACE_FL_FILTER))
ftrace_filtered = 1;

} while_for_each_ftrace_rec();
spin_unlock(&ftrace_lock);
Expand Down

0 comments on commit 1c118de

Please sign in to comment.