Browse Source

update poti to latest API version (from github)

Lucas Schnorr 8 years ago
parent
commit
8af910fd61
2 changed files with 7 additions and 2 deletions
  1. 6 1
      src/debug/traces/starpu_fxt.c
  2. 1 1
      src/debug/traces/starpu_paje.c

+ 6 - 1
src/debug/traces/starpu_fxt.c

@@ -3645,7 +3645,12 @@ void _starpu_fxt_paje_file_init(struct starpu_fxt_options *options)
 		}
 
 #ifdef STARPU_HAVE_POTI
-		poti_init (out_paje_file);
+		poti_init_custom (options->out_paje_path,
+				  false, //if false, allow extended events
+				  true,  //if true, an old header (pj_dump -n)
+				  false, //if false, the trace has no comments
+				  true,  //if true, events have aliases
+				  true); //if true, relative timestamps
 #endif
 		_starpu_fxt_write_paje_header(out_paje_file);
 	}

+ 1 - 1
src/debug/traces/starpu_paje.c

@@ -26,7 +26,7 @@ void _starpu_fxt_write_paje_header(FILE *file STARPU_ATTRIBUTE_UNUSED)
 {
 	unsigned i;
 #ifdef STARPU_HAVE_POTI
-	poti_header(1, 1); /* 1 as parameter means basic, no extended events */
+	poti_header();     /* see poti_init_custom to customize the header */
 #else
 	fprintf(file, "%%EventDef	PajeDefineContainerType	1\n");
 	fprintf(file, "%%	Alias	string\n");