public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/9] log: don't build the trace buffer when log is not ready
@ 2020-11-27 10:20 Patrick Delaunay
  2020-11-27 10:20 ` [PATCH v2 1/9] test: add LOGL_FORCE_DEBUG flags support in log tests Patrick Delaunay
                   ` (8 more replies)
  0 siblings, 9 replies; 34+ messages in thread
From: Patrick Delaunay @ 2020-11-27 10:20 UTC (permalink / raw)
  To: u-boot


It is the V2 of [1], rebased and with added tests.

To allow test (with console record), I replace the debug uart
function used to display the dropped messages printascii() by
the console generic function puts().

This function allows to support all the features defined in
console.c (as DEBUG_UART, PRE_CONSOLE_BUFFER, CONSOLE_RECORD)
without duplicate them (no more nedd to test CONFIG_DEBUG_UART
for example).

PS: I don't sure that the added trace added for test in
    arch/sandbox/cpu/start.c = "sandbox: starting..."
    is not disturbing.
    see patch 5 = "test: add test for dropped trace before log_init"

[1] http://patchwork.ozlabs.org/project/uboot/list/?series=212739


Changes in v2:
- Add test for LOGL_FORCE_DEBUG (NEW)
- add test to count the dropped messages (NEW)
- replace printascii by console puts, remove test on CONFIG_DEBUG_UART
- Add test of displayed messages requested before log_init (NEW)
- update gd test in console function puts and putc (cosmetic)
- Record all messages in console, even when dropped (NEW)
- added test for content of dropped messages (NEW)

Patrick Delaunay (9):
  test: add LOGL_FORCE_DEBUG flags support in log tests
  log: don't build the trace buffer when log is not ready
  test: log: add test for dropped messages
  log: use console puts to output trace before LOG init
  test: add test for dropped trace before log_init
  console: remove duplicated test on gd value
  console: allow to record console output before ready
  test: log: add test for console output of dropped messages
  log: call vsnprintf only when it is needed to emit trace

 arch/sandbox/cpu/start.c  |  5 +++
 common/console.c          | 32 ++++++++---------
 common/log.c              | 40 +++++++++++++++------
 test/log/log_test.c       | 76 +++++++++++++++++++++++++++++++--------
 test/py/tests/test_log.py | 11 ++++++
 5 files changed, 122 insertions(+), 42 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2021-01-16 16:22 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-27 10:20 [PATCH v2 0/9] log: don't build the trace buffer when log is not ready Patrick Delaunay
2020-11-27 10:20 ` [PATCH v2 1/9] test: add LOGL_FORCE_DEBUG flags support in log tests Patrick Delaunay
2020-11-27 14:53   ` Sean Anderson
2020-11-30 20:12   ` Simon Glass
2021-01-16 16:21   ` Tom Rini
2020-11-27 10:20 ` [PATCH v2 2/9] log: don't build the trace buffer when log is not ready Patrick Delaunay
2020-11-27 14:50   ` Sean Anderson
2020-11-30 20:12     ` Simon Glass
2020-12-02  8:37     ` Patrick DELAUNAY
2021-01-16 16:21   ` Tom Rini
2020-11-27 10:20 ` [PATCH v2 3/9] test: log: add test for dropped messages Patrick Delaunay
2020-11-30 20:11   ` Simon Glass
2021-01-16 16:21   ` Tom Rini
2020-11-27 10:20 ` [PATCH v2 4/9] log: use console puts to output trace before LOG init Patrick Delaunay
2020-11-27 15:01   ` Sean Anderson
2020-12-02  9:15     ` Patrick DELAUNAY
2021-01-16 16:21   ` Tom Rini
2020-11-27 10:20 ` [PATCH v2 5/9] test: add test for dropped trace before log_init Patrick Delaunay
2020-11-30 20:12   ` Simon Glass
2021-01-16 16:21   ` Tom Rini
2020-11-27 10:20 ` [PATCH v2 6/9] console: remove duplicated test on gd value Patrick Delaunay
2020-11-27 15:05   ` Sean Anderson
2020-11-30 20:12   ` Simon Glass
2021-01-16 16:21   ` Tom Rini
2020-11-27 10:20 ` [PATCH v2 7/9] console: allow to record console output before ready Patrick Delaunay
2020-11-30 20:12   ` Simon Glass
2020-12-02  9:55     ` [Uboot-stm32] " Patrick DELAUNAY
2020-12-02 21:46       ` Simon Glass
2021-01-16 16:22   ` Tom Rini
2020-11-27 10:20 ` [PATCH v2 8/9] test: log: add test for console output of dropped messages Patrick Delaunay
2020-11-30 20:12   ` Simon Glass
2021-01-16 16:22   ` Tom Rini
2020-11-27 10:20 ` [PATCH v2 9/9] log: call vsnprintf only when it is needed to emit trace Patrick Delaunay
2021-01-16 16:22   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox