mirror of
https://github.com/torvalds/linux.git
synced 2024-09-21 07:23:06 +00:00
28bb030f93
Support dynamic ftrace including dynamic graph tracer. Gcc-csky with -pg will produce call site in every function prologue and we can use these call site to hook trace function. gcc with -pg origin call site: push lr jbsr _mcount nop32 nop32 If the (callee - caller)'s offset is in range of bsr instruction, we'll modify code with: push lr bsr _mcount nop32 nop32 Else if the (callee - caller)'s offset is out of bsr instrunction, we'll modify code with: push lr movih r26, ... ori r26, ... jsr r26 (r26 is reserved for jsr link reg in csky abiv2 spec.) Signed-off-by: Guo Ren <ren_guo@c-sky.com> |
||
---|---|---|
.. | ||
inc/abi | ||
cacheflush.c | ||
fpu.c | ||
Makefile | ||
mcount.S | ||
memcmp.S | ||
memcpy.S | ||
memmove.S | ||
memset.S | ||
strcmp.S | ||
strcpy.S | ||
strksyms.c | ||
strlen.S | ||
sysdep.h |