Allow the value zero in marks

When using the mark API to track a counter, it is posible that the value
zero is being emitted as it will be properly displayed using the
gradient view in Paraver.
This commit is contained in:
Rodrigo Arias 2024-06-17 13:49:24 +02:00
parent 2c111fd98c
commit db57136f1b

View File

@ -357,7 +357,7 @@ connect_thread_prv(struct emu *emu, struct thread *sth, struct prv *prv)
long i = type->index; long i = type->index;
struct chan *ch = &mth->channels[i]; struct chan *ch = &mth->channels[i];
long row = sth->gindex; long row = sth->gindex;
long flags = 0; long flags = PRV_ZERO; /* Allow zero value */
long prvtype = type->prvtype; long prvtype = type->prvtype;
if (prv_register(prv, row, prvtype, &emu->bay, ch, flags)) { if (prv_register(prv, row, prvtype, &emu->bay, ch, flags)) {
err("prv_register failed"); err("prv_register failed");