summaryrefslogtreecommitdiff
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2008-12-16 14:53:11 (GMT)
committerIngo Molnar <mingo@elte.hu>2008-12-16 17:28:37 (GMT)
commitd072c25f531c6513994960401d2c7f059434c0d2 (patch)
treeaf9631b5f00a48e79b0837311e70fbbb26ba61a0 /arch/x86/kernel
parentcc1dc6d039ced64c2f8b8457bf1cccf4ecfc5942 (diff)
downloadlinux-fsl-qoriq-d072c25f531c6513994960401d2c7f059434c0d2.tar.xz
x86, bts: correctly report invalid bts records
Impact: change the reporting of empty BTS records Correctly report a cleared BTS record as invalid. Used to be reported as branch from 0 to 0. Signed-off-by: Markus Metzger <markus.t.metzger@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/ds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c
index 0dc7959..98d271e 100644
--- a/arch/x86/kernel/ds.c
+++ b/arch/x86/kernel/ds.c
@@ -484,6 +484,9 @@ static int bts_read(struct bts_tracer *tracer, const void *at,
out->qualifier = bts_branch;
out->variant.lbr.from = bts_get(at, bts_from);
out->variant.lbr.to = bts_get(at, bts_to);
+
+ if (!out->variant.lbr.from && !out->variant.lbr.to)
+ out->qualifier = bts_invalid;
}
return ds_cfg.sizeof_rec[ds_bts];