[PATCH v3] bpf: support new commands BPF_MAP_*_BATCH

Dmitry V. Levin ldv at altlinux.org
Sat Apr 4 16:23:00 UTC 2020


On Sat, Apr 04, 2020 at 06:13:37PM +0200, Paul Chaignon wrote:
[...]
> Then, I think I need to do "END_BPF_CMD_DECODER(0)" for entering and
> "return RVAL_DECODED" for exiting.

Yes, this trick should work.

> With the appropriate tprintf, that
> should give me:
> 
>   bpf(BPF_MAP_LOOKUP_BATCH, {batch={[...], count=32, [...]} => {count=30}, ...}, 40)
> 
> when decode_attr_extra_data() actually prints something.

I'm not sure what do you suggest to print, besides count, on exiting
syscall, but I haven't seen the patch yet. :)


-- 
ldv


More information about the Strace-devel mailing list