Skip to content

load ebpf program failed: BPF program is too large. Processed 1000001 insn #698

@clxsh

Description

@clxsh

Hi team,
I'm encountering a program loading error with the latest ebpf-profiler on the 5.4.143 kernel, whereas the issue is not present in the 5.4.250 kernel. I've traced the problem to the pull request, after which each DEBUG_PRINT call seems to expand into more than 20 instructions.

ERRO[0045] BPF program is too large. Processed 1000001 insn
ERRO[0045] processed 1000001 insns (limit 1000000) max_states_per_insn 99 total_states 59623 peak_states 3386 mark_read 201
ERRO[0045] Failed to start agent controller: failed to load eBPF tracer: failed to load eBPF code: failed to load perf eBPF programs: failed to load perf_unwind_native

The kernel I use is an internal version, but I reproduce it on ubuntu 20.04 with linux-image-5.4.0-26-generic kernel.
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