mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Running command pai -r <file> might encounter entries of type PERF_RECORD_SWITCH. Entries of that type are currently not handled and cause an error message: # pai -r ~/paicrypto.000 unknown header-type 14 unknown header-type 14 \ unknown header-type 14 ... The error message is not terminated by a newline. Handle entries of this type PERF_RECORD_SWITCH. These records do not carry any payload at all, just a bit is set in the header::misc member. This bit set determines context switch out. Output after: # ./pai -r ~/paicrypto.000 0x4b814018f4f3 6 cs-out 0x4b817bc3c936 6 cs-in 0x4b817bc5246c 6 cs-out 0x4b817bd90e9a 6 cs-in .... # Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>