Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228932
b: refs/heads/master
c: 5632ab1
h: refs/heads/master
v: v3
  • Loading branch information
Stephane Eranian authored and Ingo Molnar committed Jan 7, 2011
1 parent 1d6c362 commit c7b6bc3
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 0b3fcf178deefd7b64154c2c0760a2c63df0b74f
refs/heads/master: 5632ab12e9e1fcd7e94058567e181d8f35e83798
16 changes: 8 additions & 8 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ static void __perf_install_in_context(void *info)

add_event_to_ctx(event, ctx);

if (event->cpu != -1 && event->cpu != smp_processor_id())
if (!event_filter_match(event))
goto unlock;

/*
Expand Down Expand Up @@ -1094,7 +1094,7 @@ static void __perf_event_enable(void *info)
goto unlock;
__perf_event_mark_enabled(event, ctx);

if (event->cpu != -1 && event->cpu != smp_processor_id())
if (!event_filter_match(event))
goto unlock;

/*
Expand Down Expand Up @@ -1441,7 +1441,7 @@ ctx_pinned_sched_in(struct perf_event_context *ctx,
list_for_each_entry(event, &ctx->pinned_groups, group_entry) {
if (event->state <= PERF_EVENT_STATE_OFF)
continue;
if (event->cpu != -1 && event->cpu != smp_processor_id())
if (!event_filter_match(event))
continue;

if (group_can_go_on(event, cpuctx, 1))
Expand Down Expand Up @@ -1473,7 +1473,7 @@ ctx_flexible_sched_in(struct perf_event_context *ctx,
* Listen to the 'cpu' scheduling filter constraint
* of events:
*/
if (event->cpu != -1 && event->cpu != smp_processor_id())
if (!event_filter_match(event))
continue;

if (group_can_go_on(event, cpuctx, can_add_hw)) {
Expand Down Expand Up @@ -1700,7 +1700,7 @@ static void perf_ctx_adjust_freq(struct perf_event_context *ctx, u64 period)
if (event->state != PERF_EVENT_STATE_ACTIVE)
continue;

if (event->cpu != -1 && event->cpu != smp_processor_id())
if (!event_filter_match(event))
continue;

hwc = &event->hw;
Expand Down Expand Up @@ -3899,7 +3899,7 @@ static int perf_event_task_match(struct perf_event *event)
if (event->state < PERF_EVENT_STATE_INACTIVE)
return 0;

if (event->cpu != -1 && event->cpu != smp_processor_id())
if (!event_filter_match(event))
return 0;

if (event->attr.comm || event->attr.mmap ||
Expand Down Expand Up @@ -4036,7 +4036,7 @@ static int perf_event_comm_match(struct perf_event *event)
if (event->state < PERF_EVENT_STATE_INACTIVE)
return 0;

if (event->cpu != -1 && event->cpu != smp_processor_id())
if (!event_filter_match(event))
return 0;

if (event->attr.comm)
Expand Down Expand Up @@ -4184,7 +4184,7 @@ static int perf_event_mmap_match(struct perf_event *event,
if (event->state < PERF_EVENT_STATE_INACTIVE)
return 0;

if (event->cpu != -1 && event->cpu != smp_processor_id())
if (!event_filter_match(event))
return 0;

if ((!executable && event->attr.mmap_data) ||
Expand Down

0 comments on commit c7b6bc3

Please sign in to comment.