Viktor Malík
Viktor Malík
I have it in the back of my mind, but it will need some features which are now missing and a discussion on the syntax.
Yeah, just to summarize technical details - this should use the `bpf_for_each_map_elem` helper with a custom callback (created from the `for` loop body on behalf of the user), similarly to...
Thanks @jordalgo. Just assign the issue to yourself once you start working on it (I'll do the same).
> Is there a consideration for anonymous functions? Not at the moment but it's certainly something to consider, especially if we introduce helpers with callbacks. Besides `bpf_loop`, there's `bpf_for_each_map_elem` which...
Agreed with @danobi, #2624 uses the `$arg: type` syntax for function arguments so we should somehow mirror that here (we could eventually add `$var: type = ...` syntax for local...
Sure, feel free to take it.
Since there's a number of related tickets, I'm going to track them here so that we don't forget to close them. #2459 #1004.
Thanks for raising this question! At this point, bpftrace doesn't support calling other BPF programs. We're now working on an initial support for user-defined functions (#2516) so we should evaluate...
Yeah, the reason is that `/bin/bash` is compiled as PIE and therefore the runtime address is different from the one in the ELF file. We could add something analogical to...
I believe that the tool has been deliberately designed to print status every second, even when no swap has happened in the meantime. In addition, bpftrace doesn't allow to easily...