aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux_test.go
diff options
context:
space:
mode:
authorJoey Jiao <quic_jiangenj@quicinc.com>2024-09-02 12:57:44 +0800
committerAleksandr Nogikh <nogikh@google.com>2024-09-03 09:29:30 +0000
commitbe562dffcc62a7644ab55833c9650774fb462ebe (patch)
tree6071db93c3878686051f91eb30009e4f94d53dee /pkg/report/linux_test.go
parent326f9c5a1caecfad15f94cf6cfbd43860012e56b (diff)
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]
Diffstat (limited to 'pkg/report/linux_test.go')
-rw-r--r--pkg/report/linux_test.go6
1 files changed, 6 insertions, 0 deletions
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",