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 28EA32C2353 for ; Tue, 14 Oct 2025 19:12:05 +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=1760469126; cv=none; b=kBf1y1Le0fKt7rWmQIHMTOAb4zKRRlu5OCQczctzzjvCbAvWOumwxCmF72UQUcDxCFsajJW8sFn6WBXxC3XX9b/tDSK22JmvU/WsI86QB1bKiIn19zboaphdxCB6uMkvMxVgO/jeYTrOXWh4emV+6gR8RDigbOqvnL2mMHowFwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760469126; c=relaxed/simple; bh=t9jLJHWdyiSzQs+a689FPxJdopVxx51fZYgZFEcmQ5Y=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=j1gWVndEVT+VJ3BH8fjorOgfLQn/C4L4GL9pClIjIUNjrPpdbiZXlvSxO05QJA7GNZE2E2LMIDZW3bDEnbMipyX530TviVS2peHa0NrtWiXhRo0V8tp93q+dWGenE9aOXDUyOCGflkeRH1gUkcfRhPeoR3r9/LHbPW8Am0zky48= 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.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="nYo3xJrO" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-3305c08d975so9450853a91.3 for ; Tue, 14 Oct 2025 12:12:04 -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=VsKz6cs5IzoE+ouI9Q92rR8kcZnFzBpNywzR94SM7geFEHb3BKJbcJ1rLrBL/ZyEmf EOECIuW90YfTdOi+03qSv4sAPcFYy5cAuLrE37xgGRxrnZ8umYviSQAlJhTPLKL/bebb vV7f2IrUul23I3DVGeGglXkP+hcmF1wNQeefzGjHAyBseefs0CxB4jqKzhJSVqxXuGdX s2tO6UQUR0KKJfD6QoDJv9DVcv2D2tLd32aA+1r8zl2QBRnklqjaylxW+k2aIwMnx+A0 aqxabEI2l6WLcl6XUq0HOa59lrenkCNet/QzeKihsSNeXQFScUL7nzP2j2tEMj43HEYa HM5w== X-Gm-Message-State: AOJu0YzC/d0VOEJqk6E01kXGOoPOt8BM3q+h9+r9W+YegHhBjcQC7ajh JBEeWUomGJU7bwCIGJtlKJiRJYsBFHOwY99k3yoLwn95Me6ZeBJCfic4P8HZNTB1fc3SqQ== 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-kbuild@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