Skip to content

How to use KallGraph to analyze Linux kernel v6.18? #5

@shuangpengbai

Description

@shuangpengbai

Hi, thanks for maintaining KallGraph.

I am trying to use KallGraph to analyze Linux kernel v6.18, but I am hitting an LLVM bitcode parsing error.

Command

build/bin/KallGraph @build/bc.list -OutputDir=src/sample_output/ -ThreadNum=64 -opaque-pointers

Output / Error

Created output folder: "src/sample_output/20260224_155141"
load module: linux.6.18/arch/x86/events/amd/core.bcfailed!!

SVFModuleLoader: linux.6.18/arch/x86/events/amd/core.bc: error: Unknown attribute kind (84) (Producer: 'LLVM15.0.7' Reader: 'LLVM 14.0.0')

What I tried

I tried compiling the kernel with LLVM 14 to match the reader, but Linux v6.18 seems to require at least LLVM 15, so building the kernel with LLVM 14 is not feasible.

Question

How can I resolve this error and successfully run KallGraph on Linux v6.18 bitcode?

Any help would be appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions