starpu_paje.c 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2010-2017 Université de Bordeaux
  4. *
  5. * StarPU is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 2.1 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * StarPU is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. *
  14. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. */
  16. #include "starpu_fxt.h"
  17. #include <common/config.h>
  18. #ifdef STARPU_HAVE_POTI
  19. #include <poti.h>
  20. #endif
  21. #ifdef STARPU_USE_FXT
  22. void _starpu_fxt_write_paje_header(FILE *file STARPU_ATTRIBUTE_UNUSED)
  23. {
  24. unsigned i;
  25. #ifdef STARPU_HAVE_POTI
  26. poti_header(1, 1); /* 1 as parameter means basic, no extended events */
  27. #else
  28. fprintf(file, "%%EventDef PajeDefineContainerType 1\n");
  29. fprintf(file, "%% Alias string\n");
  30. fprintf(file, "%% Type string\n");
  31. fprintf(file, "%% Name string\n");
  32. fprintf(file, "%%EndEventDef\n");
  33. fprintf(file, "%%EventDef PajeDefineEventType 2\n");
  34. fprintf(file, "%% Alias string\n");
  35. fprintf(file, "%% Type string\n");
  36. fprintf(file, "%% Name string\n");
  37. fprintf(file, "%%EndEventDef\n");
  38. fprintf(file, "%%EventDef PajeDefineStateType 3\n");
  39. fprintf(file, "%% Alias string\n");
  40. fprintf(file, "%% Type string\n");
  41. fprintf(file, "%% Name string\n");
  42. fprintf(file, "%%EndEventDef\n");
  43. fprintf(file, "%%EventDef PajeDefineVariableType 4\n");
  44. fprintf(file, "%% Alias string\n");
  45. fprintf(file, "%% Type string\n");
  46. fprintf(file, "%% Name string\n");
  47. fprintf(file, "%%EndEventDef\n");
  48. fprintf(file, "%%EventDef PajeDefineLinkType 5\n");
  49. fprintf(file, "%% Alias string\n");
  50. fprintf(file, "%% Type string\n");
  51. fprintf(file, "%% StartContainerType string\n");
  52. fprintf(file, "%% EndContainerType string\n");
  53. fprintf(file, "%% Name string\n");
  54. fprintf(file, "%%EndEventDef\n");
  55. fprintf(file, "%%EventDef PajeDefineEntityValue 6\n");
  56. fprintf(file, "%% Alias string\n");
  57. fprintf(file, "%% Type string\n");
  58. fprintf(file, "%% Name string\n");
  59. fprintf(file, "%% Color color\n");
  60. fprintf(file, "%%EndEventDef\n");
  61. fprintf(file, "%%EventDef PajeCreateContainer 7\n");
  62. fprintf(file, "%% Time date\n");
  63. fprintf(file, "%% Alias string\n");
  64. fprintf(file, "%% Type string\n");
  65. fprintf(file, "%% Container string\n");
  66. fprintf(file, "%% Name string\n");
  67. fprintf(file, "%%EndEventDef\n");
  68. fprintf(file, "%%EventDef PajeDestroyContainer 8\n");
  69. fprintf(file, "%% Time date\n");
  70. fprintf(file, "%% Name string\n");
  71. fprintf(file, "%% Type string\n");
  72. fprintf(file, "%%EndEventDef\n");
  73. fprintf(file, "%%EventDef PajeNewEvent 9\n");
  74. fprintf(file, "%% Time date\n");
  75. fprintf(file, "%% Type string\n");
  76. fprintf(file, "%% Container string\n");
  77. fprintf(file, "%% Value string\n");
  78. fprintf(file, "%%EndEventDef\n");
  79. fprintf(file, "%%EventDef PajeSetState 10\n");
  80. fprintf(file, "%% Time date\n");
  81. fprintf(file, "%% Container string\n");
  82. fprintf(file, "%% Type string\n");
  83. fprintf(file, "%% Value string\n");
  84. fprintf(file, "%%EndEventDef\n");
  85. fprintf(file, "%%EventDef PajePushState 11\n");
  86. fprintf(file, "%% Time date\n");
  87. fprintf(file, "%% Container string\n");
  88. fprintf(file, "%% Type string\n");
  89. fprintf(file, "%% Value string\n");
  90. fprintf(file, "%%EndEventDef\n");
  91. fprintf(file, "%%EventDef PajePopState 12\n");
  92. fprintf(file, "%% Time date\n");
  93. fprintf(file, "%% Container string\n");
  94. fprintf(file, "%% Type string\n");
  95. fprintf(file, "%%EndEventDef\n");
  96. fprintf(file, "%%EventDef PajeSetVariable 13\n");
  97. fprintf(file, "%% Time date\n");
  98. fprintf(file, "%% Container string\n");
  99. fprintf(file, "%% Type string\n");
  100. fprintf(file, "%% Value double\n");
  101. fprintf(file, "%%EndEventDef\n");
  102. fprintf(file, "%%EventDef PajeAddVariable 14\n");
  103. fprintf(file, "%% Time date\n");
  104. fprintf(file, "%% Type string\n");
  105. fprintf(file, "%% Container string\n");
  106. fprintf(file, "%% Value double\n");
  107. fprintf(file, "%%EndEventDef\n");
  108. fprintf(file, "%%EventDef PajeSubVariable 15\n");
  109. fprintf(file, "%% Time date\n");
  110. fprintf(file, "%% Type string\n");
  111. fprintf(file, "%% Container string\n");
  112. fprintf(file, "%% Value double\n");
  113. fprintf(file, "%%EndEventDef\n");
  114. fprintf(file, "%%EventDef PajeStartLink 18\n");
  115. fprintf(file, "%% Time date\n");
  116. fprintf(file, "%% Type string\n");
  117. fprintf(file, "%% Container string\n");
  118. fprintf(file, "%% Value string\n");
  119. fprintf(file, "%% StartContainer string\n");
  120. fprintf(file, "%% Key string\n");
  121. fprintf(file, "%%EndEventDef\n");
  122. fprintf(file, "%%EventDef PajeEndLink 19\n");
  123. fprintf(file, "%% Time date\n");
  124. fprintf(file, "%% Type string\n");
  125. fprintf(file, "%% Container string\n");
  126. fprintf(file, "%% Value string\n");
  127. fprintf(file, "%% EndContainer string\n");
  128. fprintf(file, "%% Key string\n");
  129. fprintf(file, "%%EndEventDef\n");
  130. #ifdef STARPU_ENABLE_PAJE_CODELET_DETAILS
  131. fprintf(file, "%%EventDef PajeSetState 20\n");
  132. fprintf(file, "%% Time date\n");
  133. fprintf(file, "%% Container string\n");
  134. fprintf(file, "%% Type string\n");
  135. fprintf(file, "%% Value string\n");
  136. fprintf(file, "%% Size string\n");
  137. fprintf(file, "%% Params string\n");
  138. fprintf(file, "%% Footprint string\n");
  139. fprintf(file, "%% Tag string\n");
  140. fprintf(file, "%% JobId string\n");
  141. fprintf(file, "%%EndEventDef\n");
  142. #endif
  143. #endif
  144. #ifdef STARPU_HAVE_POTI
  145. poti_DefineContainerType("MPIP", "0", "MPI Program");
  146. poti_DefineContainerType("P", "MPIP", "Program");
  147. poti_DefineContainerType("Mn", "P", "Memory Node");
  148. poti_DefineContainerType("T", "Mn", "Thread");
  149. poti_DefineContainerType("UT", "P", "User Thread");
  150. poti_DefineContainerType("Mm", "Mn", "Memory Manager");
  151. poti_DefineContainerType("W", "T", "Worker");
  152. poti_DefineContainerType("MPICt", "P", "MPI Communication Thread");
  153. poti_DefineContainerType("Sc", "P", "Scheduler");
  154. poti_DefineEventType("prog_event", "P", "program event type");
  155. poti_DefineEventType("register", "P", "data registration");
  156. /* Types for the memory node */
  157. poti_DefineEventType("invalidate", "Mm", "data invalidation");
  158. poti_DefineVariableType("use", "Mm", "Used (MB)", "0 0 0");
  159. poti_DefineVariableType("bwi_mm", "Mm", "Bandwidth In (MB/s)", "0 0 0");
  160. poti_DefineVariableType("bwo_mm", "Mm", "Bandwidth Out (MB/s)", "0 0 0");
  161. poti_DefineStateType("MS", "Mm", "Memory Node State");
  162. poti_DefineEntityValue("A", "MS", "Allocating", ".4 .1 .0");
  163. poti_DefineEntityValue("Ar", "MS", "AllocatingReuse", ".1 .1 .8");
  164. poti_DefineEntityValue("F", "MS", "Freeing", ".6 .3 .0");
  165. poti_DefineEntityValue("W", "MS", "WritingBack", ".0 .0 .5");
  166. poti_DefineEntityValue("Wa", "MS", "WritingBackAsync", ".0 .0 .4");
  167. poti_DefineEntityValue("R", "MS", "Reclaiming", ".0 .1 .6");
  168. poti_DefineEntityValue("Co", "MS", "DriverCopy", ".3 .5 .1");
  169. poti_DefineEntityValue("CoA", "MS", "DriverCopyAsync", ".1 .3 .1");
  170. poti_DefineEntityValue("No", "MS", "Nothing", ".0 .0 .0");
  171. /* Types for the Worker of the Memory Node */
  172. poti_DefineEventType("user_event", "T", "user event type");
  173. poti_DefineEventType("thread_event", "T", "thread event type");
  174. poti_DefineVariableType("gf", "W", "GFlops", "0 0 0");
  175. poti_DefineStateType("S", "T", "Thread State");
  176. poti_DefineEntityValue("I", "S", "Idle", ".9 .1 0");
  177. poti_DefineEntityValue("In", "S", "Initializing", "0.0 .7 1.0");
  178. poti_DefineEntityValue("D", "S", "Deinitializing", "0.0 .1 .7");
  179. poti_DefineEntityValue("Fi", "S", "FetchingInput", "1.0 .1 1.0");
  180. poti_DefineEntityValue("Po", "S", "PushingOutput", "0.1 1.0 1.0");
  181. poti_DefineEntityValue("C", "S", "Callback", ".0 .3 .8");
  182. poti_DefineEntityValue("B", "S", "Overhead", ".5 .18 .0");
  183. poti_DefineEntityValue("E", "S", "Executing", ".0 .6 .5");
  184. poti_DefineEntityValue("Sc", "S", "Scheduling", ".7 .36 .0");
  185. poti_DefineEntityValue("Sl", "S", "Sleeping", ".9 .1 .0");
  186. poti_DefineEntityValue("P", "S", "Progressing", ".4 .1 .6");
  187. poti_DefineEntityValue("U", "S", "Unpartitioning", ".0 .0 1.0");
  188. poti_DefineEntityValue("H", "S", "Hypervisor", ".5 .18 .0");
  189. poti_DefineEntityValue("Bu", "S", "Building task", ".5 .18 .0");
  190. poti_DefineEntityValue("Su", "S", "Submiting task", ".3 .09 .0");
  191. poti_DefineEntityValue("MD", "S", "Decoding task for MPI", ".5 .18 .2");
  192. poti_DefineEntityValue("MPr", "S", "Preparing task for MPI", ".4 .14 .2");
  193. poti_DefineEntityValue("MPo", "S", "Post-processing task for MPI", ".3 .09 .2");
  194. poti_DefineStateType("WS", "W", "Worker State");
  195. poti_DefineEntityValue("I", "WS", "Idle", ".9 .1 .0");
  196. poti_DefineEntityValue("In", "WS", "Initializing", "0.0 .7 1.0");
  197. poti_DefineEntityValue("D", "WS", "Deinitializing", "0.0 .1 .7");
  198. poti_DefineEntityValue("Fi", "WS", "FetchingInput", "1.0 .1 1.0");
  199. poti_DefineEntityValue("Po", "WS", "PushingOutput", "0.1 1.0 1.0");
  200. poti_DefineEntityValue("C", "WS", "Callback", ".0 .3 .8");
  201. poti_DefineEntityValue("B", "WS", "Overhead", ".5 .18 .0");
  202. poti_DefineEntityValue("E", "WS", "Executing", ".0 .6 .5");
  203. poti_DefineEntityValue("Sc", "WS", "Scheduling", ".7 .36 .0");
  204. poti_DefineEntityValue("Sl", "WS", "Sleeping", ".9 .1 .0");
  205. poti_DefineEntityValue("P", "WS", "Progressing", ".4 .1 .6");
  206. poti_DefineEntityValue("U", "WS", "Unpartitioning", ".0 .0 1.0");
  207. poti_DefineEntityValue("H", "WS", "Hypervisor", ".5 .18 .0");
  208. poti_DefineEntityValue("Bu", "WS", "Building task", ".5 .18 .0");
  209. poti_DefineEntityValue("Su", "WS", "Submiting task", ".3 .09 .0");
  210. /* Types for the MPI Communication Thread of the Memory Node */
  211. poti_DefineEventType("MPIev", "MPICt", "MPI event type");
  212. poti_DefineVariableType("bwi_mpi", "MPICt", "Bandwidth In (MB/s)", "0 0 0");
  213. poti_DefineVariableType("bwo_mpi", "MPICt", "Bandwidth Out (MB/s)", "0 0 0");
  214. poti_DefineStateType("CtS", "MPICt", "Communication Thread State");
  215. poti_DefineEntityValue("P", "CtS", "Processing", "0 0 0");
  216. poti_DefineEntityValue("Sl", "CtS", "Sleeping", ".9 .1 .0");
  217. poti_DefineEntityValue("UT", "CtS", "UserTesting", ".2 .1 .6");
  218. poti_DefineEntityValue("UW", "CtS", "UserWaiting", ".4 .1 .3");
  219. poti_DefineEntityValue("SdS", "CtS", "SendSubmitted", "1.0 .1 1.0");
  220. poti_DefineEntityValue("RvS", "CtS", "ReceiveSubmitted", "0.1 1.0 1.0");
  221. poti_DefineEntityValue("SdC", "CtS", "SendCompleted", "1.0 .5 1.0");
  222. poti_DefineEntityValue("RvC", "CtS", "ReceiveCompleted", "0.5 1.0 1.0");
  223. poti_DefineEntityValue("Bu", "CtS", "Building task", ".5 .18 .0");
  224. poti_DefineEntityValue("Su", "CtS", "Submiting task", ".3 .09 .0");
  225. /* Type for other threads */
  226. poti_DefineEventType("user_user_event", "UT", "user event type");
  227. poti_DefineEventType("user_thread_event", "UT", "thread event type");
  228. poti_DefineStateType("US", "UT", "User Thread State");
  229. poti_DefineEntityValue("Bu", "US", "Building task", ".5 .18 .0");
  230. poti_DefineEntityValue("Su", "US", "Submiting task", ".3 .09 .0");
  231. poti_DefineEntityValue("MD", "US", "Decoding task for MPI", ".5 .18 .2");
  232. poti_DefineEntityValue("MPr", "US", "Preparing task for MPI", ".4 .14 .2");
  233. poti_DefineEntityValue("MPo", "US", "Post-processing task for MPI", ".3 .09 .2");
  234. poti_DefineEntityValue("W", "US", "Waiting task", ".9 .1 .0");
  235. poti_DefineEntityValue("WA", "US", "Waiting all tasks", ".9 .1 .0");
  236. poti_DefineEntityValue("No", "US", "Nothing", ".0 .0 .0");
  237. for (i=1; i<STARPU_NMAX_SCHED_CTXS; i++)
  238. {
  239. char inctx[10];
  240. snprintf(inctx, sizeof(inctx), "InCtx%u", i);
  241. char *ctx = inctx+2;
  242. poti_DefineStateType(ctx, "T", inctx);
  243. poti_DefineEntityValue("I", ctx, "Idle", ".9 .1 .0");
  244. poti_DefineEntityValue("In", ctx, "Initializing", "0.0 .7 1.0");
  245. poti_DefineEntityValue("D", ctx, "Deinitializing", "0.0 .1 .7");
  246. poti_DefineEntityValue("Fi", ctx, "FetchingInput", "1.0 .1 1.0");
  247. poti_DefineEntityValue("Po", ctx, "PushingOutput", "0.1 1.0 1.0");
  248. poti_DefineEntityValue("C", ctx, "Callback", ".0 .3 .8");
  249. poti_DefineEntityValue("B", ctx, "Overhead", ".5 .18 .0");
  250. poti_DefineEntityValue("E", ctx, "Executing", ".0 .6 .5");
  251. poti_DefineEntityValue("Sc", ctx, "Scheduling", ".7 .36 .0");
  252. poti_DefineEntityValue("Sl", ctx, "Sleeping", ".9 .1 .0");
  253. poti_DefineEntityValue("P", ctx, "Progressing", ".4 .1 .6");
  254. poti_DefineEntityValue("U", ctx, "Unpartitioning", ".0 .0 1.0");
  255. poti_DefineEntityValue("H", ctx, "Hypervisor", ".5 .18 .0");
  256. }
  257. /* Types for the Scheduler */
  258. poti_DefineVariableType("nsubmitted", "Sc", "Number of Submitted Uncompleted Tasks", "0 0 0");
  259. poti_DefineVariableType("nready", "Sc", "Number of Ready Tasks", "0 0 0");
  260. poti_DefineVariableType("gft", "Sc", "Total GFlops", "0 0 0");
  261. /* Link types */
  262. poti_DefineLinkType("MPIL", "P", "MPICt", "MPICt", "MPI communications");
  263. poti_DefineLinkType("F", "P", "Mm", "Mm", "Intra-node data Fetch");
  264. poti_DefineLinkType("PF", "P", "Mm", "Mm", "Intra-node data PreFetch");
  265. poti_DefineLinkType("IF", "P", "Mm", "Mm", "Intra-node data IdleFetch");
  266. poti_DefineLinkType("WSL", "P", "W", "W", "Work steals");
  267. /* Creating the MPI Program */
  268. poti_CreateContainer(0, "MPIroot", "MPIP", "0", "root");
  269. #else
  270. fprintf(file, " \n\
  271. 1 MPIP 0 \"MPI Program\" \n\
  272. 1 P MPIP \"Program\" \n\
  273. 1 Mn P \"Memory Node\" \n\
  274. 1 T Mn \"Thread\" \n\
  275. 1 UT P \"User Thread\" \n\
  276. 1 Mm Mn \"Memory Manager\" \n\
  277. 1 W T \"Worker\" \n\
  278. 1 MPICt P \"MPI Communication Thread\" \n\
  279. 1 Sc P \"Scheduler State\" \n\
  280. 2 prog_event P \"program event type\" \n\
  281. 2 register P \"data registration\" \n\
  282. 2 user_event T \"user event type\" \n\
  283. 2 thread_event T \"thread event type\" \n\
  284. 2 user_user_event UT \"user event type\" \n\
  285. 2 user_thread_event UT \"thread event type\" \n\
  286. 2 MPIev MPICt \"MPI event type\" \n\
  287. 3 S T \"Thread State\" \n\
  288. 3 CtS MPICt \"Communication Thread State\" \n");
  289. for (i=1; i<STARPU_NMAX_SCHED_CTXS; i++)
  290. fprintf(file, "3 Ctx%u T \"InCtx%u\" \n", i, i);
  291. fprintf(file, "\
  292. 2 invalidate Mm \"data invalidation\" \n\
  293. 3 MS Mm \"Memory Node State\" \n\
  294. 4 nsubmitted Sc \"Number of Submitted Uncompleted Tasks\" \n\
  295. 4 nready Sc \"Number of Ready Tasks\" \n\
  296. 4 gft Sc \"Total GFlops\" \n\
  297. 4 use Mm \"Used (MB)\" \n\
  298. 4 bwi_mm Mm \"Bandwidth In (MB/s)\" \n\
  299. 4 bwo_mm Mm \"Bandwidth Out (MB/s)\" \n\
  300. 4 bwi_mpi MPICt \"Bandwidth In (MB/s)\" \n\
  301. 4 bwo_mpi MPICt \"Bandwidth Out (MB/s)\" \n\
  302. 4 gf W \"GFlops\" \n\
  303. 6 I S Idle \".9 .1 .0\" \n\
  304. 6 In S Initializing \"0.0 .7 1.0\" \n\
  305. 6 D S Deinitializing \"0.0 .1 .7\" \n\
  306. 6 Fi S FetchingInput \"1.0 .1 1.0\" \n\
  307. 6 Po S PushingOutput \"0.1 1.0 1.0\" \n\
  308. 6 C S Callback \".0 .3 .8\" \n\
  309. 6 B S Overhead \".5 .18 .0\" \n\
  310. 6 E S Executing \".0 .6 .5\" \n\
  311. 6 Sc S Scheduling \".7 .36 .0\" \n\
  312. 6 Sl S Sleeping \".9 .1 .0\" \n\
  313. 6 P S Progressing \".4 .1 .6\" \n\
  314. 6 U S Unpartitioning \".0 .0 1.0\" \n\
  315. 6 H S Hypervisor \".5 .18 .0\" \n\
  316. 6 Bu S \"Building task\" \".5 .18 .0\" \n\
  317. 6 Su S \"Submitting task\" \".3 .09 .0\" \n\
  318. 6 MD S \"Decoding task for MPI\" \".5 .18 .2\" \n\
  319. 6 MPr S \"Preparing task for MPI\" \".4 .14 .2\" \n\
  320. 6 MPo S \"Post-processing task for MPI\" \".3 .09 .2\" \n\
  321. 3 WS W \"Worker State\" \n\
  322. 6 I WS Idle \".9 .1 .0\" \n\
  323. 6 In WS Initializing \"0.0 .7 1.0\" \n\
  324. 6 D WS Deinitializing \"0.0 .1 .7\" \n\
  325. 6 Fi WS FetchingInput \"1.0 .1 1.0\" \n\
  326. 6 Po WS PushingOutput \"0.1 1.0 1.0\" \n\
  327. 6 C WS Callback \".0 .3 .8\" \n\
  328. 6 B WS Overhead \".5 .18 .0\" \n\
  329. 6 E WS Executing \".0 .6 .5\" \n\
  330. 6 Sc WS Scheduling \".7 .36 .0\" \n\
  331. 6 Sl WS Sleeping \".9 .1 .0\" \n\
  332. 6 P WS Progressing \".4 .1 .6\" \n\
  333. 6 U WS Unpartitioning \".0 .0 1.0\" \n\
  334. 6 H WS Hypervisor \".5 .18 .0\" \n\
  335. 6 Bu WS \"Building task\" \".5 .18 .0\" \n\
  336. 6 Su WS \"Submitting task\" \".3 .09 .0\" \n\
  337. 3 US UT \"User Thread State\" \n\
  338. 6 Bu US \"Building task\" \".5 .18 .0\" \n\
  339. 6 Su US \"Submitting task\" \".3 .09 .0\" \n\
  340. 6 MD US \"Decoding task for MPI\" \".5 .18 .2\" \n\
  341. 6 MPr US \"Preparing task for MPI\" \".4 .14 .2\" \n\
  342. 6 MPo US \"Post-processing task for MPI\" \".3 .09 .2\" \n\
  343. 6 W US \"Waiting task\" \".9 .1 .0\" \n\
  344. 6 WA US \"Waiting all tasks\" \".9 .1 .0\" \n\
  345. 6 No US Nothing \".0 .0 .0\" \n\
  346. ");
  347. fprintf(file, "\
  348. 6 P CtS Processing \"0 0 0\" \n\
  349. 6 Sl CtS Sleeping \".9 .1 .0\" \n\
  350. 6 UT CtS UserTesting \".2 .1 .6\" \n\
  351. 6 UW CtS UserWaiting \".4 .1 .3\" \n\
  352. 6 SdS CtS SendSubmitted \"1.0 .1 1.0\" \n\
  353. 6 RvS CtS ReceiveSubmitted \"0.1 1.0 1.0\" \n\
  354. 6 SdC CtS SendCompleted \"1.0 .5 1.0\" \n\
  355. 6 RvC CtS ReceiveCompleted \"0.5 1.0 1.0\" \n\
  356. 6 Bu CtS \"Building task\" \".5 .18 .0\" \n\
  357. 6 Su CtS \"Submitting task\" \".3 .09 .0\" \n\
  358. ");
  359. for (i=1; i<STARPU_NMAX_SCHED_CTXS; i++)
  360. fprintf(file, "\
  361. 6 I Ctx%u Idle \".9 .1 .0\" \n\
  362. 6 In Ctx%u Initializing \"0.0 .7 1.0\" \n\
  363. 6 D Ctx%u Deinitializing \"0.0 .1 .7\" \n\
  364. 6 Fi Ctx%u FetchingInput \"1.0 .1 1.0\" \n\
  365. 6 Po Ctx%u PushingOutput \"0.1 1.0 1.0\" \n\
  366. 6 C Ctx%u Callback \".0 .3 .8\" \n\
  367. 6 B Ctx%u Overhead \".5 .18 .0\" \n\
  368. 6 E Ctx%u Executing \".0 .6 .5\" \n\
  369. 6 Sc Ctx%u Scheduling \".7 .36 .0\" \n\
  370. 6 Sl Ctx%u Sleeping \".9 .1 .0\" \n\
  371. 6 P Ctx%u Progressing \".4 .1 .6\" \n\
  372. 6 U Ctx%u Unpartitioning \".0 .0 1.0\" \n\
  373. 6 H Ctx%u Hypervisor \".5 .18 .0\" \n",
  374. i, i, i, i, i, i, i, i, i, i, i, i, i);
  375. fprintf(file, "\
  376. 6 A MS Allocating \".4 .1 .0\" \n\
  377. 6 Ar MS AllocatingReuse \".1 .1 .8\" \n\
  378. 6 F MS Freeing \".6 .3 .0\" \n\
  379. 6 W MS WritingBack \".0 .0 .5\" \n\
  380. 6 Wa MS WritingBackAsync \".0 .0 .4\" \n\
  381. 6 R MS Reclaiming \".0 .1 .6\" \n\
  382. 6 Co MS DriverCopy \".3 .5 .1\" \n\
  383. 6 CoA MS DriverCopyAsync \".1 .3 .1\" \n\
  384. 6 No MS Nothing \".0 .0 .0\" \n\
  385. 5 MPIL P MPICt MPICt MPIL \n\
  386. 5 F P Mm Mm F\n\
  387. 5 PF P Mm Mm PF\n\
  388. 5 IF P Mm Mm IF\n\
  389. 5 WSL P W W WSL\n");
  390. fprintf(file, "7 0.0 MPIroot MPIP 0 root\n");
  391. #endif
  392. }
  393. #endif