zephyr/subsys/shell
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
..
backends net: tcp: Update receive window in other direct net_context users 2022-03-11 09:21:51 +01:00
modules kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
CMakeLists.txt lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
Kconfig kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell_cmds.c
shell_fprintf.c
shell_help.c shell: don't print colon if there's no item help 2022-02-24 08:29:52 -06:00
shell_help.h
shell_history.c shell: optimize history storage a bit 2022-03-14 11:33:17 +01:00
shell_log_backend.c logging: Deprecate v1, default to v2 2022-01-17 15:49:10 -05:00
shell_ops.c shell: Fix immediate logging case 2022-01-05 14:58:46 -05:00
shell_ops.h shell: Fix immediate logging case 2022-01-05 14:58:46 -05:00
shell_utils.c
shell_utils.h
shell_vt100.h
shell_wildcard.c
shell_wildcard.h
shell.c Shell: shell.c Use IN_RANGE macro from util.h 2022-03-11 07:20:16 -06:00