projector files
authorArun Singla <asingla@uiuc.edu>
Mon, 15 Apr 2002 20:28:07 +0000 (20:28 +0000)
committerArun Singla <asingla@uiuc.edu>
Mon, 15 Apr 2002 20:28:07 +0000 (20:28 +0000)
src/conv-perf/converseEvents.h [new file with mode: 0644]
src/conv-perf/projectorCore.h [new file with mode: 0644]
src/conv-perf/threadEvents.h [new file with mode: 0644]
src/conv-perf/traceCore.h [new file with mode: 0644]

diff --git a/src/conv-perf/converseEvents.h b/src/conv-perf/converseEvents.h
new file mode 100644 (file)
index 0000000..5d7a86a
--- /dev/null
@@ -0,0 +1,23 @@
+
+#ifndef __CONVERSE_EVENTS_H__
+#define __CONVERSE_EVENTS_H__
+
+/* Language ID */
+#define _CONVERSE_LANG_ID      0       // language ID for converse
+
+/* Event IDs */
+#define _E_MSG_SENT                    0
+#define _E_MSG_QUEUED          1       // DOUBT Queued where
+#define _E_MSG_RECV_MC         2       // Message received in machine layer
+#define _E_MSG_RECV_SC         3       // Message received in scheduler
+#define _E_HANDLER_BEGIN       4 
+#define _E_HANDLER_END         5 
+#define _E_PROC_IDLE           6       // Processor goes idle 
+#define _E_PROC_BUSY           7       // Processor goes busy 
+
+/* Trace Macros */
+//TODO
+#define REGISTER_CONVERSE
+#define LOG_CONVERSE_EVENT
+
+#endif
diff --git a/src/conv-perf/projectorCore.h b/src/conv-perf/projectorCore.h
new file mode 100644 (file)
index 0000000..bb6c980
--- /dev/null
@@ -0,0 +1,15 @@
+class ProjectorCore
+{
+  public:
+       //TODO
+       /*
+       RegisterInterpretor(LanguageID, LanguageNameString, Interpretor)
+       RegisterAnalyzer(LanguageID, LanguageNameString, Analyzer)
+       RegisterVizualizer(LanguageID, LanguageNameString, Vizualizer)
+       */
+};
+
+class TraceReader
+{
+
+};
diff --git a/src/conv-perf/threadEvents.h b/src/conv-perf/threadEvents.h
new file mode 100644 (file)
index 0000000..5b77061
--- /dev/null
@@ -0,0 +1,19 @@
+
+#ifndef __THREAD_EVENTS_H__
+#define __THREAD_EVENTS_H__
+
+/* Language ID */
+#define _THREAD_LANG_ID                1       // language ID for threads 
+
+/* Event IDs */
+#define _E_THREAD_CREATION     0
+#define _E_THREAD_AWAKEN       1
+#define _E_THREAD_RESUME       2
+#define _E_THREAD_SUSPEND      3
+
+/* Trace Macros */
+//TODO
+#define REGISTER_THREAD
+#define LOG_THREAD_EVENT
+
+#endif
diff --git a/src/conv-perf/traceCore.h b/src/conv-perf/traceCore.h
new file mode 100644 (file)
index 0000000..43febe6
--- /dev/null
@@ -0,0 +1,30 @@
+
+/* Prototype Declarations */
+class LogEntry;
+class LogPool;
+
+class TraceCore 
+{
+  public:
+       //TODO
+       /*
+       RegisterLanguage(LanuageID, LanguageNameString) 
+       RegisterEvent(LanguageID, EventID, EventNameString, EventDataPrototype)
+       LogEvent(LanguageID, EventID, EventData)
+       */
+};
+
+class TraceLogger 
+{
+
+};
+
+class LogEntry
+{
+
+};
+
+class LogPool
+{
+
+};