perf: Document recent additions to the perf.data file header
PATCH 1/1 perf: Document recent additions to the perf.data file header
Add documentation for recently added HEADER_E_MACHINE and HEADER_CLN_SIZE data to the perf.data file. Also fix a typo at the end of the header section.
--- .../perf/Documentation/perf.data-file-format.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
tools/perf/Documentation/perf.data-file-format.txt +15 -1
@@ -464,7 +464,21 @@ struct cpu_domain_info { struct domain_info domains[]; }; - other bits are reserved and should ignored for now + HEADER_E_MACHINE = 33, + +ELF machine and flags data. e_machine is expanded from 16 to 32 bits +for alignment. Format: + + u32 e_machine; + u32 e_flags; + + HEADER_CLN_SIZE = 34, + +The size of the cacheline in bytes. Format: + + unsigned int cln_size; + + other bits are reserved and should be ignored for now HEADER_FEAT_BITS = 256, Attributes
Signature · 1 line
2.43.0
Quoted 16 lines · Thomas Falcon
Add documentation for recently added
HEADER_E_MACHINEandHEADER_CLN_SIZEdata to the perf.data file. Also fix a typo at the end of the header section.Signed-off-by Thomas Falcon <[email protected]>--- .../perf/Documentation/perf.data-file-format.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)tools/perf/Documentation/perf.data-file-format.txt +0
-0@@ -464,7 +464,21 @@ struct cpu_domain_info { struct domain_info domains[];
tools/perf/Documentation/perf.data-file-format.txt struct cpu_domain_info { · line 473
Quoted 10 lines
tools/perf/Documentation/perf.data-file-format.txt +7
-1}; - other bits are reserved and should ignored for now + HEADER_E_MACHINE = 33, + +ELF machine and flags data. e_machine is expanded from 16 to 32 bits +for alignment. Format: + + u32 e_machine; + u32 e_flags;
Thanks Thomas! I found that endianness was missing from the e_machine/e_flags for capstone disassembly support. Part of me thinks the unused 16-bits of the e_machine could carry information like this. That said, we also have endianness information via the perf.data magic value. Anyway:
Ian
Quoted 14 lines
tools/perf/Documentation/perf.data-file-format.txt +8
-1+ + HEADER_CLN_SIZE = 34, + +The size of the cacheline in bytes. Format: + + unsigned int cln_size; + + other bits are reserved and should be ignored for now HEADER_FEAT_BITS = 256, Attributes --2.43.0
Quoted 34 lines · Ian Rogers
Quoted 16 lines · Thomas Falcon
Add documentation for recently added
HEADER_E_MACHINEandHEADER_CLN_SIZEdata to the perf.data file. Also fix a typo at the end of the header section.Signed-off-by Thomas Falcon <[email protected]>--- .../perf/Documentation/perf.data-file-format.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)tools/perf/Documentation/perf.data-file-format.txt +0
-0@@ -464,7 +464,21 @@ struct cpu_domain_info { struct domain_info domains[];tools/perf/Documentation/perf.data-file-format.txt struct cpu_domain_info { · line 473
Quoted 10 lines
tools/perf/Documentation/perf.data-file-format.txt +7
-1}; - other bits are reserved and should ignored for now + HEADER_E_MACHINE = 33, + +ELF machine and flags data. e_machine is expanded from 16 to 32 bits +for alignment. Format: + + u32 e_machine; + u32 e_flags;Thanks Thomas! I found that endianness was missing from the e_machine/e_flags for capstone disassembly support. Part of me thinks the unused 16-bits of the
e_machinecould carry information like this. That said, we also have endianness information via the perf.data magic value. Anyway:
Quoted 1 line
Reviewed-by Ian Rogers <[email protected]>
Thanks, applied to perf-tools-next, for v7.2.
- Arnaldo