From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1EEE2F6569 for ; Fri, 10 Oct 2025 21:01:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760130108; cv=none; b=nti2j4T2CPW51AO0qrcO1zRYdox9I+xHA7lofgfShcOPkQvWIVe0uzBflx+k0fkYIB0S199hPpNafiy90XqtatHA0rgDPO58hLQZ1UBLWEQ4+VK14wGhj9knYihPkwypkIRpm+DBqgBva3aBBrfxrY6yRKRKXCyBl603FzICaxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760130108; c=relaxed/simple; bh=1tNnIlZv+wCE3kcdtXTHXlfMZ0yGaIOe9oMVqOUMQOg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Ypy6GVOUZ5rq1E8G6c3Z7feQWFvBsZSU5CQti12Ti+476rWG9YlWdfHx4xNI7l6aax6zyzSMtflzyhQizooRnPCNzpAR3FMI+FvreAGPZcrRBDBNWheuK4PR7/pvqUsdk7gcKE9O0oRW7gqwWC9rDtWRWfGgUTYV/TD2uK0R9w4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--xur.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=oUhhkYu2; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--xur.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="oUhhkYu2" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-330a4d5c4efso5613966a91.0 for ; Fri, 10 Oct 2025 14:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760130106; x=1760734906; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=HXUz0ruU1YA2Qg4rcZrXatiuVPj0CSzoMucbvJcULP4=; b=oUhhkYu2mNxYWUzWWEZWYy1sWdic+tifDAj/+JqpuVKx/QrGYospqJ1S+trj7wTylQ uoBHiqmGFbfWut0C9PrgjYr/mFSE1byHZeR1LFqjwaIjaq4q9bWQiV+EiGKOZnHrh6fb u4dxB1WguBtzuqouhhdI/SJOwPv/Aj5lEMlwt27IFeQb8j37oJ1VQRj8mbUTow066V1U I1O27QXVC/3B1+EA7VRGDshLSTsg6wWJqKqQPAba7yFgfctg3idV14zK9NKJ8Tm61dzW SVTit7JTBxUXKYF9g1QLaQUZXpDFitbYHfJbdT/7kh1Aa0Z6PhIE2l902Ot7TsTr5C4B 54lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760130106; x=1760734906; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HXUz0ruU1YA2Qg4rcZrXatiuVPj0CSzoMucbvJcULP4=; b=YLS315obzzTh856eu1zaJUx27AslNC4oKFQZkmpzdlcO3Z2mVf2r1SkZ2izq7rGfGg d7XRG2Ckwqg1KdbE89Ajuxl2FjvmJYPCAR0nfpuNfdl4cXGHJZoHVaJusgvT3pfluMsS r5L/cN47JsjUkhpsL42lM7s3Vkaf6norkwLJgTrE05KryZNNSQgJ0tcSnUId+dCMDFGz kwu4hcl+HRxg6ArkIWjvT+6X2O6mErOCEJ0NPAF1A5XfZXd+hIPp58q6w+KuZ0dZ9WXD LsLGIyLpQFtNtRIZ1rU0DYR8MzJwyxrn15TZK76m9rQpmWoVnSICwqyvnIcAw+vSiqeB KU6g== X-Gm-Message-State: AOJu0YzaYfyWVEShsyBFYfBU7SoXAhW8AbeVu5Ah7/nqJswueqlqo5Cr LSiHdfJpvOfm0MM/H7X9hJoQNP1JcuuEI34rfE0a0qmcKZQxL73M9clIrDg3GCSg5L1jqA== X-Google-Smtp-Source: AGHT+IEL18I3C/IsW+RSJN6mqkTxkt6ylMjhVG9XKQ6e/h83iNo20YGDVvCHYqnvKVi3lRioj4PMQpE= X-Received: from plat12.prod.google.com ([2002:a17:902:e1cc:b0:267:fa7d:b637]) (user=xur job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:3148:b0:327:e59d:2cc2 with SMTP id 98e67ed59e1d1-33b51148bcbmr17641763a91.10.1760130105796; Fri, 10 Oct 2025 14:01:45 -0700 (PDT) Date: Fri, 10 Oct 2025 21:01:33 +0000 In-Reply-To: <20251010210134.2066321-1-xur@google.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251010210134.2066321-1-xur@google.com> X-Mailer: git-send-email 2.51.0.740.g6adb054d12-goog Message-ID: <20251010210134.2066321-3-xur@google.com> Subject: [PATCH 3/4] kbuild: Remove MFS flags from Propeller profile generate builds From: xur@google.com To: Alexey Gladkov , Alice Ryhl , Ard Biesheuvel , Bill Wendling , Han Shen , Ingo Molnar , Josh Poimboeuf , Justin Stitt , Kees Cook , Linus Walleij , Masahiro Yamada , Miguel Ojeda , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Peter Zijlstra , Tamir Duberstein , Thomas Gleixner , "=?UTF-8?q?Thomas=20Wei=C3=9Fschuh?=" , Yabin Cui , Sriraman Tallam Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Rong Xu Content-Type: text/plain; charset="UTF-8" From: Rong Xu Propeller profile generation requires Machine Function Splitter (MFS) to be disabled. Signed-off-by: Rong Xu --- scripts/Makefile.propeller | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/Makefile.propeller b/scripts/Makefile.propeller index fa018098506b8..8c3e514dbcc04 100644 --- a/scripts/Makefile.propeller +++ b/scripts/Makefile.propeller @@ -13,8 +13,14 @@ else else CFLAGS_PROPELLER_CLANG := -fbasic-block-sections=labels endif + # Disable Machine Function Splitter for Propeller. + # Propeller profile generation requires Machine Function Splitter to be disabled. + # We use -fno-split-machine-functions to override any prior AutoFDO/PGO flags + #(in Makefile.lib), assuming Propeller options are applied afterward. + CFLAGS_PROPELLER_CLANG += -fno-split-machine-functions endif + # Propeller requires debug information to embed module names in the profiles. # If CONFIG_DEBUG_INFO is not enabled, set -gmlt option. Skip this for AutoFDO, # as the option should already be set. @@ -33,6 +39,8 @@ ifdef CONFIG_LTO_CLANG_THIN else _ldflags_propeller += --lto-basic-block-sections=labels endif + # Again, we need to disable Machine Function Splitter. + LDFLAGS_vmlinux := $(filter-out -plugin-opt=-split-machine-functions, $(LDFLAGS_vmlinux)) endif endif -- 2.51.0.740.g6adb054d12-goog