* [PATCH] perf/docu: Update header documentation on BPF_PROG_INFO
@ 2025-08-05 9:03 Thomas Richter
2025-08-15 20:33 ` Namhyung Kim
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Richter @ 2025-08-05 9:03 UTC (permalink / raw)
To: linux-kernel, linux-s390, linux-perf-users, acme, namhyung
Cc: agordeev, gor, sumanthk, hca, japo, Thomas Richter
Update the perf.data file format description on header
section HEADER_BPF_PROG_INFO.
The information is taken from process_bpf_prog_info()
and write_bpf_prog_info() from file util/header.c.
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Reviewed-by: Jan Polensky <japo@linux.ibm.com>
---
tools/perf/Documentation/perf.data-file-format.txt | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt
index cd95ba09f727..0437eb5d9188 100644
--- a/tools/perf/Documentation/perf.data-file-format.txt
+++ b/tools/perf/Documentation/perf.data-file-format.txt
@@ -348,6 +348,16 @@ to special needs.
struct perf_bpil, which contains detailed information about
a BPF program, including type, id, tag, jited/xlated instructions, etc.
+The format of data in HEADER_BPF_PROG_INFO is as follows:
+ u32 count
+
+ struct perf_bpil {
+ u32 info_len; /* size of struct bpf_prog_info, when the tool is compiled */
+ u32 data_len; /* total bytes allocated for data, round up to 8 bytes */
+ u64 arrays; /* which arrays are included in data */
+ struct bpf_prog_info info;
+ u8 data[];
+ }[count];
HEADER_BPF_BTF = 26,
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] perf/docu: Update header documentation on BPF_PROG_INFO
2025-08-05 9:03 [PATCH] perf/docu: Update header documentation on BPF_PROG_INFO Thomas Richter
@ 2025-08-15 20:33 ` Namhyung Kim
2025-09-16 14:22 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 3+ messages in thread
From: Namhyung Kim @ 2025-08-15 20:33 UTC (permalink / raw)
To: Thomas Richter
Cc: linux-kernel, linux-s390, linux-perf-users, acme, agordeev, gor,
sumanthk, hca, japo
Hello,
On Tue, Aug 05, 2025 at 11:03:49AM +0200, Thomas Richter wrote:
> Update the perf.data file format description on header
> section HEADER_BPF_PROG_INFO.
> The information is taken from process_bpf_prog_info()
> and write_bpf_prog_info() from file util/header.c.
>
> Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
> Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
> Reviewed-by: Jan Polensky <japo@linux.ibm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Thanks,
Namhyung
> ---
> tools/perf/Documentation/perf.data-file-format.txt | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt
> index cd95ba09f727..0437eb5d9188 100644
> --- a/tools/perf/Documentation/perf.data-file-format.txt
> +++ b/tools/perf/Documentation/perf.data-file-format.txt
> @@ -348,6 +348,16 @@ to special needs.
>
> struct perf_bpil, which contains detailed information about
> a BPF program, including type, id, tag, jited/xlated instructions, etc.
> +The format of data in HEADER_BPF_PROG_INFO is as follows:
> + u32 count
> +
> + struct perf_bpil {
> + u32 info_len; /* size of struct bpf_prog_info, when the tool is compiled */
> + u32 data_len; /* total bytes allocated for data, round up to 8 bytes */
> + u64 arrays; /* which arrays are included in data */
> + struct bpf_prog_info info;
> + u8 data[];
> + }[count];
>
> HEADER_BPF_BTF = 26,
>
> --
> 2.48.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] perf/docu: Update header documentation on BPF_PROG_INFO
2025-08-15 20:33 ` Namhyung Kim
@ 2025-09-16 14:22 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2025-09-16 14:22 UTC (permalink / raw)
To: Namhyung Kim
Cc: Thomas Richter, linux-kernel, linux-s390, linux-perf-users,
agordeev, gor, sumanthk, hca, japo
On Fri, Aug 15, 2025 at 01:33:50PM -0700, Namhyung Kim wrote:
> On Tue, Aug 05, 2025 at 11:03:49AM +0200, Thomas Richter wrote:
> > Update the perf.data file format description on header
> > section HEADER_BPF_PROG_INFO.
> > The information is taken from process_bpf_prog_info()
> > and write_bpf_prog_info() from file util/header.c.
> > Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
> > Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
> > Reviewed-by: Jan Polensky <japo@linux.ibm.com>
> Acked-by: Namhyung Kim <namhyung@kernel.org>
Thanks, applied to perf-tools-next,
- Arnaldo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-16 14:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-05 9:03 [PATCH] perf/docu: Update header documentation on BPF_PROG_INFO Thomas Richter
2025-08-15 20:33 ` Namhyung Kim
2025-09-16 14:22 ` Arnaldo Carvalho de Melo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.