From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9BEC4385829A; Mon, 11 Dec 2023 21:08:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BEC4385829A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702328904; bh=/zECZp6F8cFt3r/n/6KrOuGZS4x/u5mATD9+CDv/PZI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iIjNav7X720A7qMatu2lCLcqBA+1/xXvXwPCH3yS+1/i23bgnw0mlW2Bb2FhTh7en bdBDtcmXJBHOhoOVgsVpVN75by/IpvejH16JQbnvZ1wcRkk0jthKEp+VuYSayh0acN uoaEc00lC0PKqOhCN3LAx+4m2wsnp55UDrXFbhM4= From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: =?UTF-8?B?W0J1ZyBydW50aW1lLzMxMDM5XSBpbXBsaWNpdCBkZWNsYXJhdGlv?= =?UTF-8?B?biBvZiBmdW5jdGlvbiDigJhzdGFwX3Rhc2tfZmluZGVyX2NvbXBsZXRl4oCZ?= Date: Mon, 11 Dec 2023 21:08:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31039 --- Comment #2 from William Cohen --- Simplified the reproduce a bit more to: stap -p4 -k -e 'probe process("a.out").function("main") {println(pp())}' -c ./a.out Copied over the saved /tmp/stap* directories to the same machine and compar= ed the stapconfig*.h files: $ diff -u0 pr31039_work/stapconf_1bb440e7276e415100ffcad1e32728e1_750.h pr31039_broken/stapconf_9b039485a92757b3b5bcb8bed0dea5cd_953.h=20 --- pr31039_work/stapconf_1bb440e7276e415100ffcad1e32728e1_750.h=20=20=20= =20=20=20=20 2023-12-11 14:43:43.486670764 -0500 +++ pr31039_broken/stapconf_9b039485a92757b3b5bcb8bed0dea5cd_953.h=20=20=20= =20=20 2023-12-11 14:41:21.846997966 -0500 @@ -46 +45,0 @@ -#define STAPCONF_UTRACE_VIA_TRACEPOINTS 1 The rawhide autoconf-utrace-via-tracepoints.c is failing to build. This ca= uses the following code in runtime/linux/runtime.h to not include the needed stap_task_finder_complete() or real definition of struct stap_task_finder_target: #if (defined(STAPCONF_UTRACE_VIA_TRACEPOINTS)) #define HAVE_TASK_FINDER #include "task_finder.c" #else /* stub functionality that fails gracefully */ #include "task_finder_stubs.c" #endif The rawhide kernel has the tracepoints mentioned in autoconf-utrace-via-tracepoints.c. Adding "-vvvvv" to the commandline prov= ide the information about the autoconf compiles. See the following on the x86_= 64 rawhide machine where there is a problem because of the struct folio: if gcc -DMODULE -nostdinc -D__KERNEL__ -fmacro-prefix-map=3D./=3D=20 -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/u= api -I./include/generated/uapi -include ./include/linux/compiler-version.h -inc= lude ./include/linux/kconfig.h -std=3Dgnu11 -fshort-wchar -funsigned-char -fno-= common -fno-PIE -fno-strict-aliasing -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-a= vx -fcf-protection=3Dbranch -fno-jump-tables -m64 -falign-jumps=3D1 -falign-lo= ops=3D1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3D3 -mskip-rax-set= up -mtune=3Dgeneric -mno-red-zone -mcmodel=3Dkernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=3Dthunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=3Dthunk-extern -fno-jump-tables -mharden-sls=3Dall -fpatchable-function-entry=3D16,16 -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector-strong -ftrivial-auto-var-init=3Dzero -fno-stack-clash-protection -pg -mrecord-mc= ount -mfentry -DCC_USING_FENTRY -falign-functions=3D16 -fstrict-flex-arrays=3D3 -fno-strict-overflow -fno-stack-check -fconserve-stack -Wall -Wundef -Werror=3Dimplicit-function-declaration -Werror=3Dimplicit-int -Werror=3Dre= turn-type -Werror=3Dstrict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wframe-larger-than=3D2048 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=3D5 -Werror=3Ddate-time -Werror=3Dincompatible-pointer-types -Werror=3Ddesignat= ed-init -Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow -Wno-format-truncation -Wno-stringop-overflow -Wno-stringop-truncation -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-maybe-uninitialized -Wno-sign-compare -DKBUILD_BASENAME=3D\"stap_4= 0592\" -Werror -S -o /dev/null -xc=20 "/usr/share/systemtap/runtime"/linux/autoconf-utrace-via-tracepoints.c; then echo "#define STAPCONF_UTRACE_VIA_TRACEPOINTS 1"; fi >> /tmp/stapKt8wF0/autoconf-utrace-via-tracepoints.c.h if gcc -DMODULE -nostdinc -D__KERNEL__ -fmacro-prefix-map=3D./=3D=20 -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/u= api -I./include/generated/uapi -include ./include/linux/compiler-version.h -inc= lude ./include/linux/kconfig.h -std=3Dgnu11 -fshort-wchar -funsigned-char -fno-= common -fno-PIE -fno-strict-aliasing -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-a= vx -fcf-protection=3Dbranch -fno-jump-tables -m64 -falign-jumps=3D1 -falign-lo= ops=3D1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3D3 -mskip-rax-set= up -mtune=3Dgeneric -mno-red-zone -mcmodel=3Dkernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=3Dthunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=3Dthunk-extern -fno-jump-tables -mharden-sls=3Dall -fpatchable-function-entry=3D16,16 -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector-strong -ftrivial-auto-var-init=3Dzero -fno-stack-clash-protection -pg -mrecord-mc= ount -mfentry -DCC_USING_FENTRY -falign-functions=3D16 -fstrict-flex-arrays=3D3 -fno-strict-overflow -fno-stack-check -fconserve-stack -Wall -Wundef -Werror=3Dimplicit-function-declaration -Werror=3Dimplicit-int -Werror=3Dre= turn-type -Werror=3Dstrict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wframe-larger-than=3D2048 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=3D5 -Werror=3Ddate-time -Werror=3Dincompatible-pointer-types -Werror=3Ddesignat= ed-init -Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow -Wno-format-truncation -Wno-stringop-overflow -Wno-stringop-truncation -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-maybe-uninitialized -Wno-sign-compare -DKBUILD_BASENAME=3D\"stap_4= 0592\" -Werror -S -o /dev/null -xc=20 "/usr/share/systemtap/runtime"/linux/autoconf-task_work-struct.c; then echo "#define STAPCONF_TASK_WORK_STRUCT 1"; fi >> /tmp/stapKt8wF0/autoconf-task_work-struct.c.h In file included from ./include/trace/events/sched.h:9, from /usr/share/systemtap/runtime/linux/autoconf-utrace-via-tracepoints.c:1: ./include/linux/sched/numa_balancing.h:33:63: error: =E2=80=98struct folio= =E2=80=99 declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 33 | bool should_numa_migrate_memory(struct task_struct *p, struct folio *folio, | ^~~~~ /usr/share/systemtap/runtime/linux/autoconf-task_work-struct.c: In function =E2=80=98__autoconf_func=E2=80=99: /usr/share/systemtap/runtime/linux/autoconf-task_work-struct.c:7:26: error: storage size of =E2=80=98work=E2=80=99 isn=E2=80=99t known 7 | struct task_work work; | ^~~~ /usr/share/systemtap/runtime/linux/autoconf-task_work-struct.c:9:9: error: = too many arguments to function =E2=80=98init_task_work=E2=80=99 9 | init_task_work(&work, NULL, NULL); | ^~~~~~~~~~~~~~ In file included from /usr/share/systemtap/runtime/linux/autoconf-task_work-struct.c:1: ./include/linux/task_work.h:11:1: note: declared here 11 | init_task_work(struct callback_head *twork, task_work_func_t func) | ^~~~~~~~~~~~~~ /usr/share/systemtap/runtime/linux/autoconf-task_work-struct.c:7:26: error: unused variable =E2=80=98work=E2=80=99 [-Werror=3Dunused-variable] 7 | struct task_work work; | ^~~~ cc1: all warnings being treated as errors --=20 You are receiving this mail because: You are the assignee for the bug.=