diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2009-03-05 08:57:21 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-06 16:13:15 +0100 |
commit | 73bf1b62f561fc8ecb00e2810efe4fe769f4933e (patch) | |
tree | 8c3b68141deb73003b59a4a26250223ec7b36c0a /arch | |
parent | 9ca0791dcaa666e8e8f4b4ca028b65b4bde9cb28 (diff) | |
download | linux-3.10-73bf1b62f561fc8ecb00e2810efe4fe769f4933e.tar.gz linux-3.10-73bf1b62f561fc8ecb00e2810efe4fe769f4933e.tar.bz2 linux-3.10-73bf1b62f561fc8ecb00e2810efe4fe769f4933e.zip |
x86, pebs: correct qualifier passed to ds_write_config() from ds_request_pebs()
ds_write_config() can write the BTS as well as the PEBS part of
the DS config. ds_request_pebs() passes the wrong qualifier, which
results in the wrong configuration to be written.
Reported-by: Stephane Eranian <eranian@googlemail.com>
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
LKML-Reference: <20090305085721.A22550@sedona.ch.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c index de7cdbda1c3..87b67e3a765 100644 --- a/arch/x86/kernel/ds.c +++ b/arch/x86/kernel/ds.c @@ -729,7 +729,7 @@ struct pebs_tracer *ds_request_pebs(struct task_struct *task, spin_unlock_irqrestore(&ds_lock, irq); - ds_write_config(tracer->ds.context, &tracer->trace.ds, ds_bts); + ds_write_config(tracer->ds.context, &tracer->trace.ds, ds_pebs); ds_resume_pebs(tracer); return tracer; |