Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121293
b: refs/heads/master
c: ea3a6d6
h: refs/heads/master
i:
  121291: 26f0828
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Dec 18, 2008
1 parent a2ac381 commit 3d7d2da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 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: e05a43b744fb9518cbf8539a7ef33164ac60a70f
refs/heads/master: ea3a6d6d60b2504c573fe3415f6617e8310c0236
15 changes: 13 additions & 2 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,13 @@ ftrace_match(unsigned char *buff, int len, int enable)
int type = MATCH_FULL;
unsigned long flag = enable ? FTRACE_FL_FILTER : FTRACE_FL_NOTRACE;
unsigned i, match = 0, search_len = 0;
int not = 0;

if (buff[0] == '!') {
not = 1;
buff++;
len--;
}

for (i = 0; i < len; i++) {
if (buff[i] == '*') {
Expand Down Expand Up @@ -1100,8 +1107,12 @@ ftrace_match(unsigned char *buff, int len, int enable)
matched = 1;
break;
}
if (matched)
rec->flags |= flag;
if (matched) {
if (not)
rec->flags &= ~flag;
else
rec->flags |= flag;
}
}
pg = pg->next;
}
Expand Down

0 comments on commit 3d7d2da

Please sign in to comment.