From 2b4970017d38fd9b148939c7acdbf704c232f1dc Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 20 Dec 2018 13:21:33 +0100 Subject: pkg/report: fix Start/EndPos calculation for fuchsia We computed Start/EndPos after trimming line prefix, this resulted in offsetted values which are not correct. Fix that. Add more tests and checks for Start/EndPos. --- pkg/report/testdata/fuchsia/report/30 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkg/report/testdata/fuchsia/report/30 (limited to 'pkg/report/testdata') diff --git a/pkg/report/testdata/fuchsia/report/30 b/pkg/report/testdata/fuchsia/report/30 new file mode 100644 index 000000000..c44516351 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/30 @@ -0,0 +1,22 @@ +TITLE: unexpected kernel reboot +START: [00000.000] 00000.00000> welcome to Zircon + +000> PMM: boot reserve marking WIRED [0x100000, 0x2b5fff] +[00000.000] 00000.00000> PMM: boot reserve marking WIRED [0x743000, 0xc4ffff] +[00000.000] 00000.00000> +[00000.000] 00000.00000> welcome to Zircon +[00000.000] 00000.00000> +[00000.000] 00000.00000> KASLR: .text section at 0xffffffff00100000 +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff001a12b8 (global_prng_seed) at level 0x30000, flags 0x1 +[00000.000] 00000.00000> initializing vm pre-heap +[00000.000] 00000.00000> VM: marking boot alloc used range [0xc50000, 0xc50040) +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00142b08 (elf_build_id) at level 0x4fffe, flags 0x1 +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00142c94 (version) at level 0x4ffff, flags 0x1 +[00000.000] 00000.00000> version: +[00000.000] 00000.00000> arch: x86 +[00000.000] 00000.00000> platform: pc +[00000.000] 00000.00000> target: pc +[00000.000] 00000.00000> project: x64 +[00000.000] 00000.00000> buildid: git-09a563b00c52cd79375e7ae0d212857ce1647c91 +[00000.000] 00000.00000> ELF build ID: a3466affc9bd84b3edf7d5bf0ee25bbfb043a5dd +[00000.000] 00000.00000> initializing heap -- cgit mrf-deployment