Merge branch 'bw/trace-no-inline-getnanotime'
No file-scope static variables in an inlined function, please. * bw/trace-no-inline-getnanotime: trace.c: do not mark getnanotime() as "inline"
This commit is contained in:
commit
c11dc64722
2
trace.c
2
trace.c
@ -385,7 +385,7 @@ static inline uint64_t gettimeofday_nanos(void)
|
|||||||
* Returns nanoseconds since the epoch (01/01/1970), for performance tracing
|
* Returns nanoseconds since the epoch (01/01/1970), for performance tracing
|
||||||
* (i.e. favoring high precision over wall clock time accuracy).
|
* (i.e. favoring high precision over wall clock time accuracy).
|
||||||
*/
|
*/
|
||||||
inline uint64_t getnanotime(void)
|
uint64_t getnanotime(void)
|
||||||
{
|
{
|
||||||
static uint64_t offset;
|
static uint64_t offset;
|
||||||
if (offset > 1) {
|
if (offset > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user