zephyr/subsys/logging/backends
Kamil Krzyzanowski cd281ab40b logging: fs backend: simplify checking if file exists
In order to check if the desired log file exists, the backend would open
the directory, then go through all the files seeing if one of them matches
the correct filename. Simplify to just `fs_stat` the file instead.

This has the added side effect of lowering the time spent checking if the
file exists after every log. Some quick testing revealed the time spent
checking went down from ~150-300ms to ~10ms (on my specific board, with a
nRF9160 writing to a LittleFS on external flash).

Signed-off-by: Kamil Krzyzanowski <kamnxt@kamnxt.com>
2025-02-07 14:33:35 +01:00
..
CMakeLists.txt
Kconfig
Kconfig.adsp
Kconfig.adsp_mtrace
Kconfig.ble
Kconfig.efi_console
Kconfig.fs
Kconfig.multidomain
Kconfig.native_posix
Kconfig.net logging: remove part for when gmtime_r is not available 2024-12-10 08:06:25 +01:00
Kconfig.rtt
Kconfig.semihost
Kconfig.spinel
Kconfig.swo
Kconfig.uart Revert "segger: rtt: disable unsupported shell/log features" 2024-12-11 21:30:19 +01:00
Kconfig.ws
Kconfig.xtensa_sim
log_backend_adsp_mtrace.c
log_backend_adsp.c
log_backend_ble.c
log_backend_efi_console.c
log_backend_fs.c logging: fs backend: simplify checking if file exists 2025-02-07 14:33:35 +01:00
log_backend_ipc_service.c
log_backend_native_posix.c
log_backend_net.c
log_backend_rtt.c
log_backend_semihost.c
log_backend_spinel.c
log_backend_swo.c
log_backend_uart.c
log_backend_ws.c log: websocket: Remove debug printing 2025-01-13 20:23:07 +01:00
log_backend_xtensa_sim.c
log_multidomain_backend.c