From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 992723857726; Wed, 27 Sep 2023 20:03:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 992723857726 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695844999; bh=ZODUtRO2m5pWkUHaVQ3g8Qnj04fnIdbT6w1FQoLqd28=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vZlYYKHZPoYy5MGZNYMnFXbFWZ+oeD5/TWhJGwkMW2KEdiSdND86+EoVBIHw2fwqs S4yg0Sn0vSGltVfiAd7R3SnCqvyOeKNUoOo8apjZ+OqaOvatmD+I5SWomH+9e4i9tB IJZlOeNjiqPHLnKz28IE8GwHHz2xRKGzcqoESJcg= From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/30831] Systemtap scripts fail to compile on newest linux 6.6 kernels Date: Wed, 27 Sep 2023 20:03:18 +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: RESOLVED X-Bugzilla-Resolution: FIXED 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 resolution 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=3D30831 William Cohen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from William Cohen --- The following commit have been added to the systemtap master git repo to address the issues with building systemtap instrumentation with the linux-6= .6 kernels: commit ca71442b93af61cbd9a1386e24e967373f928eae (HEAD -> master, origin/mas= ter, origin/HEAD) Author: William Cohen Date: Wed Sep 27 10:09:11 2023 -0400 Eliminate use of kernel's flush_scheduled_work() in systemtap modules Kernel git commit 20bdedafd2f63e0ba70991127f9b5c0826ebdb32 turns use of flush_scheduled_work() into a warning which causes builds of anything using it to fail because warnings are treated as errors. Previous users of flush_scheduled_work() in the kernel have been converted over to use individual workqueues. Systemtap runtime now does the same. It creates and uses its own workqueue to eliminate the use of flush_scheduled_work(). commit 1ed860193216de3b233da440b2f9d52d94770b43 Author: William Cohen Date: Fri Sep 15 15:12:11 2023 -0400 Use TWA_RESUME in the runtime calls to task_work_add Kernel git commit c40e60f00caf18bc382215c79651777eb40f5f9d in the linux 6.6 kernels will cause the implicit conversion of boolean true to an enum task_work_notify_mode to be flagged resulting in the systemtap instrumentation compile to fail. Adding a config check to use TWA_RESUME if it is available or pass in the equivalent true argument for older kernels. commit 21bb398cb78b4274577c8ef2483ea2d03beaf7f4 Author: William Cohen Date: Tue Sep 12 11:34:24 2023 -0400 Eliminate use of do_each_thread() macro The Linux kernel commit 5ffd2c37cb7a5 removed the do_each_thread() macro and suggests using the for_each_process_thread() in its place. The Systemtap runtime has been migrated to using the more concise macro. The for_each_process_thread() macro was added by commit 0c740d0afc3bff to Linux 3.14, January 2014, almost a decade ago, so it should be available on modern systems. --=20 You are receiving this mail because: You are the assignee for the bug.=