[RESEND PATCH v2 0/2] sched_ext: rename var for slice refill event and add helper

Honglei Wang posted 2 patches 7 months, 1 week ago
kernel/sched/ext.c             | 36 +++++++++++++++++-----------------
tools/sched_ext/scx_qmap.bpf.c |  4 ++--
2 files changed, 20 insertions(+), 20 deletions(-)
[RESEND PATCH v2 0/2] sched_ext: rename var for slice refill event and add helper
Posted by Honglei Wang 7 months, 1 week ago
SCX_EV_ENQ_SLICE_DFL gives the impression that the event only occurs
when the tasks were enqueued, which seems not accurate. So rename the
variable to SCX_EV_REFILL_SLICE_DFL.

The slice refilling with default slice always come with event
statistics together, add a helper routine to make it cleaner.

Changes in v2:
Refine the comments base on Andrea's suggestion.

Honglei Wang (2):
  sched_ext: change the variable name for slice refill event
  sched_ext: add helper for refill task with default slice

 kernel/sched/ext.c             | 36 +++++++++++++++++-----------------
 tools/sched_ext/scx_qmap.bpf.c |  4 ++--
 2 files changed, 20 insertions(+), 20 deletions(-)

-- 
2.45.2
Re: [RESEND PATCH v2 0/2] sched_ext: rename var for slice refill event and add helper
Posted by Tejun Heo 7 months, 1 week ago
On Wed, May 07, 2025 at 09:16:35AM +0800, Honglei Wang wrote:
> SCX_EV_ENQ_SLICE_DFL gives the impression that the event only occurs
> when the tasks were enqueued, which seems not accurate. So rename the
> variable to SCX_EV_REFILL_SLICE_DFL.
> 
> The slice refilling with default slice always come with event
> statistics together, add a helper routine to make it cleaner.
> 
> Changes in v2:
> Refine the comments base on Andrea's suggestion.
> 
> Honglei Wang (2):
>   sched_ext: change the variable name for slice refill event
>   sched_ext: add helper for refill task with default slice
> 
>  kernel/sched/ext.c             | 36 +++++++++++++++++-----------------
>  tools/sched_ext/scx_qmap.bpf.c |  4 ++--
>  2 files changed, 20 insertions(+), 20 deletions(-)

These patches already had been applied back in mid April. If there are
updates to be made, please send incremental patches.

Thanks.

-- 
tejun
Re: [RESEND PATCH v2 0/2] sched_ext: rename var for slice refill event and add helper
Posted by Honglei Wang 7 months, 1 week ago
Hi Tejun,

On 2025/5/8 00:59, Tejun Heo wrote:
> On Wed, May 07, 2025 at 09:16:35AM +0800, Honglei Wang wrote:
>> SCX_EV_ENQ_SLICE_DFL gives the impression that the event only occurs
>> when the tasks were enqueued, which seems not accurate. So rename the
>> variable to SCX_EV_REFILL_SLICE_DFL.
>>
>> The slice refilling with default slice always come with event
>> statistics together, add a helper routine to make it cleaner.
>>
>> Changes in v2:
>> Refine the comments base on Andrea's suggestion.
>>
>> Honglei Wang (2):
>>   sched_ext: change the variable name for slice refill event
>>   sched_ext: add helper for refill task with default slice
>>
>>  kernel/sched/ext.c             | 36 +++++++++++++++++-----------------
>>  tools/sched_ext/scx_qmap.bpf.c |  4 ++--
>>  2 files changed, 20 insertions(+), 20 deletions(-)
> 
> These patches already had been applied back in mid April. If there are
> updates to be made, please send incremental patches.
> 

Seems I missed the applied message in the mail series... Sorry for
bothering, I'll be careful next time.

Thanks,
Honglei

> Thanks.
>
Re: [RESEND PATCH v2 0/2] sched_ext: rename var for slice refill event and add helper
Posted by Changwoo Min 7 months, 1 week ago
Hi Honglei,

Looks good to me.

Acked-by: Changwoo Min <changwoo@igalia.com>

On 5/7/25 10:16, Honglei Wang wrote:
> SCX_EV_ENQ_SLICE_DFL gives the impression that the event only occurs
> when the tasks were enqueued, which seems not accurate. So rename the
> variable to SCX_EV_REFILL_SLICE_DFL.
> 
> The slice refilling with default slice always come with event
> statistics together, add a helper routine to make it cleaner.
> 
> Changes in v2:
> Refine the comments base on Andrea's suggestion.
> 
> Honglei Wang (2):
>    sched_ext: change the variable name for slice refill event
>    sched_ext: add helper for refill task with default slice
> 
>   kernel/sched/ext.c             | 36 +++++++++++++++++-----------------
>   tools/sched_ext/scx_qmap.bpf.c |  4 ++--
>   2 files changed, 20 insertions(+), 20 deletions(-)
>