From be562dffcc62a7644ab55833c9650774fb462ebe Mon Sep 17 00:00:00 2001 From: Joey Jiao Date: Mon, 2 Sep 2024 12:57:44 +0800 Subject: pkg/report: support module format with stacktrace_build_id Call trace can have line like below printed by %pSb: func_name+0x254/0x5f0 [module_name b31b29679ab712c360bddd861f655ab24898b4db] --- pkg/report/linux_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/report/linux_test.go') diff --git a/pkg/report/linux_test.go b/pkg/report/linux_test.go index f24b72d59..bb19ed6bf 100644 --- a/pkg/report/linux_test.go +++ b/pkg/report/linux_test.go @@ -151,6 +151,12 @@ func TestLinuxSymbolizeLine(t *testing.T) { "[ 50.419727][ T3822] baz+0x101/0x200 [beep]\n", "[ 50.419727][ T3822] baz+0x101/0x200 baz.c:100 [beep]\n", }, + // Frame format with module+offset and stracktrace_build_id. + { + "[ 50.419727][ T3822] baz+0x101/0x200 [beep b31b29679ab712c360bddd861f655ab24898b4db]\n", + "[ 50.419727][ T3822] baz+0x101/0x200 baz.c:100 [beep]\n", + }, + // Frame format with module+offset for invalid module. { "[ 50.419727][ T3822] baz+0x101/0x200 [invalid_module]\n", -- cgit mrf-deployment