Skip to content

Commit 25b7862

Browse files
author
Anastasia Basho
committed
Add print for debug
Signed-off-by: Anastasia Basho <[email protected]>
1 parent 6f591ea commit 25b7862

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/checkers/trace_checker.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,14 @@ coldtrace_writer_close(void *page, const size_t size, uint64_t tid)
296296

297297
caslock_acquire(&loop_lock);
298298

299+
300+
struct entry_it print_it = iter_init(page, size);
301+
for (int i = 0; iter_next(print_it); iter_advance(&print_it), i++) {
302+
coldtrace_entry_type type = iter_type(print_it);
303+
log_info("thread=%lu entry=%d %s %lu", tid, i,
304+
coldtrace_entry_type_str(type), iter_pointer_value(print_it));
305+
}
306+
299307
for (int i = 0; iter_next(it); iter_advance(&it), i++) {
300308
coldtrace_entry_type type = iter_type(it);
301309
uint64_t ptr_value = iter_pointer_value(it);

0 commit comments

Comments
 (0)