From e62d351ce7b492042fb5a4645b5428d8c1c47d84 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 21 Nov 2023 01:51:48 +0200 Subject: [PATCH] trace: Document function pattern prefixes Signed-off-by: Benjamin Berg --- src/utils/os_unix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/os_unix.c b/src/utils/os_unix.c index 39f00943b..093548256 100644 --- a/src/utils/os_unix.c +++ b/src/utils/os_unix.c @@ -570,6 +570,11 @@ int testing_test_fail(bool is_alloc) pos = wpa_trace_fail_func[is_alloc]; + /* The prefixes mean: + * - '=': The function needs to be next in the backtrace + * - '?': The function is optionally present in the backtrace + */ + match = 0; while (i < res) { int allow_skip = 1;