Thread (7 messages) 7 messages, 2 authors, 2023-05-23

Re: [PATCH v2 4/5] LoongArch: ftrace: Add direct call trampoline samples support

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2023-05-23 14:34:51
Also in: lkml, loongarch

On Thu, 27 Apr 2023 10:12:31 +0800
Youling Tang [off-list ref] wrote:
The ftrace samples need per-architecture trampoline implementations
to save and restore argument registers around the calls to
my_direct_func* and to restore polluted registers (eg: ra).

Signed-off-by: Qing Zhang <redacted>
Signed-off-by: Youling Tang <redacted>
---
 arch/loongarch/Kconfig                      |  2 +
 samples/ftrace/ftrace-direct-modify.c       | 34 +++++++++++++++++
 samples/ftrace/ftrace-direct-multi-modify.c | 41 +++++++++++++++++++++
 samples/ftrace/ftrace-direct-multi.c        | 25 +++++++++++++
 samples/ftrace/ftrace-direct-too.c          | 27 ++++++++++++++
 samples/ftrace/ftrace-direct.c              | 23 ++++++++++++
 6 files changed, 152 insertions(+)
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help