From 787bdff58f598f8674734540b341d9b0c1ee1242 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 9 Mar 2025 03:27:52 -0600 Subject: measurestack: Explicitly watch printf size --- build-aux/measurestack/app_main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build-aux/measurestack/app_main.py') diff --git a/build-aux/measurestack/app_main.py b/build-aux/measurestack/app_main.py index 517fa2c..b0f5e39 100644 --- a/build-aux/measurestack/app_main.py +++ b/build-aux/measurestack/app_main.py @@ -89,8 +89,9 @@ def main( def misc_filter(name: QName) -> tuple[int, bool]: if name.base() in [ - BaseName("__lm_printf"), BaseName("__assert_msg_fail"), + BaseName("vfctprintf"), + BaseName("__wrap_vsnprintf"), ]: return 1, False return 0, False -- cgit v1.2.3-2-g168b From 4180233a07ab0f0b71278aa27c3e2cec7c00ac2f Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 6 Mar 2025 23:40:32 -0700 Subject: Use pico-fmt instead of pico-sdk's printf --- build-aux/measurestack/app_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-aux/measurestack/app_main.py') diff --git a/build-aux/measurestack/app_main.py b/build-aux/measurestack/app_main.py index b0f5e39..397dc31 100644 --- a/build-aux/measurestack/app_main.py +++ b/build-aux/measurestack/app_main.py @@ -90,8 +90,8 @@ def main( def misc_filter(name: QName) -> tuple[int, bool]: if name.base() in [ BaseName("__assert_msg_fail"), - BaseName("vfctprintf"), - BaseName("__wrap_vsnprintf"), + BaseName("fmt_vfctprintf"), + BaseName("fmt_vsnprintf"), ]: return 1, False return 0, False -- cgit v1.2.3-2-g168b From 797164f75b91c5cdfb68fc91d6853e7609d97e12 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 6 Mar 2025 17:21:10 -0700 Subject: Add libfmt to bypass output buffering for libmisc:assert --- build-aux/measurestack/app_main.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'build-aux/measurestack/app_main.py') diff --git a/build-aux/measurestack/app_main.py b/build-aux/measurestack/app_main.py index 397dc31..9a31338 100644 --- a/build-aux/measurestack/app_main.py +++ b/build-aux/measurestack/app_main.py @@ -49,6 +49,7 @@ def main( plugins += [ app_plugins.CmdPlugin(), libobj_plugin, + app_plugins.PicoFmtPlugin(arg_pico_platform), app_plugins.LibHWPlugin(arg_pico_platform, libobj_plugin), app_plugins.LibCRPlugin(), app_plugins.LibCRIPCPlugin(), @@ -67,7 +68,6 @@ def main( return ret plugins += [ - app_plugins.PicoFmtPlugin(), app_plugins.PicoSDKPlugin( get_init_array=get_init_array, ), @@ -88,10 +88,12 @@ def main( return 0, False def misc_filter(name: QName) -> tuple[int, bool]: - if name.base() in [ - BaseName("__assert_msg_fail"), - BaseName("fmt_vfctprintf"), - BaseName("fmt_vsnprintf"), + if name in [ + QName("__assert_msg_fail"), + QName("__lm_printf"), + QName("__lm_light_printf"), + QName("fmt_vfctprintf"), + QName("fmt_vsnprintf"), ]: return 1, False return 0, False -- cgit v1.2.3-2-g168b From f41d9a88c07226d107b56873bdbc801e484b524e Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Fri, 14 Mar 2025 18:25:12 -0600 Subject: lib9p: Have all IDL-defined types implement fmt_formatter --- build-aux/measurestack/app_main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'build-aux/measurestack/app_main.py') diff --git a/build-aux/measurestack/app_main.py b/build-aux/measurestack/app_main.py index 9a31338..7573146 100644 --- a/build-aux/measurestack/app_main.py +++ b/build-aux/measurestack/app_main.py @@ -27,7 +27,8 @@ def main( # sbc-harness #################################################### - lib9p_plugin = app_plugins.Lib9PPlugin(arg_base_dir, arg_c_fnames) + libobj_plugin = app_plugins.LibObjPlugin(arg_c_fnames) + lib9p_plugin = app_plugins.Lib9PPlugin(arg_base_dir, arg_c_fnames, libobj_plugin) def sbc_is_thread(name: QName) -> int: if str(name).endswith("_cr") and name.base() != BaseName("lib9p_srv_read_cr"): @@ -44,8 +45,6 @@ def main( return 1 return 0 - libobj_plugin = app_plugins.LibObjPlugin(arg_c_fnames) - plugins += [ app_plugins.CmdPlugin(), libobj_plugin, -- cgit v1.2.3-2-g168b