From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C3DD01D61B7 for ; Mon, 11 Aug 2025 22:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754951096; cv=none; b=H/Tups8Loq3tsdDfb7ebk+LEmKdI5rMZZ2LyCDWjJBj4mTB4+apqTfZ16qyTNySwQNW6nJFYHrZaSfH4UE6+hx4eILV2DvfPp3Ds/NzpcValP4Zwh7VdqJlSJIy2Y9wadniaM5rDJDgqsGKV798z3nuDGzpq47FrEbsVOvaUIJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754951096; c=relaxed/simple; bh=LXbYEtlEz0QYc9ChGGlEgxNvth/Zv5e3iMfWWLR85fE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V4mEaZQkobzXbA/W1R6rUrH+lRCDnQVBaCGKA/7nxh5SQMNr4nOZPK0qypGfOpim8Ta+uSsk/s89sPoGV2gdkIu/MScblKAgYR/aB6iC8lpectEy6ZDdBVox0giGHq0QDVP2RIl6QMUFZlKjuzozXhxz7kL6aT0VW6oa47wbLJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=AfiIJi2x; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="AfiIJi2x" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=K3W1BT1gmSrdGVMzO5hdWoGtcIody5UmJ8j4qIkDrEk=; b=AfiIJi2xnjSJTLKhiNXOxT0yUZ S7B1edddz0n6v5otAHlprSxyS0LpACuUCUIJnqLOm9YNCPGRSS24+xTN0L6T0CjLdq7VUwjhdrhls M7C5Wy13TCHMWnsuwmydUin4Z98m1WgT6CqANHxAJRQyEUd8rMvJz6Wl19oD1EVnskG3nD7sBkCPW 7Zz8w/s9OgRUjEQeXYDDLrqVMs56PwSpqlC2Hj8U5nlq4GNZgtBJSxjn0gpnLb4/CDrTLq/tExHnh wtfLm5n3tQaHak58h8eUO4qaEhTgDQo3Gi08wsZpCqVzBgdBs9Co5Pn5c+YQ35aaWHOFKw+02/m+I KAHWFjcA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ulawn-00000009HkJ-3R6X; Mon, 11 Aug 2025 22:24:53 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 18/23] reboot-limit: add COUNT parameter to override reboot count Date: Mon, 11 Aug 2025 15:24:45 -0700 Message-ID: <20250811222452.2213071-19-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250811222452.2213071-1-mcgrof@kernel.org> References: <20250811222452.2213071-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain Add support for overriding the reboot count at runtime using the COUNT parameter. This allows for quick testing without modifying the configuration: make reboot-limit-tests COUNT=2 This is useful for development and testing when you want to quickly verify the workflow with a small number of reboots instead of the configured maximum. The COUNT parameter works with all reboot-limit targets that respect the reboot_limit_max variable. Generated-by: Claude AI Signed-off-by: Luis Chamberlain --- workflows/demos/reboot-limit/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/workflows/demos/reboot-limit/Makefile b/workflows/demos/reboot-limit/Makefile index 438acbec..87b7ea10 100644 --- a/workflows/demos/reboot-limit/Makefile +++ b/workflows/demos/reboot-limit/Makefile @@ -57,7 +57,12 @@ endif # it works OK. Note that if enabling kernel-ci the steady state there # is separate. And so if this reboot_limit_max is 100 and steady state # is 100, we'd have to reboot 10,000 times before reaching steady state. +# The COUNT parameter can override this value at runtime. +ifdef COUNT +REBOOT_LIMIT_MAX:=$(COUNT) +else REBOOT_LIMIT_MAX:=$(subst ",,$(CONFIG_REBOOT_LIMIT_BOOT_MAX)) +endif REBOOT_LIMIT_ARGS += reboot_limit_max='$(REBOOT_LIMIT_MAX)' ifeq (y,$(CONFIG_REBOOT_LIMIT_BOOT_COUNT_CRASH_ENABLE)) @@ -213,5 +218,8 @@ reboot-limit-help-menu: @echo "reboot-limit-results - Analyze and summarize reboot-limit test results" @echo "reboot-limit-graph - Generate graphs from reboot-limit test results" @echo "" + @echo "Optional parameters:" + @echo " COUNT=N - Override the number of reboots (e.g., make reboot-limit-tests COUNT=2)" + @echo "" HELP_TARGETS += reboot-limit-help-menu -- 2.47.2