Re: [PATCH bpf-next v4] scripts/bpf_doc.py: implement json output format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux