From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAB2E3CC9E4; Thu, 23 Apr 2026 04:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776917074; cv=none; b=JauWeMce0G7DdBqpfonQkFM25QS7D5CWmubXaOz5ffSC5GnEBhhxoWQ/ofA1c6zN480s2EjxSfPJ9LFfVNsDpyc7J2SHK5+Rs/kS6afG09mhQor2YbSGYFihD3gGeoA9q9grmA4MrA6P+hLqvcRg/FqABbEO+vYTEoo5e9A48V8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776917074; c=relaxed/simple; bh=02VvGyXarl2XFlvNz5pnH+G+BL/1jtvXwmkMaOF0LH4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GbX6bi7Q4lmCvSdMthuM02/k1TOCHCquiD/gEYUb4njbNNY8Pxi3Ktjgorhl6RHikKcp0IPs1hKv5o+NiAgdSdT1M+li7L7F+Jy4xWBbcU5IeiAFCMqiuWXg+coJ7dIdVt5Q9NbKn6Uig9LxeCU1HDbv0mATQUPEC89s1+CMDfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FC31JauQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FC31JauQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F9A4C2BCB2; Thu, 23 Apr 2026 04:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776917074; bh=02VvGyXarl2XFlvNz5pnH+G+BL/1jtvXwmkMaOF0LH4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FC31JauQdS3femwHcLxBjpzz68ctv4cFhjgWmC/5RCyFjScntWT1a41mjH0OWkSF/ 9/th9W9QuRuLZj/7GxXuLbcXMWNlMDIeCgvzLewXW99g4EBzU3DYX7M582VD8NaiXJ 1EdlmPeG+qVUPjoCPgDEAuwzRWYXCMxOWJq1gg7FKC8C5CX9l9eqRm91gpiD0ZL3n9 +vOsCYMeDIlpUWR/Vz6S8Jje43fe/LqK6yrjXTJAWQG6a7fCb1dGry9ZemZwBFzEc3 uf01VYiOsIFNc+tLEad0/P9xp+nsSVG3AN+PEXih3vyLom41zmqp8LtTRmsUBvb8WF tTQB5fYTYFbww== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Peter Zijlstra , Joe Lawrence , Song Liu , Miroslav Benes , Petr Mladek Subject: [PATCH 22/48] klp-build: Suppress excessive fuzz output by default Date: Wed, 22 Apr 2026 21:03:50 -0700 Message-ID: <58c5ac9ae38760beb06e5ddddb742ea54f922371.1776916871.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit When a patch applies with fuzz, the detailed output from the patch tool can be very noisy, especially for big patches. Suppress the fuzz details by default, while keeping the "applied with fuzz" warning. The noise can be restored with '--verbose'. Signed-off-by: Josh Poimboeuf --- scripts/livepatch/klp-build | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build index 115f68db49c9..a7f571df7813 100755 --- a/scripts/livepatch/klp-build +++ b/scripts/livepatch/klp-build @@ -19,12 +19,11 @@ set -o nounset # This helps keep execution in pipes so pipefail+errexit can catch errors. shopt -s lastpipe -unset DEBUG_CLONE DIFF_CHECKSUM SKIP_CLEANUP XTRACE +unset DEBUG_CLONE DIFF_CHECKSUM SKIP_CLEANUP VERBOSE XTRACE REPLACE=1 SHORT_CIRCUIT=0 JOBS="$(getconf _NPROCESSORS_ONLN)" -VERBOSE="-s" shopt -o xtrace | grep -q 'on' && XTRACE=1 # Avoid removing the previous $TMP_DIR until args have been fully processed. @@ -194,7 +193,7 @@ process_args() { shift ;; -v | --verbose) - VERBOSE="V=1" + VERBOSE=1 shift ;; -d | --debug) @@ -381,7 +380,7 @@ apply_patch() { echo "$output" >&2 die "$patch did not apply" elif [[ "$output" =~ $drift_regex ]]; then - echo "$output" >&2 + [[ -v VERBOSE ]] && echo "$output" >&2 warn "${patch} applied with fuzz" fi @@ -544,7 +543,11 @@ build_kernel() { # cmd+=("KBUILD_MODPOST_WARN=1") - cmd+=("$VERBOSE") + if [[ -v VERBOSE ]]; then + cmd+=("V=1") + else + cmd+=("-s") + fi cmd+=("-j$JOBS") cmd+=("KCFLAGS=-ffunction-sections -fdata-sections") cmd+=("OBJTOOL_ARGS=${objtool_args[*]}") @@ -805,7 +808,11 @@ build_patch_module() { [[ $REPLACE -eq 0 ]] && cflags+=("-DKLP_NO_REPLACE") cmd=("make") - cmd+=("$VERBOSE") + if [[ -v VERBOSE ]]; then + cmd+=("V=1") + else + cmd+=("-s") + fi cmd+=("-j$JOBS") cmd+=("--directory=.") cmd+=("M=$KMOD_DIR") -- 2.53.0