Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to trace XDP: using replacement map .bss: Flags: 1024 changed to 0: map spec is incompatible with existing map #483

Open
Asphaltt opened this issue Jan 15, 2025 · 0 comments · May be fixed by #484

Comments

@Asphaltt
Copy link
Contributor

# ./pwru --backend kprobe --filter-trace-tc --filter-trace-xdp --filter-func '.*icmp.*' icmp
2025/01/15 14:04:34 Attaching tc-bpf progs...
2025/01/15 14:04:34 Attaching xdp progs...
2025/01/15 14:04:34 failed to trace XDP progs: failed to trace bpf progs: failed to load objects:
using replacement map .bss: Flags: 1024 changed to 0: map spec is incompatible with existing map

I add a log to check .bss flags:

2025/01/15 14:36:35 spec .bss flags: 0x0, .bss map flags: 0x400

0x400 is BPF_F_MMAPABLE.

/* Enable memory-mapping BPF map */
	BPF_F_MMAPABLE		= (1U << 10),

It seems this flag is set by go-ebpf v0.17.1.

I'll fix it asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant