public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/sched_ext: Fix wrong DSQ ID in peek_dsq error message
@ 2026-04-10  6:47 fangqiurong
  2026-04-10  9:12 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: fangqiurong @ 2026-04-10  6:47 UTC (permalink / raw)
  To: tj, void
  Cc: arighi, changwoo, shuah, christian.loehle, newton, sched-ext,
	linux-kselftest, linux-kernel, fangqiurong

From: fangqiurong <fangqiurong@kylinos.cn>

The error path after scx_bpf_create_dsq(real_dsq_id, ...) was reporting
test_dsq_id instead of real_dsq_id in the error message, which would
mislead debugging.

Signed-off-by: fangqiurong <fangqiurong@kylinos.cn>
---
 tools/testing/selftests/sched_ext/peek_dsq.bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/sched_ext/peek_dsq.bpf.c b/tools/testing/selftests/sched_ext/peek_dsq.bpf.c
index 96e3a336a8a6..7f23fb17b1e0 100644
--- a/tools/testing/selftests/sched_ext/peek_dsq.bpf.c
+++ b/tools/testing/selftests/sched_ext/peek_dsq.bpf.c
@@ -197,7 +197,7 @@ s32 BPF_STRUCT_OPS_SLEEPABLE(peek_dsq_init)
 	}
 	err = scx_bpf_create_dsq(real_dsq_id, -1);
 	if (err) {
-		scx_bpf_error("Failed to create DSQ %d: %d", test_dsq_id, err);
+		scx_bpf_error("Failed to create DSQ %d: %d", real_dsq_id, err);
 		return err;
 	}
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] selftests/sched_ext: Fix wrong DSQ ID in peek_dsq error message
  2026-04-10  6:47 [PATCH] selftests/sched_ext: Fix wrong DSQ ID in peek_dsq error message fangqiurong
@ 2026-04-10  9:12 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2026-04-10  9:12 UTC (permalink / raw)
  To: fangqiurong
  Cc: void, arighi, changwoo, shuah, christian.loehle, newton,
	sched-ext, linux-kselftest, linux-kernel, emil

Applied to sched_ext/for-7.1.

Thanks.

--
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-10  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10  6:47 [PATCH] selftests/sched_ext: Fix wrong DSQ ID in peek_dsq error message fangqiurong
2026-04-10  9:12 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox