Issue |
144847
|
Summary |
Linux kernel version is unknown
|
Labels |
new issue
|
Assignees |
|
Reporter |
jakesteele
|
OS: Linux Cachy 6.15.2-2
LLVM Version: 20.7.1
Perf Version: `perf version 6.15-2`
Command I am running:
```
~/llvm-project/build/bin tags/llvmorg-20.1.7^0 jacob@Server
❯ sudo ./perf2bolt -p perf.data -o bolt.fdata /usr/src/debug/linux-cachyos/vmlinux
```
```
PERF2BOLT: Starting data aggregation job for perf.data
PERF2BOLT: spawning perf job to read branch events
PERF2BOLT: spawning perf job to read mem events
PERF2BOLT: spawning perf job to read process events
PERF2BOLT: spawning perf job to read task events
BOLT-INFO: Target architecture: x86_64
BOLT-INFO: BOLT version: 6146a88f60492b520a36f8f8f3231e15f3cc6082
BOLT-INFO: Linux kernel binary detected
BOLT-INFO: first alloc address is 0xffffffff81000000
BOLT-INFO: static input executable detected
BOLT-INFO: enabling lite mode
BOLT-WARNING: ignoring symbol __end_rodata at 0xffffffff834c6000, which lies outside .BTF_ids
BOLT-WARNING: ignoring symbol __end_rodata_hpage_align at 0xffffffff83600000, which lies outside .BTF_ids
BOLT-WARNING: ignoring symbol __end_rodata_aligned at 0xffffffff83600000, which lies outside .BTF_ids
BOLT-WARNING: split function detected on input : task_rq_lock.cold
BOLT-ERROR: symbol seen in the middle of the function srso_untrain_ret/1(*2). Skipping.
BOLT-ERROR: symbol seen in the middle of the function retbleed_untrain_ret/1(*2). Skipping.
BOLT-INFO: pre-processing profile using perf data aggregator
BOLT-INFO: binary build-id is: 873e93cae96bc10932d87f1da57dcee21256f08d
PERF2BOLT: spawning perf job to read buildid list
PERF2BOLT-WARNING: build-id matched a different file name
PERF2BOLT: waiting for perf task events collection to finish...
PERF2BOLT: parsing perf-script task events output
PERF2BOLT: input binary is associated with 0 PID(s)
PERF2BOLT: waiting for perf events collection to finish...
PERF2BOLT: parse branch events...
PERF2BOLT: read 264338 samples and 6877582 LBR entries
PERF2BOLT: 0 samples (0.0%) were ignored
PERF2BOLT: traces mismatching disassembled function contents: 6923 (0.1%)
PERF2BOLT: out of range traces involving unknown regions: 630520 (9.5%)
PERF2BOLT: waiting for perf mem events collection to finish...
BOLT-ERROR: while running linux-kernel-rewriter in pre-CFG state: Linux kernel version is unknown
```
However I clearly see it:
```
❯ strings /usr/src/debug/linux-cachyos/vmlinux | grep 'Linux version'
Linux version 6.15.2-2-cachyos (linux-cachyos@cachyos) (clang version 20.1.6, LLD 20.1.6) # SMP Thu, 19 Jun 2025 03:26:16 +0000
Linux version 6.15.2-2-cachyos (linux-cachyos@cachyos) (clang version 20.1.6, LLD 20.1.6) #1 SMP Thu, 19 Jun 2025 03:26:16 +0000
```
I believe it's failing to parse the string for some reason.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs