mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-15 06:57:12 +00:00
parent
ef8140cce5
commit
1b489820a9
@ -1,6 +1,7 @@
|
||||
/*
|
||||
* \brief Trace timestamp
|
||||
* \author Stefan Kalkowski
|
||||
* \author Sebastian Sumpf
|
||||
* \date 2019-03-25
|
||||
*/
|
||||
|
||||
@ -22,7 +23,10 @@ namespace Genode { namespace Trace {
|
||||
|
||||
inline Timestamp timestamp()
|
||||
{
|
||||
return 0;
|
||||
uint64_t t;
|
||||
/* cycle counter */
|
||||
asm volatile("mrs %0, pmccntr_el0" : "=r" (t));
|
||||
return t;
|
||||
}
|
||||
} }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user