2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00
linux-next/arch
David Sharp 8cbd9cc625 tracing,x86: Add a TSC trace_clock
In order to promote interoperability between userspace tracers and ftrace,
add a trace_clock that reports raw TSC values which will then be recorded
in the ring buffer. Userspace tracers that also record TSCs are then on
exactly the same time base as the kernel and events can be unambiguously
interlaced.

Tested: Enabled a tracepoint and the "tsc" trace_clock and saw very large
timestamp values.

v2:
Move arch-specific bits out of generic code.
v3:
Rename "x86-tsc", cleanups
v7:
Generic arch bits in Kbuild.

Google-Bug-Id: 6980623
Link: http://lkml.kernel.org/r/1352837903-32191-1-git-send-email-dhsharp@google.com

Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@linux.intel.com>
Signed-off-by: David Sharp <dhsharp@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2012-11-13 15:48:27 -05:00
..
alpha tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
arm tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
arm64 tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
avr32 tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
blackfin tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
c6x tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
cris tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
frv tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
h8300 tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
hexagon tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
ia64 tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
m32r tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
m68k tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
microblaze tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
mips tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
mn10300 tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
openrisc tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
parisc tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
powerpc tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
s390 tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
score tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
sh tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
sparc tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
tile tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
um tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
unicore32 tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
x86 tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
xtensa tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
.gitignore
Kconfig Merge branch 'modules-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux 2012-10-14 13:39:34 -07:00