summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel
diff options
context:
space:
mode:
authorLiwei Song <liwei.song@windriver.com>2020-06-23 14:21:27 +0800
committerKhem Raj <raj.khem@gmail.com>2020-06-22 23:23:57 -0700
commit2719a80949cc682f7bdf2e9f58da76ac1daf1643 (patch)
tree247f5c8454982fe5501f1a88d8f7b97a6d8bedb5 /meta-oe/recipes-kernel
parent428d4e68858f282b80214e1f38da489fd42aaa43 (diff)
downloadmeta-openembedded-2719a80949cc682f7bdf2e9f58da76ac1daf1643.tar.gz
pm-graph: add flags support for RT kernel
with PREEMPT_RT enabled in kernel, ftrace have a different falgs compare with standard kernel. Add supported for RT kernel ftrace flags format. Signed-off-by: Liwei Song <liwei.song@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel')
-rw-r--r--meta-oe/recipes-kernel/pm-graph/pm-graph/0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch42
-rw-r--r--meta-oe/recipes-kernel/pm-graph/pm-graph_5.5.bb1
2 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/pm-graph/pm-graph/0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch b/meta-oe/recipes-kernel/pm-graph/pm-graph/0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch
new file mode 100644
index 000000000..f7f8bc068
--- /dev/null
+++ b/meta-oe/recipes-kernel/pm-graph/pm-graph/0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch
@@ -0,0 +1,42 @@
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
diff --git a/meta-oe/recipes-kernel/pm-graph/pm-graph_5.5.bb b/meta-oe/recipes-kernel/pm-graph/pm-graph_5.5.bb
index a1378866a..4526eeed3 100644
--- a/meta-oe/recipes-kernel/pm-graph/pm-graph_5.5.bb
+++ b/meta-oe/recipes-kernel/pm-graph/pm-graph_5.5.bb
@@ -9,6 +9,7 @@ SRCREV = "cf59527dc24fdd2f314ae4dcaeb3d68a117988f6"
9SRC_URI = "git://github.com/intel/pm-graph.git \ 9SRC_URI = "git://github.com/intel/pm-graph.git \
10 file://0001-Makefile-fix-multilib-build-failure.patch \ 10 file://0001-Makefile-fix-multilib-build-failure.patch \
11 file://0001-sleepgraph.py-use-python3.patch \ 11 file://0001-sleepgraph.py-use-python3.patch \
12 file://0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch \
12" 13"
13S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
14 15