Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191054
b: refs/heads/master
c: 7e1a40d
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Mar 10, 2010
1 parent 97f02b3 commit a7570a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8db909a7e3c888b5d45aef7650d74ccebe3ce725
refs/heads/master: 7e1a40dda619b0483fbe0740494ed2c2a1f05289
14 changes: 14 additions & 0 deletions trunk/arch/x86/kernel/cpu/perf_event_intel_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ static void intel_pmu_drain_pebs_core(struct pt_regs *iregs)
struct perf_event *event = cpuc->events[0]; /* PMC0 only */
struct pebs_record_core *at, *top;
struct perf_sample_data data;
struct perf_raw_record raw;
struct pt_regs regs;
int n;

Expand All @@ -479,6 +480,12 @@ static void intel_pmu_drain_pebs_core(struct pt_regs *iregs)
perf_sample_data_init(&data, 0);
data.period = event->hw.last_period;

if (event->attr.sample_type & PERF_SAMPLE_RAW) {
raw.size = x86_pmu.pebs_record_size;
raw.data = at;
data.raw = &raw;
}

n = top - at;

/*
Expand Down Expand Up @@ -521,6 +528,7 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)
struct pebs_record_nhm *at, *top;
struct perf_sample_data data;
struct perf_event *event = NULL;
struct perf_raw_record raw;
struct pt_regs regs;
int bit, n;

Expand Down Expand Up @@ -562,6 +570,12 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)
perf_sample_data_init(&data, 0);
data.period = event->hw.last_period;

if (event->attr.sample_type & PERF_SAMPLE_RAW) {
raw.size = x86_pmu.pebs_record_size;
raw.data = at;
data.raw = &raw;
}

/*
* See the comment in intel_pmu_drain_pebs_core()
*/
Expand Down

0 comments on commit a7570a8

Please sign in to comment.