2025-05-08 13:37 UTC-0700 ~ Ihor Solodrai <isolodrai@xxxxxxxx> > bpf_doc.py parses bpf.h header to collect information about various > API elements (such as BPF helpers) and then dump them in one of the > supported formats: rst docs and a C header. > > It's useful for external tools to be able to consume this information > in an easy-to-parse format such as JSON. Implement JSON printers and > add --json command line argument. > > v3->v4: refactor attrs to only be a helper's field > v2->v3: nit cleanup > v1->v2: add json printer for syscall target > > v3: https://lore.kernel.org/bpf/20250507203034.270428-1-isolodrai@xxxxxxxx/ > v2: https://lore.kernel.org/bpf/20250507182802.3833349-1-isolodrai@xxxxxxxx/ > v1: https://lore.kernel.org/bpf/20250506000605.497296-1-isolodrai@xxxxxxxx/ > > Signed-off-by: Ihor Solodrai <isolodrai@xxxxxxxx> Thanks a lot for this! Tested-by: Quentin Monnet <qmo@xxxxxxxxxx> Reviewed-by: Quentin Monnet <qmo@xxxxxxxxxx>