Skip to content

Commit 69e63bb

Browse files
committed
dump: Add comment on new counters
Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
1 parent 27e2cea commit 69e63bb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

criu/timer.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,12 @@ int parasite_dump_posix_timers_seized(struct proc_posix_timers_stat *proc_args,
393393
if (ret < 0)
394394
goto end_posix;
395395

396+
/*
397+
* i advances every iteration (indexes parasite-filled args->timer[]);
398+
* j advances only for timers we keep, both the next output slot
399+
* and the final count. Timers whose notify thread has exited are
400+
* skipped (i.e., j <= i).
401+
*/
396402
i = 0;
397403
j = 0;
398404
list_for_each_entry(temp, &proc_args->timers, list) {

0 commit comments

Comments
 (0)