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 logging: backend: Add websocket backend 2024-10-15 04:11:03 -04:00
Kconfig logging: backend: Add websocket backend 2024-10-15 04:11:03 -04:00
Kconfig.adsp logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.adsp_mtrace logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.ble logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.efi_console logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.fs logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.multidomain
Kconfig.native_posix logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.net logging: remove part for when gmtime_r is not available 2024-12-10 08:06:25 +01:00
Kconfig.rtt logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.semihost logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.spinel logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.swo logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
Kconfig.uart Revert "segger: rtt: disable unsupported shell/log features" 2024-12-11 21:30:19 +01:00
Kconfig.ws logging: backend: Add websocket backend 2024-10-15 04:11:03 -04:00
Kconfig.xtensa_sim logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
log_backend_adsp_mtrace.c style: subsys: comply with MISRA C:2012 Rule 15.6 2024-08-20 10:33:51 +02:00
log_backend_adsp.c
log_backend_ble.c logging: Optimize ble notification size 2024-08-09 09:54:14 +02:00
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: net: Fix build warning with IPv6 disabled 2024-10-08 16:58:20 +02:00
log_backend_rtt.c
log_backend_semihost.c logging: backend: add semihosting 2024-09-28 08:18:00 -05:00
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 logging: Add log_source_id helper function 2024-10-08 16:57:59 +02:00