Skip to contentSkip to conversation

elfutils: skip run-stackprof-system.sh ptest under qemu

PATCH In review Jaipaul Cheernam 3 participants 3 messages Oct 30

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 elfutils: skip run-stackprof-system.sh ptest under qemu

Non-deterministic under qemu as needs userspace perf samples in a fixed window Issue already reported upstream and updated ticket with details

Reported upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=34544

Skip test case via ELFUTILS_PTEST_SKIP

ptest results:
Before:
glibc: 263 PASSED, 45 SKIPPED, 0 FAILED
musl: 255 PASSED, 44 SKIPPED, 0 FAILED
clang: 263 PASSED, 45 SKIPPED, 0 FAILED

with change:
glibc: 262 PASSED, 46 SKIPPED, 0 FAILED
musl: 254 PASSED, 45 SKIPPED, 0 FAILED,
clang: 262 PASSED, 46 SKIPPED, 0 FAILED

[YOCTO #16473]

---
 meta/recipes-devtools/elfutils/elfutils_0.197.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta/recipes-devtools/elfutils/elfutils_0.197.bb +10 -0
index 6e58afb2745..f309a3643fe 100644
@@ -65,6 +65,9 @@ PTEST_XFAILS ?= ""
 PTEST_XFAILS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' run-strip-strmerge.sh run-elflint-self.sh run-backtrace-data.sh run-reverse-sections-self.sh', '', d)}"
 PTEST_XFAILS:append:libc-musl = " run-large-elf-file.sh run-backtrace-data.sh run-backtrace-native.sh run-backtrace-native-core.sh run-stack-d-test.sh run-stack-i-test.sh run-stack-demangled-test.sh run-deleted.sh run-compress-test.sh"
 
+ELFUTILS_PTEST_SKIP ?= ""
+ELFUTILS_PTEST_SKIP:append:qemuall = " run-stackprof-system.sh"
+
 do_install_ptest() {
 	# copy the files which needed by the cases
 	TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip srcfiles stackprof"
@@ -106,6 +109,13 @@ do_install_ptest() {
 	sed -i -e 's|@XFAIL_TESTS@|${PTEST_XFAILS}|' ${D}${PTEST_PATH}/run-ptest
 }
 
+do_install_ptest:append() {
+	for t in ${ELFUTILS_PTEST_SKIP}; do
+		sed -i -e '\|stackprof-subr.sh|a echo "unreliable under qemu, skipping (PR34544)"; exit 77' \
+			${D}${PTEST_PATH}/tests/$t
+	done
+}
+
 EXTRA_OEMAKE:class-native = ""
 EXTRA_OEMAKE:class-nativesdk = ""
 
Reviewed-by on v1 1/1
#1 lore raw

Hello, Jaipaul

Quoted 18 lines · Jaipaul Cheernam

Non-deterministic under qemu as needs userspace perf samples in a fixed window Issue already reported upstream and updated ticket with details

Reported upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=34544

Skip test case via ELFUTILS_PTEST_SKIP

ptest results:
Before:
glibc: 263 PASSED, 45 SKIPPED, 0 FAILED
musl: 255 PASSED, 44 SKIPPED, 0 FAILED
clang: 263 PASSED, 45 SKIPPED, 0 FAILED

with change:
glibc: 262 PASSED, 46 SKIPPED, 0 FAILED
musl: 254 PASSED, 45 SKIPPED, 0 FAILED,
clang: 262 PASSED, 46 SKIPPED, 0 FAILED

Quoted 6 lines

[YOCTO #16473]

---
  meta/recipes-devtools/elfutils/elfutils_0.197.bb | 10 ++++++++++
  1 file changed, 10 insertions(+)

(...)

Thanks for the patch.

Out of curiosity, why using an :append (unconditional) for do_install_ptest() instead of simply adding the chunk of code into the task itself?

Signature · 2 lines
Best regards,
João Marcos Costa
#2 lore raw

I am carrying some patches to fix them, see if they can help and you can consolidate. -
https://git.openembedded.org/openembedded-core-contrib/commit/?h=yoe/mut&id=0d9347b760902b451e02ccda31c34abdc2c62acb

Quoted 53 lines · Joao Marcos Costa via openembedded-core

Hello, Jaipaul

Quoted 1 line · Jaipaul Cheernam

Non-deterministic under qemu as needs userspace perf samples in a fixed

window

Quoted 17 lines

Issue already reported upstream and updated ticket with details

Reported upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=34544

Skip test case via ELFUTILS_PTEST_SKIP

ptest results:
Before:
glibc: 263 PASSED, 45 SKIPPED, 0 FAILED
musl: 255 PASSED, 44 SKIPPED, 0 FAILED
clang: 263 PASSED, 45 SKIPPED, 0 FAILED

with change:
glibc: 262 PASSED, 46 SKIPPED, 0 FAILED
musl: 254 PASSED, 45 SKIPPED, 0 FAILED,
clang: 262 PASSED, 46 SKIPPED, 0 FAILED

Quoted 6 lines

[YOCTO #16473]

---
  meta/recipes-devtools/elfutils/elfutils_0.197.bb | 10 ++++++++++
  1 file changed, 10 insertions(+)

(...)

Thanks for the patch.

Out of curiosity, why using an :append (unconditional) for do_install_ptest() instead of simply adding the chunk of code into the task itself?

--
Best regards,
João Marcos Costa

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#249051):
https://lists.openembedded.org/g/openembedded-core/message/249051
Mute This Topic: https://lists.openembedded.org/mt/122011114/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-