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

can't mount BPF file system to pin the object #89

Closed
lysShub opened this issue Apr 4, 2023 · 2 comments
Closed

can't mount BPF file system to pin the object #89

lysShub opened this issue Apr 4, 2023 · 2 comments
Labels
invalid This doesn't seem right

Comments

@lysShub
Copy link

lysShub commented Apr 4, 2023

root@DESKTOP-H3MBKRR:/home/lys/work/bpf# sudo bpftool prog load hello.o tracepoint
Error: can't mount BPF file system to pin the object (tracepoint): mount --make-private . failed: Invalid argument

is bpftool bug?

@qmonnet
Copy link
Member

qmonnet commented Apr 4, 2023

I don't think so. It looks like you're trying to pin the program in your current working directory, and bpftool fails to mount it as a virtual BPF file system (which is expected).

You probably have a BPF file system mounted already, usually at /sys/fs/bpf/:

$ mount | grep bpf
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)

Try pinning there instead:

# bpftool prog load hello.o /sys/fs/bpf/tracepoint

@qmonnet qmonnet added the invalid This doesn't seem right label Jun 29, 2023
@qmonnet
Copy link
Member

qmonnet commented Jun 29, 2023

Given that it's been close to three months and I suspect there's no bug, I'll close the issue. Let me know if the problem subsists.

@qmonnet qmonnet closed this as not planned Won't fix, can't repro, duplicate, stale Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants