s390/cpum_sf: Add helper to read TOD from trailer entries
The trailer entry contains a timestamp of the time when the sample-data-block became full. The timestamp specifies a TOD (time-of-day) value in either the STCK or STCKE format. Provide a helper function to return the TOD value depending on the setting of time format indicator. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:

committed by
Martin Schwidefsky

parent
fcc77f5073
commit
443d4beb82
@@ -981,7 +981,7 @@ static void hw_perf_event_update(struct perf_event *event, int flush_all)
|
||||
debug_sprintf_event(sfdbg, 6, "hw_perf_event_update: sdbt=%p "
|
||||
"overflow=%llu timestamp=0x%llx\n",
|
||||
sdbt, te->overflow,
|
||||
(te->f) ? te->timestamp : 0ULL);
|
||||
(te->f) ? trailer_timestamp(te) : 0ULL);
|
||||
|
||||
/* Collect all samples from a single sample-data-block and
|
||||
* flag if an (perf) event overflow happened. If so, the PMU
|
||||
|
Reference in New Issue
Block a user