Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179374
b: refs/heads/master
c: 16da27a
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Steven Rostedt committed Jan 15, 2010
1 parent 29765f6 commit 3c77f9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: b2af211f284eb1bef19fbb85fc8ef551bb1e7460
refs/heads/master: 16da27a8bc7a0d050686d1b2e9efb53fab9ed226
7 changes: 3 additions & 4 deletions trunk/kernel/trace/trace_events_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,9 @@ static int filter_pred_pchar(struct filter_pred *pred, void *event,
{
char **addr = (char **)(event + pred->offset);
int cmp, match;
int len = strlen(*addr) + 1; /* including tailing '\0' */

cmp = pred->regex.match(*addr, &pred->regex, pred->regex.field_len);
cmp = pred->regex.match(*addr, &pred->regex, len);

match = cmp ^ pred->not;

Expand Down Expand Up @@ -782,10 +783,8 @@ static int filter_add_pred(struct filter_parse_state *ps,
pred->regex.field_len = field->size;
} else if (field->filter_type == FILTER_DYN_STRING)
fn = filter_pred_strloc;
else {
else
fn = filter_pred_pchar;
pred->regex.field_len = strlen(pred->regex.pattern);
}
} else {
if (field->is_signed)
ret = strict_strtoll(pred->regex.pattern, 0, &val);
Expand Down

0 comments on commit 3c77f9d

Please sign in to comment.