From a02f59f255006a2d6cb236fe2448b69c9c223adb Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 18 Dec 2024 12:35:20 -0700 Subject: stack.c.gen: Monitor printf and assert overhead --- build-aux/stack.c.gen | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build-aux/stack.c.gen') diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen index 6602bdc..0568af0 100755 --- a/build-aux/stack.c.gen +++ b/build-aux/stack.c.gen @@ -746,6 +746,9 @@ def main( return True return False + def misc_filter(name: str) -> bool: + return name.endswith(":__lm_printf") or name == "__assert_msg_fail" + def location_xform(loc: str) -> str: if not loc.startswith("/"): return loc @@ -780,6 +783,7 @@ def main( app_func_filters={ "Threads": thread_filter, "Interrupt handlers": intrhandler_filter, + "Misc": misc_filter, }, app_location_xform=location_xform, app_indirect_callees=indirect_callees, -- cgit v1.2.3-2-g168b