lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <628a8469-ba86-47b1-9798-f72a03c9f0ff@igalia.com>
Date: Fri, 17 Jan 2025 16:12:02 +0900
From: Changwoo Min <changwoo@...lia.com>
To: Tejun Heo <tj@...nel.org>
Cc: void@...ifault.com, arighi@...dia.com, kernel-dev@...lia.com,
 linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/7] sched_ext: Add an event, SCX_EVENT_CNTD_RUN_WO_ENQ

Hello,

On 25. 1. 17. 10:39, Tejun Heo wrote:
> On Fri, Jan 17, 2025 at 12:15:39AM +0900, Changwoo Min wrote:
>> Add a core event, SCX_EVENT_CNTD_RUN_WO_ENQ, which represents how many
>> times a task is continued to run without ops.enqueue() when SCX_OPS_ENQ_LAST
>> is not set.
>>
>> Signed-off-by: Changwoo Min <changwoo@...lia.com>
>> ---
>>   kernel/sched/ext.c | 9 +++++++++
>>   1 file changed, 9 insertions(+)
>>
>> diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c
>> index 8054e4e5ed0c..909f12a41934 100644
>> --- a/kernel/sched/ext.c
>> +++ b/kernel/sched/ext.c
>> @@ -1473,6 +1473,12 @@ struct scx_event_stat {
>>   	 * the meantime. In this case, the task is bounced to the global DSQ.
>>   	 */
>>   	u64		OFFLINE_LOCAL_DSQ;
>> +
>> +	/*
>> +	 * If SCX_OPS_ENQ_LAST is not set, the number of times that a task
>> +	 * continued to run because there were no other tasks on the CPU.
>> +	 */
>> +	u64		CNTD_RUN_WO_ENQ;
> 
> DISPATCH_KEEP_LAST?

That's good.

Regards,
Changwoo Min

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ