zephyr/subsys
Nicolas Pitre f7c4fe6778 shell: optimize history storage a bit
When padding is added to "fill" the gap in order to wrap to the
beginning of the ring buffer, such padding is attributed to the
current item being added. Let's attribute it to the previous entry
instead so it'll be freed along with that entry and make the space
available one entry sooner, increasing the chances for keeping the
current entry around longer.

If ring buffer is empty then always reset it up front to get best
alignment right away i.e. beginning of buffer.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2022-03-14 11:33:17 +01:00
..
bluetooth Bluetooth: Controller: Add sampling and switching offset configuration 2022-03-14 11:31:24 +01:00
canbus kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
console
cpp kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
debug kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
demand_paging
dfu kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
disk
emul i2c: emul: Add get_config function 2021-11-02 16:46:33 +01:00
fb samples: use chosen property to get default display controller 2021-12-10 12:47:30 +01:00
fs kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
ipc ipc_service: Start the wq only once 2022-03-07 10:52:51 +01:00
jwt
logging lib: os: cbprintf: Extend API to support new packaging modes 2022-03-14 11:16:14 +01:00
lorawan kconfig: lorawan: experimental settings now uses select EXPERIMENTAL 2021-10-25 10:46:48 +02:00
mgmt mgmt/mcumgr/lib: Fix os_mgmt_echo returning Cbor error 2022-03-11 10:58:55 +01:00
modbus kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
net net: lwm2m: Senml Json Base name dynamical update 2022-03-14 11:29:13 +01:00
pm kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
portability portability: cmsis: use correct type for atomics 2021-11-15 09:59:01 -05:00
random random: rand32_xoshiro128: obtain entropy device using DEVICE_DT_GET 2022-03-11 15:27:05 -08:00
settings kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
shell shell: optimize history storage a bit 2022-03-14 11:33:17 +01:00
stats stats: fixed implicit integer sign extension in stats_get_off() 2021-10-28 15:15:56 -04:00
storage kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
task_wdt task_wdt: fix overflow in current_ticks making wdt get stuck 2021-11-22 20:22:11 -05:00
testsuite ztest: bug: Add friendly name helper function for all phases 2022-03-14 11:32:38 +01:00
timing
tracing kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
usb kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
CMakeLists.txt
Kconfig