[patch 17/18] x86, ds: fix bad ds_reset_pebs()

markus.t.metzger
2009-04-02T15:03:43Z

[-- Attachment #1: tip.master.ds.reset_pebs.patch --]
[-- Type: text/plain, Size: 758 bytes --]

Ds_reset_pebs() passed the wrong qualifier to a shared function resulting
in a reset of bts, rather than pebs.

Reported-by: Stephane Eranian <eranian@googlemail.com>
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
---
arch/x86/kernel/ds.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/arch/x86/kernel/ds.c
===================================================================
--- a/arch/x86/kernel/ds.c
+++ b/arch/x86/kernel/ds.c
@@ -1214,7 +1214,7 @@ int ds_reset_pebs(struct pebs_tracer *tr

tracer->trace.ds.top = tracer->trace.ds.begin;

- ds_set(tracer->ds.context->ds, ds_bts, ds_index,
+ ds_set(tracer->ds.context->ds, ds_pebs, ds_index,
(unsigned long)tracer->trace.ds.top);

return 0;