浏览代码

declare the extended PajeSetState with all 11 extra parameters, save the event identifier

Lucas Schnorr 8 年之前
父节点
当前提交
64692de8eb
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      src/debug/traces/starpu_paje.c

+ 19 - 0
src/debug/traces/starpu_paje.c

@@ -22,12 +22,31 @@
 
 #ifdef STARPU_USE_FXT
 
+#ifdef STARPU_HAVE_POTI
+#ifdef HAVE_POTI_INIT_CUSTOM
+int extendedSetState = -1;
+#endif
+#endif
+
 void _starpu_fxt_write_paje_header(FILE *file STARPU_ATTRIBUTE_UNUSED)
 {
 	unsigned i;
 #ifdef STARPU_HAVE_POTI
 #ifdef HAVE_POTI_INIT_CUSTOM
 	poti_header();     /* see poti_init_custom to customize the header */
+	extendedSetState = poti_header_DeclareEvent (PAJE_SetState,
+						     11,
+						     "Size string",
+						     "Params string",
+						     "Footprint string",
+						     "Tag string",
+						     "JobId string",
+						     "GFlop string",
+						     "X string",
+						     "Y string",
+						     "Z string",
+						     "Iteration string",
+						     "Subiteration string");
 #else
 	poti_header(1,1);
 #endif