linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Change IBS PMU to use perf_hw_context
@ 2012-12-14 20:57 suravee.suthikulpanit
  2012-12-16  9:04 ` Ingo Molnar
  0 siblings, 1 reply; 6+ messages in thread
From: suravee.suthikulpanit @ 2012-12-14 20:57 UTC (permalink / raw)
  To: a.p.zijlstra, paulus, mingo, acme, tglx, hpa, rric, x86, linux-kernel
  Cc: suravee.suthikulpanit, jacob.shin

From: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>

Currently, the AMD IBS PMU initialize pmu.task_ctx_nr to perf_invalid_context
which only allows IBS to be running only in system-wide mode (e.g. perf record -a).
IBS hardware is available in each core and should be per-context.  
This patch modifies the task_ctx_nr to use the perf_hw_context (default) instead.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>

diff --git a/arch/x86/kernel/cpu/perf_event_amd_ibs.c b/arch/x86/kernel/cpu/perf_event_amd_ibs.c
index 6336bcb..08fa71a 100644
--- a/arch/x86/kernel/cpu/perf_event_amd_ibs.c
+++ b/arch/x86/kernel/cpu/perf_event_amd_ibs.c
@@ -466,8 +466,6 @@ static struct attribute *ibs_op_format_attrs[] = {
 
 static struct perf_ibs perf_ibs_fetch = {
 	.pmu = {
-		.task_ctx_nr	= perf_invalid_context,
-
 		.event_init	= perf_ibs_init,
 		.add		= perf_ibs_add,
 		.del		= perf_ibs_del,
@@ -490,8 +488,6 @@ static struct perf_ibs perf_ibs_fetch = {
 
 static struct perf_ibs perf_ibs_op = {
 	.pmu = {
-		.task_ctx_nr	= perf_invalid_context,
-
 		.event_init	= perf_ibs_init,
 		.add		= perf_ibs_add,
 		.del		= perf_ibs_del,
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-18 16:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-14 20:57 [PATCH 1/1] Change IBS PMU to use perf_hw_context suravee.suthikulpanit
2012-12-16  9:04 ` Ingo Molnar
2012-12-17  9:44   ` Robert Richter
2012-12-18 22:54     ` Suravee Suthikulpanit
2013-01-16 22:19       ` Suravee Suthikulpanit
2013-06-18 16:03         ` Suravee Suthikulanit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).