Home
last modified time | relevance | path

Searched hist:ae9b3ff90d77e8ccce1c7404dfada381d60a6fc4 (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutils/ext/arch/riscv/
H A Dmcount_rv.Sae9b3ff90d77e8ccce1c7404dfada381d60a6fc4 Tue Jun 20 02:16:20 UTC 2023 Alvin Chang <alvinga@andestech.com> libutils: riscv: Implement _mount() and __ftrace_return()

When the core and TA are compiled with the -pg option, the compiler
inserts a call to _mcount() into every function prologue. It can be used
to trace the function calls such as ftrace.

Implement the _mount() to prepare the necessary parameters for ftrace.
The __ftrace_return() is also implemented for returning from ftrace.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Marouene Boubakri <marouene.boubakri@nxp.com>
H A Dsub.mkae9b3ff90d77e8ccce1c7404dfada381d60a6fc4 Tue Jun 20 02:16:20 UTC 2023 Alvin Chang <alvinga@andestech.com> libutils: riscv: Implement _mount() and __ftrace_return()

When the core and TA are compiled with the -pg option, the compiler
inserts a call to _mcount() into every function prologue. It can be used
to trace the function calls such as ftrace.

Implement the _mount() to prepare the necessary parameters for ftrace.
The __ftrace_return() is also implemented for returning from ftrace.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Marouene Boubakri <marouene.boubakri@nxp.com>