Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350079
b: refs/heads/master
c: 1ff6fee
h: refs/heads/master
i:
  350077: c61979b
  350075: 1af2399
  350071: 96fd460
  350063: d72c83e
  350047: d06e0db
  350015: 6dfbc2c
  349951: fdb8f76
v: v3
  • Loading branch information
Oleg Nesterov committed Feb 8, 2013
1 parent fe85efc commit d406930
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 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: e591c8d78e49e6206935cf31c4d2b603bbb29166
refs/heads/master: 1ff6fee5e62c57d5923b805bb4206acb7953f16e
21 changes: 13 additions & 8 deletions trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,14 +614,19 @@ static int prepare_uprobe(struct uprobe *uprobe, struct file *file,

static bool filter_chain(struct uprobe *uprobe)
{
/*
* TODO:
* for_each_consumer(uc)
* if (uc->filter(...))
* return true;
* return false;
*/
return uprobe->consumers != NULL;
struct uprobe_consumer *uc;
bool ret = false;

down_read(&uprobe->consumer_rwsem);
for (uc = uprobe->consumers; uc; uc = uc->next) {
/* TODO: ret = uc->filter(...) */
ret = true;
if (ret)
break;
}
up_read(&uprobe->consumer_rwsem);

return ret;
}

static int
Expand Down

0 comments on commit d406930

Please sign in to comment.