mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
common: iotrace: add timestamp to iotrace records
Add timestamp to each iotrace record to aid in debugging of IO timing access bugs. Signed-off-by: Ramon Fried <ramon.fried@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a74440b27b
commit
b5e0e360fd
1 changed files with 3 additions and 1 deletions
|
|
@ -27,11 +27,13 @@ enum iotrace_flags {
|
|||
* struct iotrace_record - Holds a single I/O trace record
|
||||
*
|
||||
* @flags: I/O access type
|
||||
* @timestamp: Timestamp of access
|
||||
* @addr: Address of access
|
||||
* @value: Value written or read
|
||||
*/
|
||||
struct iotrace_record {
|
||||
enum iotrace_flags flags;
|
||||
u64 timestamp;
|
||||
phys_addr_t addr;
|
||||
iovalue_t value;
|
||||
};
|
||||
|
|
@ -81,7 +83,7 @@ static void add_record(int flags, const void *ptr, ulong value)
|
|||
iotrace.start + iotrace.offset,
|
||||
sizeof(value));
|
||||
}
|
||||
|
||||
rec->timestamp = timer_get_us();
|
||||
rec->flags = flags;
|
||||
rec->addr = map_to_sysmem(ptr);
|
||||
rec->value = value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue