From 497f2983d0305d7d6b80a0b1260232c186cf136b Mon Sep 17 00:00:00 2001 From: Wentao Zhang Date: Mon, 25 Dec 2023 02:41:20 +0000 Subject: bpftrace: Do not strip uprobe_test "runtime:regression" in ptest gets the following FAILED: | nm: ./testprogs/uprobe_test: no symbols Keep the debug info of uprobe_test to pass this ptest item. the steps to repruduce: $export BPFTRACE_RUNTIME_TEST_EXECUTABLE=/usr/bin $cd /usr/lib/bpftrace/ptest/tests $python3 runtime/engine/main.py --filter="regression.*" *** | [ FAILED ] regression.address_probe_invalid_expansion | Command: /usr/bin/bpftrace -e "uprobe:./testprogs/uprobe_test:0x$ | (nm ./testprogs/uprobe_test | awk '$3 == "function1" | {print $1}') { @[probe] = count(); exit() }" | Unclean exit code: 1 | Output: nm: ./testprogs/uprobe_test: no symbols\nNo probes to attach\n *** Signed-off-by: Wentao Zhang --- .../openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.18.0.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dynamic-layers') diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.18.0.bb b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.18.0.bb index e560112..8aa8a29 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.18.0.bb +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.18.0.bb @@ -57,3 +57,7 @@ EXTRA_OECMAKE = " \ COMPATIBLE_HOST = "(x86_64.*|aarch64.*|powerpc64.*|riscv64.*)-linux" COMPATIBLE_HOST:libc-musl = "null" + +INHIBIT_PACKAGE_STRIP_FILES += "\ + ${PKGD}${PTEST_PATH}/tests/testprogs/uprobe_test \ +" -- cgit v1.2.3-54-g00ecf