diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2009-12-17 21:26:50 -0500 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2009-12-17 21:26:50 -0500 |
commit | 10f45252adb78753aa50d25b148fc608e3b4c224 (patch) | |
tree | 08c8c75e25bf594a20b1aa15b1acd65d4715c04f /arch | |
parent | f450dbd5414ff909283ca6fb48fc2c03cb244370 (diff) |
Add tracing support and hook up Litmus KConfig for x86
- fix requesting more than 2^11 pages (MAX_ORDER)
to system allocator
to be merged:
- feather-trace generic implementation
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/Kconfig | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/feather_trace.h | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 72ace9515a07..e2cd95ebeeb1 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -2092,3 +2092,5 @@ source "crypto/Kconfig" | |||
2092 | source "arch/x86/kvm/Kconfig" | 2092 | source "arch/x86/kvm/Kconfig" |
2093 | 2093 | ||
2094 | source "lib/Kconfig" | 2094 | source "lib/Kconfig" |
2095 | |||
2096 | source "litmus/Kconfig" | ||
diff --git a/arch/x86/include/asm/feather_trace.h b/arch/x86/include/asm/feather_trace.h new file mode 100644 index 000000000000..f60fbed07afb --- /dev/null +++ b/arch/x86/include/asm/feather_trace.h | |||
@@ -0,0 +1,11 @@ | |||
1 | #ifndef _ARCH_FEATHER_TRACE_H | ||
2 | #define _ARCH_FEATHER_TRACE_H | ||
3 | |||
4 | static inline unsigned long long ft_timestamp(void) | ||
5 | { | ||
6 | unsigned long long ret; | ||
7 | __asm__ __volatile__("rdtsc" : "=A" (ret)); | ||
8 | return ret; | ||
9 | } | ||
10 | |||
11 | #endif | ||