From 09e448e13853e8bce535967454cf08e62e76c6c0 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Thu, 7 Sep 2023 10:45:25 +0200 Subject: bcc: move to the right dynamic-layer * it depends not only on meta-oe, but on meta-python as well and because meta-python depends on meta-oe, we can enable this when ever meta-python is included * fixes: NOTE: Resolving any missing task queue dependencies ERROR: Nothing RPROVIDES 'python3-pyroute2' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'python3-pyroute2' is unbuildable, removing... Missing or unbuildable dependency chain was: ['python3-pyroute2'] ERROR: Nothing RPROVIDES 'python3-netaddr' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'python3-netaddr' is unbuildable, removing... Missing or unbuildable dependency chain was: ['python3-netaddr'] ERROR: Nothing RPROVIDES 'bcc-dev' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'bcc-dev' NOTE: Runtime target 'bcc-dev' is unbuildable, removing... Missing or unbuildable dependency chain was: ['bcc-dev'] ERROR: Nothing RPROVIDES 'bcc' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'bcc' NOTE: Runtime target 'bcc' is unbuildable, removing... Missing or unbuildable dependency chain was: ['bcc'] --- .../0001-tools-trace.py-Fix-failing-to-exit.patch | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tools-trace.py-Fix-failing-to-exit.patch (limited to 'dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tools-trace.py-Fix-failing-to-exit.patch') diff --git a/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tools-trace.py-Fix-failing-to-exit.patch b/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tools-trace.py-Fix-failing-to-exit.patch new file mode 100644 index 0000000..6ac7219 --- /dev/null +++ b/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tools-trace.py-Fix-failing-to-exit.patch @@ -0,0 +1,41 @@ +From a9f59fc8605de1bcca0b6c2d8132585f40c3b9bc Mon Sep 17 00:00:00 2001 +From: He Zhe +Date: Thu, 13 Aug 2020 11:25:58 +0800 +Subject: [PATCH] tools/trace.py: Fix failing to exit + +Class Probe::print_event is used as a callback of a ctypes wrapper. With +Yocto latest python v3.8.5, the exception raised by exit() is ignored and +thus trace cannot exit. Use os._exit(0) instead. + +$ /usr/share/bcc/tools/trace do_sys_open -M 1 +PID TID COMM FUNC +3740 3740 irqbalance do_sys_open +Exception ignored on calling ctypes callback function: +.raw_cb at 0x7f7c9efea280> +Traceback (most recent call last): +File "/usr/lib64/python3.8/site-packages/bcc/table.py", line 685, in raw_cb_ +callback(cpu, data, size) +File "/usr/share/bcc/tools/trace", line 630, in print_event +exit() +File "/usr/lib64/python3.8/sitebuiltins.py", line 26, in __call_ +raise SystemExit(code) +SystemExit: None + +Upstream-Status: Pending + +Signed-off-by: He Zhe +--- + tools/trace.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/tools/trace.py ++++ b/tools/trace.py +@@ -671,7 +671,7 @@ BPF_PERF_OUTPUT(%s); + if self.aggregate: + self.print_aggregate_events() + sys.stdout.flush() +- exit() ++ os._exit(0) + + def attach(self, bpf, verbose): + if len(self.library) == 0: -- cgit v1.2.3-54-g00ecf