Переглянути джерело

Add gdbinit to print fifo component

Samuel Thibault 7 роки тому
батько
коміт
5de0f2598d
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      tools/gdbinit

+ 5 - 0
tools/gdbinit

@@ -754,6 +754,11 @@ define starpu-sched-print-component
     set $c = $arg1
     starpu-print-spaces $arg0
     printf "%s %s %s (struct starpu_sched_component *) %p\n", $c->name, $c->properties & STARPU_SCHED_COMPONENT_HOMOGENEOUS ? "homogeneous":"heterogeneous", $c->properties & STARPU_SCHED_COMPONENT_SINGLE_MEMORY_NODE ? "single-node" : "multi-node", $c
+    if $c->push_task == fifo_push_task
+      set $f = ((struct _starpu_fifo_data *) $c->data)->fifo
+      starpu-print-spaces $arg0
+      printf "%d tasks start %f len %f end %f processed %d\n", $f->ntasks, $f->exp_start, $f->exp_len, $f->exp_end, $f->nprocessed
+    end
     if $c->push_task == prio_push_task
       set $q = &((struct _starpu_prio_data *) $c->data)->prio
       starpu-print-spaces $arg0