Comments (4)
Thanks for the report @piso77. I can't reproduce it on my kernel, so would you be able to share the output of your verifier logs to help us debug it please?
You should (hopefully) be able to get it with this command:
# bpftrace -e 'kfunc:filp_close { $f = path(args.filp->f_path); if (strcontains($f, "tmp")) { printf("OK\n"); exit(); } }' -d verifier
from bpftrace.
$ sudo ./src/bpftrace -v -e 'kfunc:filp_close { $f = path(args.filp->f_path); if (strcontains($f, "tmp")) { printf("OK\n"); exit(); } }' -d verifier
AST node count: 19
Attaching 1 probe...
BPF verifier log for kfunc_vmlinux_filp_close_1:
--------------------------------------
func#0 @0
Tracing programs must provide btf_id
verification time 37 usec
stack depth 0
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
ERROR: Error loading BPF program for kfunc_vmlinux_filp_close_1.
Kernel error log:
func#0 @0
Tracing programs must provide btf_id
verification time 37 usec
stack depth 0
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
ERROR: Loading BPF object(s) failed.
from bpftrace.
Here is the .config i've used to build the above kernel.
from bpftrace.
@piso77 based on the log, it looks to me that you don't have a sufficiently new libbpf installed. Since #3285, we require libbpf which includes libbpf/libbpf@dd589c3.
from bpftrace.
Related Issues (20)
- some func hook invaildly, such as : kprobe:sched_setattr HOT 7
- How to get `cwd` like `comm`? HOT 3
- iter:task_file: invalid write to stack R10 off=8 size=4 HOT 2
- tests: variable.tracepoint behaves randomly on Linux v6.10 HOT 1
- Can't set uprobes using the appimage starting from v0.21.0 HOT 1
- `--dry-run` should not run programs
- bpftrace fails to build with bfd support on openSUSE Tumbleweed
- Unable to pass 64bit hex values larger than LLONG_MAX as positional arguments HOT 3
- Docs update suggestion for installation on Ubuntu 22.04 and lower HOT 1
- kfunc feature discovery on power
- Debug output (`-d`) in AOT HOT 1
- RFC: Probe Attributes HOT 7
- RFC: Methods HOT 2
- `strcontains` fails with stack exceeded error HOT 7
- Support an optional size parameter for `path()` builtin HOT 1
- Split output on `-lv`, to `stdout` and `stderr` HOT 2
- join(args.argv) prints nothing HOT 14
- Tracing programs must provide btf_id HOT 2
- Add AOT support for uprobe probes that use Debug Info
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpftrace.