Jordan Rome

Results 346 comments of Jordan Rome

@vvzxy bpftrace comes with a few builtin cgroup functions e.g. - https://github.com/bpftrace/bpftrace/blob/master/man/adoc/bpftrace.adoc#cgroupid - https://github.com/bpftrace/bpftrace/blob/master/man/adoc/bpftrace.adoc#cgroup_path And there is the `cgroup` builtin. Do any of these meet your needs?

Our docs say the `cgroup` builtin (not the functions) only work on cgroupV2 but the underlying bpf helper we use `bpf_get_current_cgroup_id` doesn't specify cgroupV2 according to the [main eBPF docs](https://docs.ebpf.io/linux/helper-function/bpf_get_current_cgroup_id/)....

Additionally `min_value`in utils is calculating the MAX value lol: ``` int64_t min_value(const std::vector &value, int nvalues) { int64_t val, max = 0; for (int i = 0; i < nvalues;...

Sorry, I should have included a more obvious repo. See below (this is on master): ``` $ sudo BPFTRACE_DEBUG_OUTPUT=1 ./src/bpftrace -e 'hardware:cache-misses:500000 { print((cpu)); @ = min(cpu); }' -v ......

Yuuup! Looks like I was the one who broke it. Let me look into re-adding this same solution to fix this - get ready for a v3! Edit: well as...

Fixed here: https://github.com/bpftrace/bpftrace/pull/3298