-
Notifications
You must be signed in to change notification settings - Fork 1
/
tracingdefs.h
executable file
·156 lines (131 loc) · 5.22 KB
/
tracingdefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#ifndef VOID_TRACER_DEFINITIONS_H
#define VOID_TRACER_DEFINITIONS_H
/* Files:
*
* FilterData/FilterData.c 0
* FilterDev/FilterDev.c 1
*/
/* Categories:
*
* Idle 0
* Process 1
* Communication 2
* Overhead 3
*/
/* Idle operations:
*
* Read 0
* Write 1
*/
/* Process operations:
*
* Init 0
* Process 1
* Finalize 2
* Void 3
*/
/* Communication operations:
*
* Read 0
* Write 1
*/
/* Communication types ( write ):
*
* Broadcast 0
* RoundRobin 1
* MLS 2
* LS 3
* Random 4
*/
/* Overhead operations ( void funcion calls ):
*
* dsProbe 0
* dsReadBuffer 1
* dsWriteBuffer 2
* dsGetNumWriters 3
* dsGetNumReaders 4
* dsInitPack 5
* dsPackData 6
* dsWritePackedBuffer 7
* dsInitReceive 8
* dsUnpackData 9
* dsGetMachineMemory 10
* dsGetLocalInstances 11
* dsGetMyRank 12
* dsGetTotalInstances 13
* dsExit 14
* dsCreateTask 15
* dsEndTask 16
* dsGetCurrentTask 17
* dsGetOutputPortByName 18
* dsGetInputPortByName 19
* dsCloseOutputPort 20
*/
/* State common attribute fields:
*
* int category
* int operation
* int file-in
* int line-in
* int work
* int taskId
* int filter
* int instance
*/
/* Only in Overhead/dsCreateTask:
* + int numDeps
* + int * taskDeps ( if numDeps > 0 )
*/
/* Only in Communication/Read:
* + int instTid ( PVM tid of sender task )
* + int incomingMsgId ( id of incoming msg )
*/
/* Only in Communication/Write:
* + int commPolicy
* + int pvm_mytid ( PVM task id )
* + int msgId ( id of outcoming msg )
*/
/* Idle: */
#define VT_IDLE_READ "iiiiiiii", 0, 0, 0, __LINE__, cacheGetCurrentWork(), \
cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_IDLE_WRITE "iiiiiiii", 0, 1, 1, __LINE__, cacheGetCurrentWork(), \
cacheGetCurrentTask(), fd->id, fd->myRank
/* Process: */
#define VT_PROC_INIT "iiiiiiii", 1, 0, 0, __LINE__, currentWork, cacheGetCurrentTask(), \
fd->id, fd->myRank
#define VT_PROC_PROC "iiiiiiii", 1, 1, 0, __LINE__, currentWork, cacheGetCurrentTask(), \
fd->id, fd->myRank
#define VT_PROC_PROCTASK "iiiiiiii", 1, 1, 1, __LINE__, cacheGetCurrentWork(), \
cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_PROC_FINALIZE "iiiiiiii", 1, 2, 0, __LINE__, currentWork, cacheGetCurrentTask(), \
fd->id, fd->myRank
/* Communication: */
#define VT_COMM_READ "iiiiiiiiII", 2, 0, 1, __LINE__, cacheGetCurrentWork(), \
cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_LEAVE_COMM_READ instTid, incomingMsgId
#define VT_COMM_WRITE "iiiiiiiiiiii", 2, 1, 1, __LINE__, cacheGetCurrentWork(), \
cacheGetCurrentTask(), fd->id, fd->myRank, \
fd->outputPorts[oph]->writePolicy, bufSz, pvm_mytid(), ++msgId
/* Overhead: */
#define VT_OH_PROBE "iiiiiiii", 3, 0, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_RBUFFER "iiiiiiii", 3, 1, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_WBUFFER "iiiiiiii", 3, 2, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETNW "iiiiiiii", 3, 3, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETNR "iiiiiiii", 3, 4, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_INITPACK "iiiiiiii", 3, 5, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_PACK "iiiiiiii", 3, 6, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_WPBUFFER "iiiiiiii", 3, 7, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_IRECEIVE "iiiiiiii", 3, 8, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_UNPACK "iiiiiiii", 3, 9, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETMEM "iiiiiiii", 3, 10, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETLI "iiiiiiii", 3, 11, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETMYRANK "iiiiiiii", 3, 12, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETTI "iiiiiiii", 3, 13, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_EXIT "iiiiiiii", 3, 14, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_CREATETASK "iiiiiiiiia", 3, 15, 1, __LINE__, cacheGetCurrentWork(), taskId, fd->id, fd->myRank, depSize, trcIArrayToTrc( depSize, deps )
#define VT_OH_ENDTASK "iiiiiiii", 3, 16, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETCT "iiiiiiii", 3, 17, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETOPORT "iiiiiiii", 3, 18, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_GETIPORT "iiiiiiii", 3, 19, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#define VT_OH_CLOSEOPORT "iiiiiiii", 3, 19, 1, __LINE__, cacheGetCurrentWork(), cacheGetCurrentTask(), fd->id, fd->myRank
#endif