From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A35E3858C31; Wed, 28 Feb 2024 14:49:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A35E3858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709131768; bh=cKxccAzTZc6kQfKdQUeXNDIeSjBe63BgjNSVb+u4+us=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bbDCqcGl6b4OdtrOHTLef3nAloXT8VwVOk5OLXTtlqVMdoQ8oNE8s4V/B5WsGh+z5 p8xh2VBSfgXQD9/H51ImClGM8unl9QzKP21+y/DSpdOwSi4QMhDW/XpeLhUlJnPjID MI7mXDJGl/oKV7O5cVpKbqMohu0Rl/gFPRQgVzak= From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/31404] Systemtap unable to find kernel.trace("*") probe points on Fedora rawhide Linux 6.8 kernels Date: Wed, 28 Feb 2024 14:49:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: ASSIGNED 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: bug_status 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=3D31404 William Cohen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from William Cohen --- Was able to compare the tracequery_kmod_1 builds between fedora 39 and rawh= ide. The problem on rawhide is that the additional -Werror-missing-prototypes option is being passed into rawhide build which causes: $ ../install/bin/stap --disable-cache -k -vvvvv -L 'kernel.trace("sys_enter")' >& rawhide_log have /tmp/stapypAUhu make -C /lib/modules/$(uname -r)/build M=3D/tmp/stapypAUhu/tracequery_kmod_1 modules make -C /lib/modules/$(uname -r)/build M=3D/tmp/stapypAUhu/tracequery_kmod= _1 modules make: Entering directory '/usr/src/kernels/6.8.0-0.rc5.20240222git39133352cbed.44.fc41.x86_64' CC [M] /tmp/stapypAUhu/tracequery_kmod_1/tracequery_kmod_1_2.o /tmp/stapypAUhu/tracequery_kmod_1/tracequery_kmod_1_2.c:51:8: error: no previous prototype for =E2=80=98stapprobe_read_msr=E2=80=99 [-Werror=3Dmiss= ing-prototypes] 51 | void stapprobe_##name(proto) {} | ^~~~~~~~~~ ./include/linux/tracepoint.h:555:9: note: in expansion of macro =E2=80=98DE= CLARE_TRACE=E2=80=99 555 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^~~~~~~~~~~~~ ./arch/x86/include/asm/msr-trace.h:40:1: note: in expansion of macro =E2=80=98DEFINE_EVENT=E2=80=99 40 | DEFINE_EVENT(msr_trace_class, read_msr, | ^~~~~~~~~~~~ /tmp/stapypAUhu/tracequery_kmod_1/tracequery_kmod_1_2.c:51:8: error: no previous prototype for =E2=80=98stapprobe_write_msr=E2=80=99 [-Werror=3Dmis= sing-prototypes] 51 | void stapprobe_##name(proto) {} | ^~~~~~~~~~ ./include/linux/tracepoint.h:555:9: note: in expansion of macro =E2=80=98DE= CLARE_TRACE=E2=80=99 555 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^~~~~~~~~~~~~ ./arch/x86/include/asm/msr-trace.h:45:1: note: in expansion of macro =E2=80=98DEFINE_EVENT=E2=80=99 45 | DEFINE_EVENT(msr_trace_class, write_msr, | ^~~~~~~~~~~~ /tmp/stapypAUhu/tracequery_kmod_1/tracequery_kmod_1_2.c:51:8: error: no previous prototype for =E2=80=98stapprobe_rdpmc=E2=80=99 [-Werror=3Dmissing= -prototypes] 51 | void stapprobe_##name(proto) {} | ^~~~~~~~~~ ./include/linux/tracepoint.h:555:9: note: in expansion of macro =E2=80=98DE= CLARE_TRACE=E2=80=99 555 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^~~~~~~~~~~~~ ./arch/x86/include/asm/msr-trace.h:50:1: note: in expansion of macro =E2=80=98DEFINE_EVENT=E2=80=99 50 | DEFINE_EVENT(msr_trace_class, rdpmc, | ^~~~~~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [scripts/Makefile.build:243: /tmp/stapypAUhu/tracequery_kmod_1/tracequery_kmod_1_2.o] Error 1 make[1]: *** [/usr/src/kernels/6.8.0-0.rc5.20240222git39133352cbed.44.fc41.x86_64/Makefi= le:1939: /tmp/stapypAUhu/tracequery_kmod_1] Error 2 make: *** [Makefile:252: __sub-make] Error 2 make: Leaving directory '/usr/src/kernels/6.8.0-0.rc5.20240222git39133352cbed.44.fc41.x86_64' There looks to be a couple ways to fix this. 1) kernel git commit 1c57b9f63ab34f01b8c73731cc0efacb5a9a2f16 adds a "stati= c" before the function definition. 2) kernel git commit c97dac57c804b53eab492ca0230d86356729d633 adds following line to Kbuild to remove the -Wmissing-prototypes: +KBUILD_CFLAGS :=3D $(filter-out -Wmissing-prototypes -Wmissing-declaration= s, $(KBUILD_CFLAGS)) + --=20 You are receiving this mail because: You are the assignee for the bug.=