"Stolen" from IKD patches. Better version is
+#define get_profiler_timestamp() \
+ ( { \
+ register u64 __res; \
+ if (boot_cpu_data.x86_capability & 0x10) { \
+ __asm__ __volatile__( \
+ "rdtsc" : "=A"(__res) \
+ ); \
+ } \
+ else { \
+ /* no rdtsc, use jiffies instead */ \
+ __res = jiffies; \
+ } \
+ __res; \
+ } )
Just in case you run on a machine without rdtsc.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/