Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298573
b: refs/heads/master
c: 7b8e6da
h: refs/heads/master
i:
  298571: fae3c59
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 3, 2012
1 parent 6f5717f commit cfe5f05
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 6308191f6f55d3629c7dbe72dfb856ad9fa560fd
refs/heads/master: 7b8e6da46b921d30ac1553cac56d8fb74f0b431d
13 changes: 13 additions & 0 deletions trunk/arch/x86/kernel/cpu/perf_event_p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,17 @@ static int p4_pmu_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign
return num ? -EINVAL : 0;
}

PMU_FORMAT_ATTR(cccr, "config:0-31" );
PMU_FORMAT_ATTR(escr, "config:32-62");
PMU_FORMAT_ATTR(ht, "config:63" );

static struct attribute *intel_p4_formats_attr[] = {
&format_attr_cccr.attr,
&format_attr_escr.attr,
&format_attr_ht.attr,
NULL,
};

static __initconst const struct x86_pmu p4_pmu = {
.name = "Netburst P4/Xeon",
.handle_irq = p4_pmu_handle_irq,
Expand Down Expand Up @@ -1305,6 +1316,8 @@ static __initconst const struct x86_pmu p4_pmu = {
* the former idea is taken from OProfile code
*/
.perfctr_second_write = 1,

.format_attrs = intel_p4_formats_attr,
};

__init int p4_pmu_init(void)
Expand Down

0 comments on commit cfe5f05

Please sign in to comment.