From nobody Sat Feb 7 14:15:48 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 431382DC355 for ; Thu, 29 Jan 2026 16:06:17 +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=1769702778; cv=none; b=loUJDAk25HDXal+Hu5vcf2L7yMrYvKJAqTCbmoO6REzxuqTJasoaarmUbLt0goO1C4+OnuvTdPV7fjz3tWLPucw6NoH04kYhZ+dOd94YgniDpXI5g2hayjlIRetMj9C88904LcqvJNKWRUfJIlT4LJcCA6i8TA+h/3bAZ9tHlTQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769702778; c=relaxed/simple; bh=HUnLsLcnhf/OM5oOvuEVERwxJhDoLq+u0mRxRzZ5Ggo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-type; b=SpnSOBL0sgoN5Usy/TOnYB+UyLcMbAkrIxFBMJMY66G2H3YWcMdsteMAxPHoDtGj/uoOWBQWkfWaq3G49vtpBGeWnXdg0k5deaqPxNmRk2ElxdVz8sGcmuEi/0AV60xXQQvD83soc+gghNHK5aSYqss4srNKR4U+uRPPze7oCus= 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=Z7xgsknJ; 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="Z7xgsknJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769702776; 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; bh=ByFV9qjA0wBbHQGwzblwVuxvZ6GB7YeA7aTwRCwOX9I=; b=Z7xgsknJG/K3DmuSf18vZ8dcWfRhMg8DhABbbl9eb+8Rb388xs3TKyJD6wrLBHmljtmQSo YNBQ0J7O2eqiKCcwqNkRJKZL8T5JUufnWyPe3Q9LU0FCbLVIlvhKQwQMSIIvsed02BoXno Pzt4CiASf8VyQ3RPHVhW8NQ4hPKsqNM= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-299-9SaK1VsJPZWN40QO1i-EYA-1; Thu, 29 Jan 2026 11:06:12 -0500 X-MC-Unique: 9SaK1VsJPZWN40QO1i-EYA-1 X-Mimecast-MFC-AGG-ID: 9SaK1VsJPZWN40QO1i-EYA_1769702772 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3E7A01800639; Thu, 29 Jan 2026 16:06:10 +0000 (UTC) Received: from pauld.com (unknown [10.22.88.175]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5B06C1944B34; Thu, 29 Jan 2026 16:06:04 +0000 (UTC) From: Phil Auld To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Juri Lelli , Ingo Molnar , Gabriele Monaco Subject: [PATCH] sched: Fix tracepoint called from set_tsk_need_resched() more Date: Thu, 29 Jan 2026 11:05:27 -0500 Message-ID: <20260129160527.238267-1-pauld@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Content-Type: text/plain; charset="utf-8" This raw tracepoint is added to set_tsk_need_resched() which introduces two symbols which were then exported GPL-only. While generally better to add new symbols GPL-only, set_tsk_need_resched() is called from places that are exported without that restriction. This includes things like wake_up_process(). Export these new symbols without the added restriction. Fixes: 8d737320166b ("sched: Fix build for modules using set_tsk_need_resch= ed()") Fixes: 6c125b85f3c8 ("sched: Export hidden tracepoints to modules") Fixes: adcc3bfa8806 ("sched: Adapt sched tracepoints for RV task model") Signed-off-by: Phil Auld Reviewed-by: Gabriele Monaco --- This is against tip:sched/core (377521af0341). kernel/sched/core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index c5431afe23b0..2871369c05fa 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -121,7 +121,8 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(sched_update_nr_running_tp= ); EXPORT_TRACEPOINT_SYMBOL_GPL(sched_compute_energy_tp); EXPORT_TRACEPOINT_SYMBOL_GPL(sched_entry_tp); EXPORT_TRACEPOINT_SYMBOL_GPL(sched_exit_tp); -EXPORT_TRACEPOINT_SYMBOL_GPL(sched_set_need_resched_tp); +/* This needs non-GPL-only. It's called from other non-GPL-only exports (e= .g. wake_up_process()) */ +EXPORT_TRACEPOINT_SYMBOL(sched_set_need_resched_tp); =20 DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues); DEFINE_PER_CPU(struct rnd_state, sched_rnd_state); @@ -1139,7 +1140,8 @@ void __trace_set_need_resched(struct task_struct *cur= r, int tif) { trace_sched_set_need_resched_tp(curr, smp_processor_id(), tif); } -EXPORT_SYMBOL_GPL(__trace_set_need_resched); +/* This needs non-GPL-only. It's called from other non-GPL-only exports (e= .g. wake_up_process()) */ +EXPORT_SYMBOL(__trace_set_need_resched); =20 void resched_curr(struct rq *rq) { --=20 2.52.0