From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 2CA132E2EF9 for ; Tue, 14 Oct 2025 19:12:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760469129; cv=none; b=aRqJQAPBjr9GPR/rL1CEcR0veHDtlavmoaI1ITddX2VqtdQF5AYPLESXv2WJgOu9yMzJaJtFHAKLN5knisXrCRvWSfCeVfbKyhwiBrljKmufJce5hYj9d3uhV7aaYKCmVhK1IRUIKZRgTjnevqNVYI2E9QwBNX3CVBK7qEPREVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760469129; c=relaxed/simple; bh=t9jLJHWdyiSzQs+a689FPxJdopVxx51fZYgZFEcmQ5Y=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=cL593HUVq7dLb+NsAr4ZGICs+ZAf0XDQrAewunysV9RPcqKEeBVsqeuB+5o/cDJOGyK5TYfJpQmH1BMo/VuasRR7blxkHCROSNkysasMPnAyvylBU8ESlhMCfeMnReIcpW1arWlNVJqepanHWyFziMlS8kRJDy+Crd60vnCjj48= 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=nYo3xJrO; arc=none smtp.client-ip=209.85.216.74 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="nYo3xJrO" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-33428befb83so13190026a91.1 for ; Tue, 14 Oct 2025 12:12:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760469124; x=1761073924; 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=L2k6wtYt3FDVRDHH1AoubVXUFy6ND2LEU/3IEKkdm9o=; b=nYo3xJrOl3jOrBCo9deUBQZRvglFvGANRhYHdn3Y+MRJhCgIs5RRprabptUAcl2Oti GXG/4JypDVFPzGswCKZsePCUJNgNH1G4GLWO/Ayefj9uwldVMXyeC78GoNcbAhTUS83m MILzh791VEIMT3tkNlpmDrGnBVxVc1sXqYEyPFVMD6PrqOXXZPp0AI743EMQNaQm5E1k soBdYex3FNr1z5OO1HgS8XPw80ZbNg20GKfwnMCq6K+A97cVnxa0YfInsVDBmuknNoqs gu+P3EHraWdv1CsHDuc4v5LVxdl7b57lfVCrVZQzs+biUh6cwFGf2gO+KVh1dJiHsCWO VJDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760469124; x=1761073924; 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=L2k6wtYt3FDVRDHH1AoubVXUFy6ND2LEU/3IEKkdm9o=; b=Mc4corDtwcfrPkK4y9X6lw+GAkkmPDRPkii9h3zT4mA1bX3xTklzeEVToInmIjaxHY NLuWTkpUvzeCF0oDveb0EPeg1gKVMoPxN60v6ZiPFgDdZ/kCTq3LMgKYJ8DCo7pOu6R4 22p7czfALbNHPwVF+miGeOQcAmFZgj7R4YlXOWMk0WWvudDmLZNsvtP4BZ5TCoIcV7Ib XMbMnvVkd6XBGJM212LHT9kan0O96oO2bPhwLHuGZKhZRfGbrdoBx7EdlXV6EonbZ7KZ oKwiD3QLGYaNFELNubYrM9J9AhujEclBzCrf3yuNUyjH7nWcuM0x5ojfERJ9fIGYX1tx Qhgw== X-Forwarded-Encrypted: i=1; AJvYcCWZJAuvHIa33OolyqZlRdad0I18nm5rK3xBlS1OMSN3c9r7jlXojSRjlFiMbe9JnaGCxOcdhReF0YA2Hhg=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5XRYhXeyam7TXAjLR2NH4qnayMzgAmHAH8Xu9PQzZsL7j96PV 9xzaiVCn1m1lgSrH3tFM+yTz18Zg9OEPY6g3Fo9uImunX5Hnhia2VD5u3/+dgLuB1kF1pg== X-Google-Smtp-Source: AGHT+IHulkYFxj6v34g0vqq41jw+L0+RXXWl3W28nXbYFSfeZcxshajXMcaq1+9j7wMsxlIF15JufAg= X-Received: from pjto23.prod.google.com ([2002:a17:90a:c717:b0:33b:51fe:1a8b]) (user=xur job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:4d10:b0:32e:d282:3672 with SMTP id 98e67ed59e1d1-33b5138db1emr37538703a91.23.1760469124371; Tue, 14 Oct 2025 12:12:04 -0700 (PDT) Date: Tue, 14 Oct 2025 19:11:55 +0000 In-Reply-To: <20251014191156.3836703-1-xur@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251014191156.3836703-1-xur@google.com> X-Mailer: git-send-email 2.51.0.788.g6d19910ace-goog Message-ID: <20251014191156.3836703-4-xur@google.com> Subject: [PATCH v2 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. Change-Id: I12579e6f2cfaecefbed0ce85f1904f79783562a1 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.788.g6d19910ace-goog