Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191061
b: refs/heads/master
c: 8f4aebd
h: refs/heads/master
i:
  191059: a4cfcd7
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Mar 10, 2010
1 parent 9036f9f commit 36891a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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: cc7f00820b2f3be656569c41158d9323e425bcfe
refs/heads/master: 8f4aebd2be9892bf8fb79a2d8576d3f3ee7f00f6
15 changes: 3 additions & 12 deletions trunk/arch/x86/kernel/cpu/perf_event_intel_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,18 +476,16 @@ static void intel_pmu_drain_pebs_core(struct pt_regs *iregs)
if (!event || !ds || !x86_pmu.pebs)
return;

intel_pmu_pebs_disable_all();

at = (struct pebs_record_core *)(unsigned long)ds->pebs_buffer_base;
top = (struct pebs_record_core *)(unsigned long)ds->pebs_index;

if (top <= at)
goto out;
return;

ds->pebs_index = ds->pebs_buffer_base;

if (!intel_pmu_save_and_restart(event))
goto out;
return;

perf_sample_data_init(&data, 0);
data.period = event->hw.last_period;
Expand Down Expand Up @@ -528,9 +526,6 @@ static void intel_pmu_drain_pebs_core(struct pt_regs *iregs)

if (perf_event_overflow(event, 1, &data, &regs))
x86_pmu_stop(event);

out:
intel_pmu_pebs_enable_all();
}

static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)
Expand All @@ -547,13 +542,11 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)
if (!ds || !x86_pmu.pebs)
return;

intel_pmu_pebs_disable_all();

at = (struct pebs_record_nhm *)(unsigned long)ds->pebs_buffer_base;
top = (struct pebs_record_nhm *)(unsigned long)ds->pebs_index;

if (top <= at)
goto out;
return;

ds->pebs_index = ds->pebs_buffer_base;

Expand Down Expand Up @@ -604,8 +597,6 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)
if (perf_event_overflow(event, 1, &data, &regs))
x86_pmu_stop(event);
}
out:
intel_pmu_pebs_enable_all();
}

/*
Expand Down

0 comments on commit 36891a6

Please sign in to comment.