1From 47a1db21f6c5d17c94c58c3fe0dcce35c623dbf4 Mon Sep 17 00:00:00 2001 2From: Liwei Song <liwei.song@windriver.com> 3Date: Tue, 23 Jun 2020 04:47:20 +0000 4Subject: [PATCH] sleepgraph: add support for RT kernel ftrace flags 5 6with PREEMPT_RT enabled in kernel, ftrace have a different 7flags format: 8 9 _-----=> irqs-off 10 / _----=> need-resched 11 | / _----=> need-resched 12 || / _---=> hardirq/softirq 13 ||| / _--=> preempt-depth 14 ||||/ delay 15TASK-PID CPU# ||||| TIMESTAMP FUNCTION 16 | | | ||||| | | 17 18add support for this. 19 20Upstream-Status: Submitted [https://github.com/intel/pm-graph/pull/18] 21 22Signed-off-by: Liwei Song <liwei.song@windriver.com> 23--- 24 sleepgraph.py | 2 +- 25 1 file changed, 1 insertion(+), 1 deletion(-) 26 27diff --git a/sleepgraph.py b/sleepgraph.py 28index cfed8e09e0e6..561f165cf9be 100755 29--- a/sleepgraph.py 30+++ b/sleepgraph.py 31@@ -2689,7 +2689,7 @@ class TestProps: 32 '[ +!#\*@$]*(?P<dur>[0-9\.]*) .*\| (?P<msg>.*)' 33 ftrace_line_fmt_nop = \ 34 ' *(?P<proc>.*)-(?P<pid>[0-9]*) *\[(?P<cpu>[0-9]*)\] *'+\ 35- '(?P<flags>.{4}) *(?P<time>[0-9\.]*): *'+\ 36+ '(?P<flags>.{4,7}) *(?P<time>[0-9\.]*): *'+\ 37 '(?P<msg>.*)' 38 def __init__(self): 39 self.stamp = '' 40-- 412.24.1 42 43