mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-05 17:01:47 +00:00
parent
ef8140cce5
commit
1b489820a9
@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* \brief Trace timestamp
|
* \brief Trace timestamp
|
||||||
* \author Stefan Kalkowski
|
* \author Stefan Kalkowski
|
||||||
|
* \author Sebastian Sumpf
|
||||||
* \date 2019-03-25
|
* \date 2019-03-25
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -22,7 +23,10 @@ namespace Genode { namespace Trace {
|
|||||||
|
|
||||||
inline Timestamp timestamp()
|
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