zephyr/tests
Kamil Krzyzanowski 41f2c64e97 logging: fs backend: only fs_sync when done with a batch of logs
The previous behavior was to call `fs_sync` on the file after every log
item written. In many cases, log messages come in bursts, and `log_core`
already operates in batches, configurable using
`CONFIG_LOG_PROCESS_THREAD_SLEEP_MS` and
`CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD`. Once the batch is done, the
backends get notified with `LOG_BACKEND_EVT_PROCESS_THREAD_DONE` if any
logs were processed. This is a nice time to `fs_sync` the written changes.

This change both speeds up the time spent writing logs and reduces the
amount of block erases done on the flash, as the previous implementation
erased blocks after each individual log message.

Signed-off-by: Kamil Krzyzanowski <kamnxt@kamnxt.com>
2025-02-07 14:32:06 +01:00
..
application_development
arch
benchmarks
bluetooth Tests: Bluetooth: Add hci_ipc config to Twister integration 2025-02-06 14:46:02 +01:00
boards
boot
bsim
cmake
crypto
ctest/base
drivers tests : clock_control: clean "STM32_SRC_SYSCLK" 2025-02-07 10:25:52 +01:00
integration/kernel
kconfig
kernel tests: kernel: Don't use VLA in pipe_api test. 2025-02-05 14:57:49 +01:00
lib
misc
modules
net tests: net: socket: Fix -Wsometimes-uninitialized warning 2025-02-07 02:23:24 +01:00
posix tests: posix: timers: Fix -Wsometimes-uninitialized warning 2025-02-07 02:23:35 +01:00
robot
subsys logging: fs backend: only fs_sync when done with a batch of logs 2025-02-07 14:32:06 +01:00
unit
ztest
test_config.yaml