mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
428d4e6885
commit
2719a80949
|
|
@ -0,0 +1,42 @@
|
|||
From 47a1db21f6c5d17c94c58c3fe0dcce35c623dbf4 Mon Sep 17 00:00:00 2001
|
||||
From: Liwei Song <liwei.song@windriver.com>
|
||||
Date: Tue, 23 Jun 2020 04:47:20 +0000
|
||||
Subject: [PATCH] sleepgraph: add support for RT kernel ftrace flags
|
||||
|
||||
with PREEMPT_RT enabled in kernel, ftrace have a different
|
||||
flags format:
|
||||
|
||||
_-----=> irqs-off
|
||||
/ _----=> need-resched
|
||||
| / _----=> need-resched
|
||||
|| / _---=> hardirq/softirq
|
||||
||| / _--=> preempt-depth
|
||||
||||/ delay
|
||||
TASK-PID CPU# ||||| TIMESTAMP FUNCTION
|
||||
| | | ||||| | |
|
||||
|
||||
add support for this.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/intel/pm-graph/pull/18]
|
||||
|
||||
Signed-off-by: Liwei Song <liwei.song@windriver.com>
|
||||
---
|
||||
sleepgraph.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/sleepgraph.py b/sleepgraph.py
|
||||
index cfed8e09e0e6..561f165cf9be 100755
|
||||
--- a/sleepgraph.py
|
||||
+++ b/sleepgraph.py
|
||||
@@ -2689,7 +2689,7 @@ class TestProps:
|
||||
'[ +!#\*@$]*(?P<dur>[0-9\.]*) .*\| (?P<msg>.*)'
|
||||
ftrace_line_fmt_nop = \
|
||||
' *(?P<proc>.*)-(?P<pid>[0-9]*) *\[(?P<cpu>[0-9]*)\] *'+\
|
||||
- '(?P<flags>.{4}) *(?P<time>[0-9\.]*): *'+\
|
||||
+ '(?P<flags>.{4,7}) *(?P<time>[0-9\.]*): *'+\
|
||||
'(?P<msg>.*)'
|
||||
def __init__(self):
|
||||
self.stamp = ''
|
||||
--
|
||||
2.24.1
|
||||
|
||||
|
|
@ -9,6 +9,7 @@ SRCREV = "cf59527dc24fdd2f314ae4dcaeb3d68a117988f6"
|
|||
SRC_URI = "git://github.com/intel/pm-graph.git \
|
||||
file://0001-Makefile-fix-multilib-build-failure.patch \
|
||||
file://0001-sleepgraph.py-use-python3.patch \
|
||||
file://0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user