Skip to content

Commit 817af72

Browse files
Thomas Richteracmel
authored andcommitted
perf tools: Update header documentation on BPF_PROG_INFO
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. Reviewed-by: Jan Polensky <[email protected]> Signed-off-by: Thomas Richter <[email protected]> Acked-by: Namhyung Kim <[email protected]> Acked-by: Sumanth Korikkar <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Vasily Gorbik <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent c0e885e commit 817af72

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/perf/Documentation/perf.data-file-format.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,16 @@ to special needs.
348348

349349
struct perf_bpil, which contains detailed information about
350350
a BPF program, including type, id, tag, jited/xlated instructions, etc.
351+
The format of data in HEADER_BPF_PROG_INFO is as follows:
352+
u32 count
353+
354+
struct perf_bpil {
355+
u32 info_len; /* size of struct bpf_prog_info, when the tool is compiled */
356+
u32 data_len; /* total bytes allocated for data, round up to 8 bytes */
357+
u64 arrays; /* which arrays are included in data */
358+
struct bpf_prog_info info;
359+
u8 data[];
360+
}[count];
351361

352362
HEADER_BPF_BTF = 26,
353363

0 commit comments

Comments
 (0)