Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Also mention rdtsc() in passing.
details: https://anonhg.NetBSD.org/src/rev/400bd6b1472e
branches: trunk
changeset: 770604:400bd6b1472e
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Oct 25 05:41:33 2011 +0000
description:
Also mention rdtsc() in passing.
diffstat:
distrib/sets/lists/comp/mi | 5 ++++-
share/man/man9/man9.x86/Makefile | 5 +++--
share/man/man9/man9.x86/rdmsr.9 | 3 ++-
share/man/man9/man9.x86/tsc.9 | 12 ++++++++++--
4 files changed, 19 insertions(+), 6 deletions(-)
diffs (112 lines):
diff -r a8cce3657c0e -r 400bd6b1472e distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi Tue Oct 25 05:04:33 2011 +0000
+++ b/distrib/sets/lists/comp/mi Tue Oct 25 05:41:33 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1697 2011/10/25 05:03:55 jruoho Exp $
+# $NetBSD: mi,v 1.1698 2011/10/25 05:41:33 jruoho Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -10859,6 +10859,7 @@
./usr/share/man/cat9/x86/nmi_establish.0 comp-sys-catman .cat
./usr/share/man/cat9/x86/rdmsr.0 comp-sys-catman .cat
./usr/share/man/cat9/x86/rdmsr_safe.0 comp-sys-catman .cat
+./usr/share/man/cat9/x86/rdtsc.0 comp-sys-catman .cat
./usr/share/man/cat9/x86/tsc.0 comp-sys-catman .cat
./usr/share/man/cat9/x86/tsc_sync_ap.0 comp-sys-catman .cat
./usr/share/man/cat9/x86/tsc_sync_bp.0 comp-sys-catman .cat
@@ -16907,6 +16908,7 @@
./usr/share/man/html9/x86/nmi_establish.html comp-sys-htmlman html
./usr/share/man/html9/x86/rdmsr.html comp-sys-htmlman html
./usr/share/man/html9/x86/rdmsr_safe.html comp-sys-htmlman html
+./usr/share/man/html9/x86/rdtsc.html comp-sys-htmlman html
./usr/share/man/html9/x86/tsc.html comp-sys-htmlman html
./usr/share/man/html9/x86/tsc_sync_ap.html comp-sys-htmlman html
./usr/share/man/html9/x86/tsc_sync_bp.html comp-sys-htmlman html
@@ -23212,6 +23214,7 @@
./usr/share/man/man9/x86/nmi_establish.9 comp-sys-man .man
./usr/share/man/man9/x86/rdmsr.9 comp-sys-man .man
./usr/share/man/man9/x86/rdmsr_safe.9 comp-sys-man .man
+./usr/share/man/man9/x86/rdtsc.9 comp-sys-man .man
./usr/share/man/man9/x86/tsc.9 comp-sys-man .man
./usr/share/man/man9/x86/tsc_sync_ap.9 comp-sys-man .man
./usr/share/man/man9/x86/tsc_sync_bp.9 comp-sys-man .man
diff -r a8cce3657c0e -r 400bd6b1472e share/man/man9/man9.x86/Makefile
--- a/share/man/man9/man9.x86/Makefile Tue Oct 25 05:04:33 2011 +0000
+++ b/share/man/man9/man9.x86/Makefile Tue Oct 25 05:41:33 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2011/10/25 05:03:57 jruoho Exp $
+# $NetBSD: Makefile,v 1.5 2011/10/25 05:41:35 jruoho Exp $
MAN= nmi.9 rdmsr.9 tsc.9 x86_msr_xcall.9
@@ -10,7 +10,8 @@
MLINKS+=rdmsr.9 rdmsr_safe.9 \
rdmsr.9 wrmsr.9
-MLINKS+=tsc.9 tsc_tc_init.9 \
+MLINKS+=tsc.9 rdtsc.9 \
+ tsc.9 tsc_tc_init.9 \
tsc.9 tsc_sync_ap.9 \
tsc.9 tsc_sync_bp.9 \
tsc.9 tsc_sync_drift.9
diff -r a8cce3657c0e -r 400bd6b1472e share/man/man9/man9.x86/rdmsr.9
--- a/share/man/man9/man9.x86/rdmsr.9 Tue Oct 25 05:04:33 2011 +0000
+++ b/share/man/man9/man9.x86/rdmsr.9 Tue Oct 25 05:41:33 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: rdmsr.9,v 1.1 2011/10/25 05:03:57 jruoho Exp $
+.\" $NetBSD: rdmsr.9,v 1.2 2011/10/25 05:41:35 jruoho Exp $
.\"
.\" Copyright (c) 2011 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -109,4 +109,5 @@
via
.Fn x86_cpuid .
.Sh SEE ALSO
+.Xr rdtsc 9 ,
.Xr x86_msr_xcall 9
diff -r a8cce3657c0e -r 400bd6b1472e share/man/man9/man9.x86/tsc.9
--- a/share/man/man9/man9.x86/tsc.9 Tue Oct 25 05:04:33 2011 +0000
+++ b/share/man/man9/man9.x86/tsc.9 Tue Oct 25 05:41:33 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: tsc.9,v 1.3 2011/03/13 04:57:21 jruoho Exp $
+.\" $NetBSD: tsc.9,v 1.4 2011/10/25 05:41:35 jruoho Exp $
.\"
.\" Copyright (c) 2011 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd March 13, 2011
+.Dd October 25, 2011
.Dt TSC 9 x86
.Os
.Sh NAME
@@ -35,6 +35,8 @@
.Nd Time Stamp Counter
.Sh SYNOPSIS
.In x86/x86/tsc.h
+.Ft uint64_t
+.Fn rdtsc "void"
.Ft void
.Fn tsc_tc_init "void"
.Ft void
@@ -85,6 +87,11 @@
is a monotonically increasing counter.
.Sh FUNCTIONS
.Bl -tag -width abcd
+.It Fn rdtsc ""
+The
+.Fn rdtsc
+function returns the value read from
+.Dv RDTSC .
.It Fn tsc_tc_init ""
The
.Fn tsc_tc_init
@@ -148,4 +155,5 @@
.Xr gettimeofday 2 ,
.Xr hpet 4 ,
.Xr hz 9 ,
+.Xr rdmsr 9 ,
.Xr timecounter 9
Home |
Main Index |
Thread Index |
Old Index