Skip to content

Commit

Permalink
x86, pebs: correct qualifier passed to ds_write_config() from ds_requ…
Browse files Browse the repository at this point in the history
…est_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>
  • Loading branch information
Markus Metzger authored and Ingo Molnar committed Mar 6, 2009
1 parent 9ca0791 commit 73bf1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73bf1b6

Please sign in to comment.