Daniel Xu

Results 63 issues of Daniel Xu

For example, there could be multiple subsystems in a project, and it would nice to be able to selectively enable or disable logs with a certain tag.

help wanted

Maybe the API changed? See the failing check.

Before, we checked that we could load a prog of type BPF_PROG_TYPE_RAW_TRACEPOINT and assumed success meant BPF_PROG_RUN support also existed. It turns out that assumption was false. Fix incorrect feature...

When the CI moves away from bionic we'll need focal images to build against. ##### Checklist - [ ] Language changes are updated in `man/adoc/bpftrace.adoc` and if needed in `docs/reference_guide.md`...

Copied from: https://github.com/iovisor/bpftrace/pull/1671: --- This is rather a bug report with failing tests instead of a patch to fix problems. ## Environment * Ubuntu 20.04.1 / Kernel 5.4.0-58-generic * bpftrace...

bug

Consider this script: ``` $ sudo bpftrace -e 'uprobe:/bin/bash:INVALID { 1 }' No probes to attach ``` `INVALID` is a bad attachpoint but we don't warn about it. In this...

RFC
priority: low
difficulty: easy

Seems we have some language features not fully documented (like bitshift operators in #1322). Would be good to go through language grammar and make sure everything is in the reference...

good first issue
docs

There's a helper to access percpu data now: https://github.com/torvalds/linux/blob/0aa099a312b6323495a23d758009eb7fc04a7617/include/uapi/linux/bpf.h#L4489 However, it's not so simple to use. IIUC, there needs to be BTF ID to the data in question in the...

enhancement
discussion-needed

Recently bpf->kernel functions calls were merged into the kernel. This is distinct from a bpf helper in that it's not stable ABI. You can't call any function either -- the...

enhancement
priority: medium
difficulty: hard
discussion-needed

### What reproduces the bug? $ sudo ./build/src/bpftrace -e 'iter:task { print(ctx->task->comm) }' Attaching 1 probe... ### bpftrace --info ``` System OS: Linux 5.11.6-arch1-1 #1 SMP PREEMPT Thu, 11 Mar...

bug