mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
10626c32e3
This patch contains basic ftrace support for RV64I platform. Specifically, function tracer (HAVE_FUNCTION_TRACER), function graph tracer (HAVE_FUNCTION_GRAPH_TRACER), and a frame pointer test (HAVE_FUNCTION_GRAPH_FP_TEST) are implemented following the instructions in Documentation/trace/ftrace-design.txt. Note that the functions in both ftrace.c and setup.c should not be hooked with the compiler's -pg option: to prevent infinite self- referencing for the former, and to ignore early setup stuff for the latter. Signed-off-by: Alan Kao <alankao@andestech.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
11 lines
347 B
C
11 lines
347 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2017 Andes Technology Corporation */
|
|
|
|
/*
|
|
* The graph frame test is not possible if CONFIG_FRAME_POINTER is not enabled.
|
|
* Check arch/riscv/kernel/mcount.S for detail.
|
|
*/
|
|
#if defined(CONFIG_FUNCTION_GRAPH_TRACER) && defined(CONFIG_FRAME_POINTER)
|
|
#define HAVE_FUNCTION_GRAPH_FP_TEST
|
|
#endif
|