From 313ea53699d2f429740da311bd6305d1964ccf44 Mon Sep 17 00:00:00 2001 From: Gopi Krishna Nedanuri <gnedanur@codeaurora.org> Date: Fri, 11 May 2018 16:23:41 +0530 Subject: [PATCH] lrdp_v2: Use correct flag to extract trace point name Due to change in enum on 4.14 kernel, ftrace is not properly generated. Change-Id: I73d12d2a836d7572140e89c2f01ed5a3ca42ed67 --- linux-ramdump-parser-v2/debug_image_v2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100755 => 100644 linux-ramdump-parser-v2/debug_image_v2.py diff --git a/linux-ramdump-parser-v2/debug_image_v2.py b/linux-ramdump-parser-v2/debug_image_v2.py old mode 100755 new mode 100644 index add86d3..32e78e5 --- a/linux-ramdump-parser-v2/debug_image_v2.py +++ b/linux-ramdump-parser-v2/debug_image_v2.py @@ -348,7 +348,9 @@ class DebugImage_v2(): class_offset = ram_dump.field_offset(self.event_call, 'class') flags_offset = ram_dump.field_offset(self.event_call, 'flags') flags = ram_dump.read_word(ftrace_list + flags_offset) - if ram_dump.kernel_version >= (4, 9): + if ram_dump.kernel_version >= (4, 14): + TRACE_EVENT_FL_TRACEPOINT = 0x10 + elif ram_dump.kernel_version >= (4, 9): TRACE_EVENT_FL_TRACEPOINT = 0x20 else: TRACE_EVENT_FL_TRACEPOINT = 0x40 -- GitLab