Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276147
b: refs/heads/master
c: bce34d1
h: refs/heads/master
i:
  276145: d0e02cf
  276143: 7070f89
v: v3
  • Loading branch information
Will Deacon committed Nov 17, 2011
1 parent c4fd35f commit 6bf2785
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 14e25c5eeb90d4f61cc94933307d04a19738ad2f
refs/heads/master: bce34d14428d35d9a06ddc10cd46ecef311764c9
8 changes: 7 additions & 1 deletion trunk/arch/arm/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,14 @@ validate_group(struct perf_event *event)
{
struct perf_event *sibling, *leader = event->group_leader;
struct pmu_hw_events fake_pmu;
DECLARE_BITMAP(fake_used_mask, ARMPMU_MAX_HWEVENTS);

memset(&fake_pmu, 0, sizeof(fake_pmu));
/*
* Initialise the fake PMU. We only need to populate the
* used_mask for the purposes of validation.
*/
memset(fake_used_mask, 0, sizeof(fake_used_mask));
fake_pmu.used_mask = fake_used_mask;

if (!validate_event(&fake_pmu, leader))
return -ENOSPC;
Expand Down

0 comments on commit 6bf2785

Please sign in to comment.