diff options
author | dm <dm@cvs.openbsd.org> | 1996-08-16 00:02:37 +0000 |
---|---|---|
committer | dm <dm@cvs.openbsd.org> | 1996-08-16 00:02:37 +0000 |
commit | d431cf6cff11b16629dc23c3b3baf20001f1f372 (patch) | |
tree | a9df042cb159008a9cc9bb9c787742199ae144c3 /usr.bin | |
parent | ceab7707d57278b2e0fe6843a641baa892c1614c (diff) |
Some mostly cosmetic bug fixes.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/pctr/pctr.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/pctr/pctr.c b/usr.bin/pctr/pctr.c index f34b4f1e8f4..874395c7011 100644 --- a/usr.bin/pctr/pctr.c +++ b/usr.bin/pctr/pctr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pctr.c,v 1.1 1996/08/14 22:31:48 dm Exp $ */ +/* $OpenBSD: pctr.c,v 1.2 1996/08/16 00:02:35 dm Exp $ */ /* * Pentium performance counter control program for OpenBSD. @@ -82,7 +82,7 @@ struct ctrfn p6fn[] = { "Number of store buffer blocks."}, {0x04, 0, "SB_DRAINS", "Number of store buffer drain cycles."}, - {0x04, 0, "MISALIGN_MEM_REF", + {0x05, 0, "MISALIGN_MEM_REF", "Number of misaligned data memory references."}, {0x06, 0, "SEGMENT_REG_LOADS", "Number of segment register loads."}, @@ -127,7 +127,7 @@ struct ctrfn p6fn[] = { "Number of M state lines allocated in the DCU."}, {0x47, 0, "DCU_M_LINES_OUT", "Number of M state lines evicted from the DCU. " - "This includes evictions via snoop HITM, interfention or replacement"}, + "This includes evictions via snoop HITM, intervention or replacement"}, {0x48, 0, "DCU_MISS_OUTSTANDING", "Weighted number of cycles while a DCU miss is outstanding."}, {0x60, 0, "BUS_REQ_OUTSTANDING", @@ -364,10 +364,6 @@ readst (void) } close (fd); - if (cpufamily == 6) { - st.pctr_hwc[0] = rdpmc (0); - st.pctr_hwc[1] = rdpmc (1); - } for (i = 0; i < PCTR_NUM; i++) printf (" ctr%d = %16qd [%s]\n", i, st.pctr_hwc[i], fn2str (cpufamily, st.pctr_fn[i])); |