Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26D76274FCA for ; Fri, 9 May 2025 09:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746781513; cv=none; b=QYxNlOE9dLgH4UcZPNY50tB16MOnCs0hhmSF07OUhmq6sPQGuhCTYrdU6him+Itw5Ss8STj0XQvdo6475j0YU/KiQzUfJyaXaBLNiQDzvRjJJ8fq0QXVCctXMr7OBAEGUhmPfHVh/xY+YDB3H/8lyWwp0P/MtQQiUt/qRzO21Hw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746781513; c=relaxed/simple; bh=trUsVSs1iOFkx4vC0pQuauaGDAtPMOnT3SxD3P3Zv4M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZZxvQ3p7ZMru8quH7rFKujd7yMXz/BKALoeBv9U9fJ4EHAXjyEjIneuBw6N3lI0DaU0nGXxdfAcv6I3VcA2SqYlso3bR1GD1pC1yHM4PKIEN7qbf7Pw8Ak6b8PsxZW/Cx2SaBQ11CjucET3BIzpkR/zVtuBIQK89vm/X1n19UHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q4aIxehk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q4aIxehk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32ADCC4CEE4; Fri, 9 May 2025 09:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746781512; bh=trUsVSs1iOFkx4vC0pQuauaGDAtPMOnT3SxD3P3Zv4M=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Q4aIxehkHwcsU58tU0ykdIz7HAXWcZUFStCes+DCUrv+jMur6/o4D5IjmNfNoxpGX Vl2aWITirY/zpiDawuH+lLLmA2ktlpuD+Hi5JH8cRbHq2MT/d0JmsTyPH8hj3tvaYj zdZkCQbKru7l9V5g7XGS9JQi0QUZxmXhZTov5EfFsEI6z3I73O+vmuSxZwdL/NuZz5 fs6nI+/RPj/SR1moeAsh8DWCY7Ng/X5UbBdIxVHKPiq6nApBHbV66TbACUIMGTdEgu Fc42khm2I84s0kRPQQS94WRMBYUCWlaRP9Kd5Z7RGzXMYsDhZoX5LGYk3/NAxW0eUu wSUV3Ts4fuIew== Message-ID: Date: Fri, 9 May 2025 10:05:09 +0100 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH bpf-next v4] scripts/bpf_doc.py: implement json output format To: ihor.solodrai@linux.dev, andrii@kernel.org Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, eddyz87@gmail.com, mykolal@fb.com, dylan.reimerink@isovalent.com, kernel-team@meta.com References: <20250508203708.2520847-1-isolodrai@meta.com> From: Quentin Monnet Content-Language: en-GB In-Reply-To: <20250508203708.2520847-1-isolodrai@meta.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 2025-05-08 13:37 UTC-0700 ~ Ihor Solodrai > 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@meta.com/ > v2: https://lore.kernel.org/bpf/20250507182802.3833349-1-isolodrai@meta.com/ > v1: https://lore.kernel.org/bpf/20250506000605.497296-1-isolodrai@meta.com/ > > Signed-off-by: Ihor Solodrai Thanks a lot for this! Tested-by: Quentin Monnet Reviewed-by: Quentin Monnet