[U-Boot] [PATCH v2 00/13] sandbox: Tidy up initcall and tracing

Simon Glass sjg at chromium.org
Mon Apr 8 19:20:40 UTC 2019


This series started from a patch to make sandbox show a useful address
when an initcall failed (an address that can be looked up in u-boot.map).
Since then various other problems with addresses have been found, so this
series now includes fixes for those also, as well as some clean-ups.

Changes in v2:
- Adjust code to allow it to work before relocation also
- Update commit message to take account of initcall.h being in a header
- Add documentation to README.sandbox
- Add a new patch to Correct maths in allocation routines
- Add a new patch to drop the printf() in setup_ram_buf()
- Add new patch to move pre-console buffer out of the way of tracing
- Add new patch to allow calling bootstage_mark() before bootstage_init()
- Add new patch to increase the early-trace-buffer size for sandbox
- Add new patch to drop use of header files in initcall.h
- Add new patch to use kernel types in div64
- Add new patch to avoid instrumenting the division function
- Add new patch to tidy up error returns in trace.c
- Add new patch to enable the 'trace' command on sandbox when needed

Simon Glass (13):
  sandbox: Improve debugging in initcall_run_list()
  sandbox: Correct maths in allocation routines
  sandbox: Drop the printf() in setup_ram_buf()
  sandbox: Move pre-console buffer out of the way of tracing
  bootstage: Allow calling bootstage_mark() before bootstage_init()
  sandbox: Increase the early-trace-buffer size
  initcall: Drop use of header files
  div64: Use kernel types
  div64: Don't instrument the division function
  trace: Tidy up error returns
  Convert CONFIG_TRACE to Kconfig
  Convert CONFIG_TRACE_BUFFER_SIZE et al to Kconfig
  sandbox: Enable the 'trace' command when tracing is used

 arch/sandbox/cpu/os.c                  | 59 ++++++++++++++++++----
 arch/sandbox/cpu/start.c               | 16 ++++--
 arch/sandbox/include/asm/global_data.h |  1 +
 board/sandbox/README.sandbox           | 46 +++++++++++++++++
 cmd/Kconfig                            |  2 +-
 common/board_f.c                       |  2 +-
 common/bootstage.c                     |  7 +++
 configs/sandbox_defconfig              |  2 +-
 include/configs/sandbox.h              |  4 +-
 include/div64.h                        | 70 +++++++++++++-------------
 include/initcall.h                     | 19 ++++---
 include/os.h                           | 11 ++++
 lib/Kconfig                            | 57 +++++++++++++++++++++
 lib/div64.c                            | 20 +++++---
 lib/trace.c                            | 17 ++++---
 scripts/config_whitelist.txt           |  5 --
 16 files changed, 258 insertions(+), 80 deletions(-)

-- 
2.21.0.392.gf8f6787159e-goog



More information about the U-Boot mailing list