From 8ed64765afa9e1f6d0ea7b74ceea301390685976 Mon Sep 17 00:00:00 2001 From: Anthony Astolfi Date: Wed, 21 Feb 2024 09:52:31 -0500 Subject: [PATCH] Log more often in page allocator model test. --- src/llfs/page_allocator.test.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/llfs/page_allocator.test.cpp b/src/llfs/page_allocator.test.cpp index 17ef062..04f7f4f 100644 --- a/src/llfs/page_allocator.test.cpp +++ b/src/llfs/page_allocator.test.cpp @@ -476,8 +476,13 @@ class PageAllocatorModel } static std::atomic step_count{0}; - ++step_count; - LLFS_LOG_INFO_EVERY_N(25000) << BATT_INSPECT(step_count); + thread_local usize local_count{0}; + ++local_count; + if ((local_count & 0xfff) == 0) { + step_count.fetch_add(local_count); + local_count = 0; + LLFS_LOG_INFO_EVERY_N(5) << BATT_INSPECT(step_count); + } LLFS_VLOG(2) << "Entered PageAllocatorModel::step()";