changeset 1301:2fa31362ead0 draft

add header to be used Read Time Stamp Counter
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Tue, 13 Dec 2011 16:10:57 +0900
parents 3a04b2e24df1
children b606adda63fe 6941385ba022
files TaskManager/Fifo/FifoDmaManager.cc TaskManager/Fifo/rdtsc.h
diffstat 2 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Fifo/FifoDmaManager.cc	Tue Dec 06 18:01:33 2011 +0900
+++ b/TaskManager/Fifo/FifoDmaManager.cc	Tue Dec 13 16:10:57 2011 +0900
@@ -102,4 +102,15 @@
     }
 }
 
+void
+FifoDmaManager::start_profile()
+{
+
+}
+
+void
+FifoDmaManager::stop_profile()
+{
+
+}
 /* end */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TaskManager/Fifo/rdtsc.h	Tue Dec 13 16:10:57 2011 +0900
@@ -0,0 +1,14 @@
+#ifndef RDTSC_H_
+#define RDTSC_H_
+
+/*
+ *  rdtsc is Read Time Stamp Counter
+ */
+
+inline unsigned long long rdtsc() {
+	unsigned long long ret;
+	__asm__ volatile ("rdtsc" : "=A" (ret));
+	return ret;
+}
+
+#endif /* RDTSC_H_ */