Daniel Xu

Results 265 comments of Daniel Xu

Could you share some more concrete examples of what tasks you're trying to accomplish?

String processing in a BPF prog is tricky. It might require new kernel helpers. It'll definitely require @Birch-san 's map-backed strings. Without map-backed strings you can process at most ~150...

Here's the `strtol()` helper: https://github.com/torvalds/linux/blob/007b350a58754a93ca9fe50c498cc27780171153/include/uapi/linux/bpf.h#L3587 https://github.com/torvalds/linux/blob/df04fbe8680bfe07f3d7487eccff9f768bb02533/kernel/bpf/helpers.c#L500-L513

BPF helpers are implemented in the kernel. It's unlikely we'll be able to implement strtok() without help from the kernel.

This is only known to be an issue with LLVM 12. The current suggested workaround is to build bcc with: `-DENABLE_LLVM_SHARED=1` cmake flag

> The syntax `print(@map, 10)` to limit to the top ten rows is also missing. [It seems to only work with global map variables?] @Nudin , are you thinking of...

I think we're still missing docs on ptr dereference. Especially the stuff #1881 added

Need usdt documentation in man page too

I have to admit I don't love either option. ### probe syntax The main benefit for this one is there's no language changes needed. This is a pretty big advantage...

> > ### probe syntax > > The disadvantage in my opinion is the syntax doesn't really fit super well. If you squint at the code it makes sense but...