From nobody Thu Apr 9 17:59:26 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 3469137B41F for ; Fri, 6 Mar 2026 16:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772813619; cv=none; b=t27iPeD7O4ix98xXx+l+iQ2+5Qfiis45qSjaEiritigGEBlmOFRvnGQ6KJsyNnz1IRXZdf5i3A8kypk26E49exuCjXAm+Gd3vJNvBWm0EyqyFG2pD/veASY/GD9MzndzP0VJ3eQd/4fT3HaiWgPfTdML1huqyYrJXfH1VA+ywoQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772813619; c=relaxed/simple; bh=MXOtCZMxsfDHijoxtxkoRjFvX0AqG7us86qHveio4sU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cwne3Ig4ZoS2/OTD8WJtMwXEmj3XLYaHKASjbPyf6VIpG0gYvpDzL9AJ8z66ePvYEdKC87Ip7lr/L34QKjPxw/lLYD905pK9Ib+c+vx4TqQA5LJno4DHpHnLKOFzzeElMryqEsG6EubcmPow0OGXpxIVK6zkVGpJSlDb4BxkM0A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=SXu/DHJ/; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SXu/DHJ/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772813616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jYUhUcPVkT/WRHMuV6chDisV9g6arbR69yzhwqgrfkE=; b=SXu/DHJ/1sb0O/nqkDLlWngxI7IrMBaO3+2rLSUnKSKwSgLHlHMF0FCCP0k4rp6+Exhhs3 3nG3WsmSMXVfMQ0o/NSm1g9LQp7lGmapbFMXPXQDI4ZSDkEMzUSobvc3u61dRHJwuVWWF9 e07FPcdskBBQHT9tFws8g/mOQB0g5hU= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-663-8LnrB05qN7ih9snMrK1IoA-1; Fri, 06 Mar 2026 11:13:34 -0500 X-MC-Unique: 8LnrB05qN7ih9snMrK1IoA-1 X-Mimecast-MFC-AGG-ID: 8LnrB05qN7ih9snMrK1IoA_1772813613 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D18C71956080; Fri, 6 Mar 2026 16:13:32 +0000 (UTC) Received: from jlelli-thinkpadt14gen4.remote.csb (unknown [10.45.224.3]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1AAED3003E9F; Fri, 6 Mar 2026 16:13:28 +0000 (UTC) From: Juri Lelli Date: Fri, 06 Mar 2026 17:10:08 +0100 Subject: [PATCH RFC 3/7] selftests/sched: Integrate SCHED_DEADLINE tests into kselftest framework Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260306-upstream-deadline-kselftests-v1-3-2b23ef74c46a@redhat.com> References: <20260306-upstream-deadline-kselftests-v1-0-2b23ef74c46a@redhat.com> In-Reply-To: <20260306-upstream-deadline-kselftests-v1-0-2b23ef74c46a@redhat.com> To: Shuah Khan , Peter Zijlstra , Ingo Molnar Cc: Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Valentin Schneider , Clark Williams , Gabriele Monaco , Tommaso Cucinotta , Luca Abeni , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Juri Lelli X-Developer-Signature: v=1; a=ed25519-sha256; t=1772813592; l=1708; i=juri.lelli@redhat.com; s=20250626; h=from:subject:message-id; bh=MXOtCZMxsfDHijoxtxkoRjFvX0AqG7us86qHveio4sU=; b=TifsLXEcWcIHmDxSHhpItoP9zVsWID3JNnDfIMM1CYQG55byQVh0vo//tvnlRupLWM1NR5Zkz 7mBexaxN5APCWFo/AFVtO0tyZrvk8sNRNT4eaPQqn1JZOcFViw1HREH X-Developer-Key: i=juri.lelli@redhat.com; a=ed25519; pk=kSwf88oiY/PYrNMRL/tjuBPiSGzc+U3bD13Zag6wO5Q= X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Integrate the SCHED_DEADLINE test suite with the kselftest framework by adding it to the parent sched/Makefile. This allows the tests to be run via the standard kselftest mechanisms alongside other scheduler tests. The integration adds deadline/runner to TEST_PROGS for automatic execution during test runs, and deadline/cpuhog to TEST_GEN_PROGS_EXTENDED as a helper program that should be built but not executed directly. Build rules recursively build the deadline/ subdirectory tests when the sched test suite is built. The tests can now be run using standard kselftest invocations such as 'make -C tools/testing/selftests TARGETS=3Dsched run_tests' or 'make -C tools/testing/selftests/sched run_tests'. The deadline/runner will be executed as part of the sched test suite, providing structured output that integrates with the kselftest reporting infrastructure. Assisted-by: Claude Code: claude-sonnet-4-5@20250929 Signed-off-by: Juri Lelli --- tools/testing/selftests/sched/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/sched/Makefile b/tools/testing/selftes= ts/sched/Makefile index 099ee9213557a..8ee7620cc214c 100644 --- a/tools/testing/selftests/sched/Makefile +++ b/tools/testing/selftests/sched/Makefile @@ -11,4 +11,12 @@ LDLIBS +=3D -lpthread TEST_GEN_FILES :=3D cs_prctl_test TEST_PROGS :=3D cs_prctl_test =20 +# SCHED_DEADLINE tests in subdirectory +TEST_PROGS +=3D deadline/runner +TEST_GEN_PROGS_EXTENDED :=3D deadline/cpuhog + include ../lib.mk + +# Build deadline tests +$(OUTPUT)/deadline/runner $(OUTPUT)/deadline/cpuhog: + $(MAKE) -C deadline OUTPUT=3D$(OUTPUT)/deadline/ --=20 2.53.0