eed542d696
Most archs with HAVE_ARCH_CALLER_ADDR have pretty much the same definitions of CALLER_ADDRx(n). Instead of duplicating the code for all the archs, define a ftrace_return_address0() and ftrace_return_address(n) that can be overwritten by the archs if they need to do something different. Instead of 7 macros in every arch, we now only have at most 2 (and actually only 1 as ftrace_return_address0() should be the same for all archs). The CALLER_ADDRx(n) will now be defined in linux/ftrace.h and use the ftrace_return_address*(n?) macros. This removes a lot of the duplicate code. Link: http://lkml.kernel.org/p/1400585464-30333-1-git-send-email-takahiro.akashi@linaro.org Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> |
||
---|---|---|
.. | ||
agp.h | ||
asm-offsets.h | ||
asmregs.h | ||
assembly.h | ||
atomic.h | ||
bitops.h | ||
bug.h | ||
bugs.h | ||
cache.h | ||
cacheflush.h | ||
checksum.h | ||
cmpxchg.h | ||
compat.h | ||
compat_ucontext.h | ||
current.h | ||
delay.h | ||
dma-mapping.h | ||
dma.h | ||
eisa_bus.h | ||
eisa_eeprom.h | ||
elf.h | ||
fb.h | ||
fixmap.h | ||
floppy.h | ||
ftrace.h | ||
futex.h | ||
grfioctl.h | ||
hardirq.h | ||
hardware.h | ||
ide.h | ||
io.h | ||
irq.h | ||
irqflags.h | ||
kbdleds.h | ||
Kbuild | ||
kmap_types.h | ||
ldcw.h | ||
led.h | ||
linkage.h | ||
machdep.h | ||
mc146818rtc.h | ||
mckinley.h | ||
mmu.h | ||
mmu_context.h | ||
mmzone.h | ||
module.h | ||
page.h | ||
parisc-device.h | ||
parport.h | ||
pci.h | ||
pdc.h | ||
pdc_chassis.h | ||
pdcpat.h | ||
perf.h | ||
perf_event.h | ||
pgalloc.h | ||
pgtable.h | ||
prefetch.h | ||
processor.h | ||
psw.h | ||
ptrace.h | ||
ropes.h | ||
rt_sigframe.h | ||
rtc.h | ||
runway.h | ||
scatterlist.h | ||
sections.h | ||
serial.h | ||
shmparam.h | ||
signal.h | ||
smp.h | ||
socket.h | ||
special_insns.h | ||
spinlock.h | ||
spinlock_types.h | ||
string.h | ||
superio.h | ||
switch_to.h | ||
syscall.h | ||
termios.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
traps.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
unwind.h |