1 #ifndef _BITS_PROFILE_H
2 #define _BITS_PROFILE_H
10 FILE_LICENCE ( GPL2_OR_LATER );
15 * Get profiling timestamp
17 * @ret timestamp Timestamp
19 static inline __attribute__ (( always_inline )) uint64_t
20 profile_timestamp ( void ) {
23 /* Read timestamp counter */
24 __asm__ __volatile__ ( "rdtsc" : "=A" ( tsc ) );
28 #endif /* _BITS_PROFILE_H */