Comments (5)
Maybe the assembly output has something to do with LLVMInitializeBPFAsmPrinter() in src/ast/codegen_llvm.cpp.
from bpftrace.
Something happens in this for loop that makes it print out the bytecode. But Idk what it is.
src/attached_probe.cpp
for (int attempt=0; attempt<3; attempt++)
{
progfd_ = bpf_prog_load(progtype(probe_.type), namep,
reinterpret_cast<struct bpf_insn*>(insns), prog_len, license,
kernel_version(attempt), log_level, log_buf, log_buf_size);
if (progfd_ >= 0)
break;
}
from bpftrace.
It's coming out of bpf_prog_load()? We can read that code, it's in bcc: https://github.com/iovisor/bcc/blob/3835b2d85e70f18eecff71c7b66d9f416ec1bcd5/src/cc/libbpf.c#L467 .. maybe we need to set log_level.
from bpftrace.
yep. log_level
is the one setting the bytecode. The problem is when I call with a -d
, AttachedProbe::load_prog
is not beem called. Only when I pass a -v
from bpftrace.
We can start by increasing verbosity for -v
(as Brendan suggested in the OP) and add make this work for -d
as well in the future.
from bpftrace.
Related Issues (20)
- 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
- tests: call.strcontains fails constantly on Linux v6.10 HOT 4
- Can't set uprobes using the appimage starting from v0.21.0 HOT 1
- `--dry-run` should not run programs HOT 3
- 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 11
- RFC: Methods HOT 2
- `strcontains` fails with stack exceeded error HOT 7
- Support an optional size parameter for `path()` builtin HOT 5
- Split output on `-lv`, to `stdout` and `stderr` HOT 2
- join(args.argv) prints nothing HOT 15
- Tracing programs must provide btf_id HOT 2
- Add AOT support for uprobe probes that use Debug Info HOT 1
- Feature Request: perf the specific process/thread HOT 3
- Compilation error with gcc-15: uint64_t has not been declared
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.