Leo Yan
81e70d7ee4
perf session: Dump PERF_RECORD_TIME_CONV event
...
Now perf tool uses the common stub function process_event_op2_stub() for
dumping TIME_CONV event, thus it doesn't output the clock parameters
contained in the event.
This patch adds the callback function for dumping the hardware clock
parameters in TIME_CONV event.
Before:
# perf report -D
0x978 [0x38]: event: 79
.
. ... raw event: size 56 bytes
. 0000: 4f 00 00 00 00 00 38 00 15 00 00 00 00 00 00 00 O.....8.........
. 0010: 00 00 40 01 00 00 00 00 86 89 0b bf df ff ff ff ..@........<BF><DF><FF><FF><FF>
. 0020: d1 c1 b2 39 03 00 00 00 ff ff ff ff ff ff ff 00 <D1><C1><B2>9....<FF><FF><FF><FF><FF><FF><FF>.
. 0030: 01 01 00 00 00 00 00 00 ........
0 0 0x978 [0x38]: PERF_RECORD_TIME_CONV
: unhandled!
[...]
After:
# perf report -D
0x978 [0x38]: event: 79
.
. ... raw event: size 56 bytes
. 0000: 4f 00 00 00 00 00 38 00 15 00 00 00 00 00 00 00 O.....8.........
. 0010: 00 00 40 01 00 00 00 00 86 89 0b bf df ff ff ff ..@........<BF><DF><FF><FF><FF>
. 0020: d1 c1 b2 39 03 00 00 00 ff ff ff ff ff ff ff 00 <D1><C1><B2>9....<FF><FF><FF><FF><FF><FF><FF>.
. 0030: 01 01 00 00 00 00 00 00 ........
0 0 0x978 [0x38]: PERF_RECORD_TIME_CONV
... Time Shift 21
... Time Muliplier 20971520
... Time Zero 18446743935180835206
... Time Cycles 13852918225
... Time Mask 0xffffffffffffff
... Cap Time Zero 1
... Cap Time Short 1
: unhandled!
[...]
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Gustavo A. R. Silva <gustavoars@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steve MacLean <Steve.MacLean@Microsoft.com>
Cc: Yonatan Goldschmidt <yonatan.goldschmidt@granulate.io>
Link: https://lore.kernel.org/r/20210428120915.7123-5-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2021-04-29 10:31:00 -03:00
..
2021-04-20 08:40:20 -03:00
2021-03-23 17:13:43 -03:00
2021-04-29 10:31:00 -03:00
2021-03-23 17:13:43 -03:00
2020-02-18 10:13:28 -03:00
2021-03-23 17:13:43 -03:00
2021-04-29 10:30:59 -03:00
2020-12-08 23:30:04 +09:00
2021-03-23 17:13:43 -03:00
2021-04-29 10:31:00 -03:00
2021-04-15 16:34:11 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:31:00 -03:00
2021-04-20 08:40:20 -03:00
2021-02-09 15:42:57 -03:00
2021-04-29 10:30:59 -03:00
2020-10-13 10:59:42 -03:00
2020-12-28 12:20:39 -03:00
2020-12-28 12:23:09 -03:00
2021-02-08 16:25:00 -03:00
2019-09-20 09:19:20 -03:00
2021-03-29 10:39:10 -03:00
2021-04-29 10:30:58 -03:00
2021-03-23 17:13:43 -03:00
2020-12-17 14:36:17 -03:00
2021-04-23 15:58:10 -03:00
2019-08-31 19:10:19 -03:00
2021-04-05 10:15:51 -03:00
2019-08-31 22:24:10 -03:00
2020-11-30 09:48:07 -03:00
2020-11-30 15:15:30 -03:00
2020-09-09 11:12:10 -03:00
2021-03-23 17:13:43 -03:00
2021-02-08 16:25:00 -03:00
2020-05-28 10:03:24 -03:00
2021-04-29 10:30:59 -03:00
2021-04-29 10:30:59 -03:00
2021-03-23 17:13:43 -03:00
2021-03-23 17:13:43 -03:00
2021-04-29 10:30:59 -03:00
2020-05-28 10:03:27 -03:00
2021-04-29 10:30:58 -03:00
2021-03-06 16:54:32 -03:00
2020-11-04 09:42:40 -03:00
2021-02-09 15:42:57 -03:00
2021-03-01 14:49:28 -03:00
2021-04-20 08:40:20 -03:00
2020-04-16 12:19:08 -03:00
2021-04-20 08:43:58 -03:00
2021-04-29 10:31:00 -03:00
2021-04-29 10:31:00 -03:00
2020-01-06 11:46:09 -03:00
2021-03-06 16:54:31 -03:00
2021-04-20 08:40:20 -03:00
2020-09-10 11:55:37 -03:00
2019-06-17 12:29:16 +02:00
2021-02-09 15:42:57 -03:00
2019-08-29 17:38:32 -03:00