[PATCH 0/3] log: enable filtering on functions

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Fri Jan 17 01:09:50 CET 2025


Up to now we could only use log level, category, and file for filtering.

In the UEFI sub-system event handling functions which are called at a
very high frequency are in the same files as other functions of interest.
Filtering on file level is too coarse for generating useful debug output.

Allow filtering on a list of functions and add unit tests.

(Resending as mail did not reach the U-Boot list.)

Heinrich Schuchardt (3):
  log: make log_has_file() static
  log: enable filtering on functions
  test/log: test function filters

 cmd/log.c             | 42 ++++++++++++-----------
 common/log.c          | 33 ++++++++++++++----
 include/log.h         | 17 ++--------
 test/log/log_filter.c |  1 -
 test/log/log_test.c   | 78 +++++++++++++++++++++++++++++++++----------
 5 files changed, 112 insertions(+), 59 deletions(-)

-- 
2.47.1



More information about the U-Boot mailing list