From bcd6f7df4853742a91a394cc152c6a639a8a8143 Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Sat, 12 Oct 2024 14:53:12 +0800 Subject: [PATCH] pm-graph: upgrade 5.5 -> 5.13 ChangeLog: https://github.com/intel/pm-graph/releases/tag/5.13 * Refresh 0001-Makefile-fix-multilib-build-failure.patch * Drop the following patches as the issues have been fixed upstream: 0001-sleepgraph.py-use-python3.patch 0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch 0001-sleepgraph.py-parse-unfished-cpu-exec-line.patch Signed-off-by: Yi Zhao Signed-off-by: Khem Raj --- ...-Makefile-fix-multilib-build-failure.patch | 105 +++++++----------- ...d-support-for-RT-kernel-ftrace-flags.patch | 42 ------- ...raph.py-parse-unfished-cpu-exec-line.patch | 51 --------- .../0001-sleepgraph.py-use-python3.patch | 39 ------- .../{pm-graph_5.5.bb => pm-graph_5.13.bb} | 13 +-- 5 files changed, 47 insertions(+), 203 deletions(-) delete mode 100644 meta-oe/recipes-kernel/pm-graph/pm-graph/0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch delete mode 100644 meta-oe/recipes-kernel/pm-graph/pm-graph/0001-sleepgraph.py-parse-unfished-cpu-exec-line.patch delete mode 100644 meta-oe/recipes-kernel/pm-graph/pm-graph/0001-sleepgraph.py-use-python3.patch rename meta-oe/recipes-kernel/pm-graph/{pm-graph_5.5.bb => pm-graph_5.13.bb} (69%) diff --git a/meta-oe/recipes-kernel/pm-graph/pm-graph/0001-Makefile-fix-multilib-build-failure.patch b/meta-oe/recipes-kernel/pm-graph/pm-graph/0001-Makefile-fix-multilib-build-failure.patch index 56981d96fa..e28903d6ba 100644 --- a/meta-oe/recipes-kernel/pm-graph/pm-graph/0001-Makefile-fix-multilib-build-failure.patch +++ b/meta-oe/recipes-kernel/pm-graph/pm-graph/0001-Makefile-fix-multilib-build-failure.patch @@ -1,4 +1,4 @@ -From 50cea8fd3c07ab27da6edce865a49339f16f3b57 Mon Sep 17 00:00:00 2001 +From 468850b5d39435025633df14dda3d48651d9ec29 Mon Sep 17 00:00:00 2001 From: Naveen Saini Date: Tue, 18 Jun 2019 17:10:15 +0800 Subject: [PATCH] Makefile: fix multilib build failure @@ -6,20 +6,26 @@ Subject: [PATCH] Makefile: fix multilib build failure Upstream-Status: Inappropriate [oe specific] Signed-off-by: Naveen Saini + +Refresh to 5.13 +Signed-off-by: Yi Zhao --- - Makefile | 50 +++++++++++++++++++++++++++----------------------- - 1 file changed, 27 insertions(+), 23 deletions(-) + Makefile | 16 ++++++++++------ + 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile -index 8455415..4aa0786 100644 +index 337c53e..58e3779 100644 --- a/Makefile +++ b/Makefile -@@ -1,30 +1,34 @@ - # SPDX-License-Identifier: GPL-2.0 - PREFIX ?= /usr - DESTDIR ?= -+BASELIB ?= +@@ -25,6 +25,7 @@ BINDIR ?= /usr/bin + MANDIR ?= /usr/share/man + SHRDIR ?= /usr/share/pm-graph + LIBDIR ?= /usr/lib ++BASELIB ?= + # Toolchain: what tools do we use, and what options do they need: + INSTALL = /usr/bin/install +@@ -33,6 +34,9 @@ INSTALL_DATA = ${INSTALL} -m 644 all: @echo "Nothing to build" @@ -27,63 +33,34 @@ index 8455415..4aa0786 100644 + @echo "Nothing to clean" + install : uninstall -- install -d $(DESTDIR)$(PREFIX)/lib/pm-graph -- install sleepgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph -- install bootgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph -- install -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/cgskip.txt $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/freeze-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/freeze.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/freeze-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/standby-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/standby.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/standby-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/suspend-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/suspend.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/suspend-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -- install -m 644 config/suspend-x2-proc.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config -+ install -d $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph -+ install sleepgraph.py $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph -+ install bootgraph.py $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph -+ install -d $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/cgskip.txt $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/freeze-callgraph.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/freeze.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/freeze-dev.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/standby-callgraph.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/standby.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/standby-dev.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/suspend-callgraph.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/suspend.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/suspend-dev.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config -+ install -m 644 config/suspend-x2-proc.cfg $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config + $(INSTALL) -d $(DESTDIR)$(LIBDIR)/pm-graph + $(INSTALL) sleepgraph.py $(DESTDIR)$(LIBDIR)/pm-graph +@@ -54,10 +58,10 @@ install : uninstall + $(INSTALL) -d $(DESTDIR)$(SHRDIR) - install -d $(DESTDIR)$(PREFIX)/bin -- ln -s ../lib/pm-graph/bootgraph.py $(DESTDIR)$(PREFIX)/bin/bootgraph -- ln -s ../lib/pm-graph/sleepgraph.py $(DESTDIR)$(PREFIX)/bin/sleepgraph -+ ln -s ../$(BASELIB)/pm-graph/bootgraph.py $(DESTDIR)$(PREFIX)/bin/bootgraph -+ ln -s ../$(BASELIB)/pm-graph/sleepgraph.py $(DESTDIR)$(PREFIX)/bin/sleepgraph + $(INSTALL) -d $(DESTDIR)$(BINDIR) +- ln -s ../lib/pm-graph/bootgraph.py $(DESTDIR)$(BINDIR)/bootgraph +- ln -s ../lib/pm-graph/sleepgraph.py $(DESTDIR)$(BINDIR)/sleepgraph +- ln -s ../lib/pm-graph/netfix.py $(DESTDIR)$(BINDIR)/netfix +- $(DESTDIR)$(BINDIR)/netfix defconfig > $(DESTDIR)$(SHRDIR)/netfix.cfg ++ ln -s ../$(BASELIB)/pm-graph/bootgraph.py $(DESTDIR)$(BINDIR)/bootgraph ++ ln -s ../$(BASELIB)/pm-graph/sleepgraph.py $(DESTDIR)$(BINDIR)/sleepgraph ++ ln -s ../$(BASELIB)/pm-graph/netfix.py $(DESTDIR)$(BINDIR)/netfix ++ #$(DESTDIR)$(BINDIR)/netfix defconfig > $(DESTDIR)$(SHRDIR)/netfix.cfg - install -d $(DESTDIR)$(PREFIX)/share/man/man8 - install bootgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8 -@@ -37,11 +41,11 @@ uninstall : - rm -f $(DESTDIR)$(PREFIX)/bin/bootgraph - rm -f $(DESTDIR)$(PREFIX)/bin/sleepgraph + $(INSTALL) -d $(DESTDIR)$(MANDIR)/man8 + $(INSTALL) bootgraph.8 $(DESTDIR)$(MANDIR)/man8 +@@ -90,8 +94,8 @@ hwcheck-install : + rm -f $(DESTDIR)$(LIBDIR)/pm-graph/hwcheck.py + $(INSTALL) tools/hwcheck.py $(DESTDIR)$(LIBDIR)/pm-graph + $(INSTALL) -d $(DESTDIR)$(BINDIR) +- ln -s ../lib/pm-graph/hwcheck.py $(DESTDIR)$(BINDIR)/hwcheck +- $(DESTDIR)$(BINDIR)/hwcheck cronon ++ ln -s ../$(BASELIB)/pm-graph/hwcheck.py $(DESTDIR)$(BINDIR)/hwcheck ++ #$(DESTDIR)$(BINDIR)/hwcheck cronon -- rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/config/* -- if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config ] ; then \ -- rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph/config; \ -+ rm -f $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config/* -+ if [ -d $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config ] ; then \ -+ rmdir $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/config; \ - fi; -- rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/* -- if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph ] ; then \ -- rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph; \ -+ rm -f $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph/* -+ if [ -d $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph ] ; then \ -+ rmdir $(DESTDIR)$(PREFIX)/$(BASELIB)/pm-graph; \ - fi; + hwcheck-uninstall : + if [ -e $(DESTDIR)$(BINDIR)/hwcheck ] ; then \ -- -2.17.1 +2.25.1 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 deleted file mode 100644 index f7f8bc0687..0000000000 --- a/meta-oe/recipes-kernel/pm-graph/pm-graph/0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 47a1db21f6c5d17c94c58c3fe0dcce35c623dbf4 Mon Sep 17 00:00:00 2001 -From: Liwei Song -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 ---- - 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[0-9\.]*) .*\| (?P.*)' - ftrace_line_fmt_nop = \ - ' *(?P.*)-(?P[0-9]*) *\[(?P[0-9]*)\] *'+\ -- '(?P.{4}) *(?P