From 065dce91856f4b00008a15254d2df4061b4c51b2 Mon Sep 17 00:00:00 2001 From: zyxzyx Date: Mon, 22 Jul 2024 18:00:43 +0800 Subject: [PATCH] change ftrace proto Signed-off-by: zyxzyx --- .../default/event_parsers/ftrace_sched_event_parser.cpp | 1 + protos/types/plugins/ftrace_data/default/sched.proto | 1 + 2 files changed, 2 insertions(+) diff --git a/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_parsers/ftrace_sched_event_parser.cpp b/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_parsers/ftrace_sched_event_parser.cpp index fe9ea6f86..de94a98eb 100755 --- a/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_parsers/ftrace_sched_event_parser.cpp +++ b/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_parsers/ftrace_sched_event_parser.cpp @@ -23,6 +23,7 @@ template void sched_blocked_reason_func(T& msg, uint8_t data[], siz msg->set_pid(FtraceFieldParser::ParseIntField(format.fields, i++, data, size)); msg->set_caller(FtraceFieldParser::ParseIntField(format.fields, i++, data, size)); msg->set_io_wait(FtraceFieldParser::ParseIntField(format.fields, i++, data, size)); + msg->set_caller_str(FtraceFieldParser::ParseStrField(format.fields, format.fields.size() - 1, data, size)); } REGISTER_FTRACE_EVENT_PARSE_FUNCTION(sched_blocked_reason, [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { diff --git a/protos/types/plugins/ftrace_data/default/sched.proto b/protos/types/plugins/ftrace_data/default/sched.proto index 291d99076..fc6fd2a99 100755 --- a/protos/types/plugins/ftrace_data/default/sched.proto +++ b/protos/types/plugins/ftrace_data/default/sched.proto @@ -23,6 +23,7 @@ message SchedBlockedReasonFormat { int32 pid = 1; uint64 caller = 2; uint32 io_wait = 3; + string caller_str = 4; } // /sys/kernel/debug/tracing/events/sched/sched_kthread_stop/format