Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <japo@linux.ibm.com>
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Thomas Richter and committed by
Arnaldo Carvalho de Melo
817af72c c0e885e9

+10
+10
tools/perf/Documentation/perf.data-file-format.txt
··· 348 348 349 349 struct perf_bpil, which contains detailed information about 350 350 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]; 351 361 352 362 HEADER_BPF_BTF = 26, 353 363