@@ -41,6 +41,7 @@
#include <linux/nmi.h>
#include <linux/fs.h>
#include <linux/sched/rt.h>
+#include <linux/trace_output_stm.h>
#include "trace.h"
#include "trace_output.h"
@@ -1884,8 +1885,10 @@ trace_function(struct trace_array *tr,
entry->ip = ip;
entry->parent_ip = parent_ip;
- if (!call_filter_check_discard(call, entry, buffer, event))
+ if (!call_filter_check_discard(call, entry, buffer, event)) {
__buffer_unlock_commit(buffer, event);
+ trace_func_to_stm(ip, parent_ip);
+ }
}
#ifdef CONFIG_STACKTRACE
This patch inserts an output from Ftrace to STM, logs the pointer of the functions and their parents to STM. Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org> --- kernel/trace/trace.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 1.9.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel