@@ -6391,7 +6391,8 @@ __bpf_kfunc_start_defs();
6391
6391
* When called from ops.dispatch(), there are no restrictions on @p or @dsq_id
6392
6392
* and this function can be called upto ops.dispatch_max_batch times to insert
6393
6393
* multiple tasks. scx_bpf_dispatch_nr_slots() returns the number of the
6394
- * remaining slots. scx_bpf_consume() flushes the batch and resets the counter.
6394
+ * remaining slots. scx_bpf_dsq_move_to_local() flushes the batch and resets the
6395
+ * counter.
6395
6396
*
6396
6397
* This function doesn't have any locking restrictions and may be called under
6397
6398
* BPF locks (in the future when BPF introduces more flexible locking).
@@ -6415,14 +6416,6 @@ __bpf_kfunc void scx_bpf_dsq_insert(struct task_struct *p, u64 dsq_id, u64 slice
6415
6416
scx_dsq_insert_commit (p , dsq_id , enq_flags );
6416
6417
}
6417
6418
6418
- /* for backward compatibility, will be removed in v6.15 */
6419
- __bpf_kfunc void scx_bpf_dispatch (struct task_struct * p , u64 dsq_id , u64 slice ,
6420
- u64 enq_flags )
6421
- {
6422
- printk_deferred_once (KERN_WARNING "sched_ext: scx_bpf_dispatch() renamed to scx_bpf_dsq_insert()" );
6423
- scx_bpf_dsq_insert (p , dsq_id , slice , enq_flags );
6424
- }
6425
-
6426
6419
/**
6427
6420
* scx_bpf_dsq_insert_vtime - Insert a task into the vtime priority queue of a DSQ
6428
6421
* @p: task_struct to insert
@@ -6460,21 +6453,11 @@ __bpf_kfunc void scx_bpf_dsq_insert_vtime(struct task_struct *p, u64 dsq_id,
6460
6453
scx_dsq_insert_commit (p , dsq_id , enq_flags | SCX_ENQ_DSQ_PRIQ );
6461
6454
}
6462
6455
6463
- /* for backward compatibility, will be removed in v6.15 */
6464
- __bpf_kfunc void scx_bpf_dispatch_vtime (struct task_struct * p , u64 dsq_id ,
6465
- u64 slice , u64 vtime , u64 enq_flags )
6466
- {
6467
- printk_deferred_once (KERN_WARNING "sched_ext: scx_bpf_dispatch_vtime() renamed to scx_bpf_dsq_insert_vtime()" );
6468
- scx_bpf_dsq_insert_vtime (p , dsq_id , slice , vtime , enq_flags );
6469
- }
6470
-
6471
6456
__bpf_kfunc_end_defs ();
6472
6457
6473
6458
BTF_KFUNCS_START (scx_kfunc_ids_enqueue_dispatch )
6474
6459
BTF_ID_FLAGS (func , scx_bpf_dsq_insert , KF_RCU )
6475
6460
BTF_ID_FLAGS (func , scx_bpf_dsq_insert_vtime , KF_RCU )
6476
- BTF_ID_FLAGS (func , scx_bpf_dispatch , KF_RCU )
6477
- BTF_ID_FLAGS (func , scx_bpf_dispatch_vtime , KF_RCU )
6478
6461
BTF_KFUNCS_END (scx_kfunc_ids_enqueue_dispatch )
6479
6462
6480
6463
static const struct btf_kfunc_id_set scx_kfunc_set_enqueue_dispatch = {
@@ -6647,13 +6630,6 @@ __bpf_kfunc bool scx_bpf_dsq_move_to_local(u64 dsq_id)
6647
6630
}
6648
6631
}
6649
6632
6650
- /* for backward compatibility, will be removed in v6.15 */
6651
- __bpf_kfunc bool scx_bpf_consume (u64 dsq_id )
6652
- {
6653
- printk_deferred_once (KERN_WARNING "sched_ext: scx_bpf_consume() renamed to scx_bpf_dsq_move_to_local()" );
6654
- return scx_bpf_dsq_move_to_local (dsq_id );
6655
- }
6656
-
6657
6633
/**
6658
6634
* scx_bpf_dsq_move_set_slice - Override slice when moving between DSQs
6659
6635
* @it__iter: DSQ iterator in progress
@@ -6672,14 +6648,6 @@ __bpf_kfunc void scx_bpf_dsq_move_set_slice(struct bpf_iter_scx_dsq *it__iter,
6672
6648
kit -> cursor .flags |= __SCX_DSQ_ITER_HAS_SLICE ;
6673
6649
}
6674
6650
6675
- /* for backward compatibility, will be removed in v6.15 */
6676
- __bpf_kfunc void scx_bpf_dispatch_from_dsq_set_slice (
6677
- struct bpf_iter_scx_dsq * it__iter , u64 slice )
6678
- {
6679
- printk_deferred_once (KERN_WARNING "sched_ext: scx_bpf_dispatch_from_dsq_set_slice() renamed to scx_bpf_dsq_move_set_slice()" );
6680
- scx_bpf_dsq_move_set_slice (it__iter , slice );
6681
- }
6682
-
6683
6651
/**
6684
6652
* scx_bpf_dsq_move_set_vtime - Override vtime when moving between DSQs
6685
6653
* @it__iter: DSQ iterator in progress
@@ -6699,14 +6667,6 @@ __bpf_kfunc void scx_bpf_dsq_move_set_vtime(struct bpf_iter_scx_dsq *it__iter,
6699
6667
kit -> cursor .flags |= __SCX_DSQ_ITER_HAS_VTIME ;
6700
6668
}
6701
6669
6702
- /* for backward compatibility, will be removed in v6.15 */
6703
- __bpf_kfunc void scx_bpf_dispatch_from_dsq_set_vtime (
6704
- struct bpf_iter_scx_dsq * it__iter , u64 vtime )
6705
- {
6706
- printk_deferred_once (KERN_WARNING "sched_ext: scx_bpf_dispatch_from_dsq_set_vtime() renamed to scx_bpf_dsq_move_set_vtime()" );
6707
- scx_bpf_dsq_move_set_vtime (it__iter , vtime );
6708
- }
6709
-
6710
6670
/**
6711
6671
* scx_bpf_dsq_move - Move a task from DSQ iteration to a DSQ
6712
6672
* @it__iter: DSQ iterator in progress
@@ -6739,15 +6699,6 @@ __bpf_kfunc bool scx_bpf_dsq_move(struct bpf_iter_scx_dsq *it__iter,
6739
6699
p , dsq_id , enq_flags );
6740
6700
}
6741
6701
6742
- /* for backward compatibility, will be removed in v6.15 */
6743
- __bpf_kfunc bool scx_bpf_dispatch_from_dsq (struct bpf_iter_scx_dsq * it__iter ,
6744
- struct task_struct * p , u64 dsq_id ,
6745
- u64 enq_flags )
6746
- {
6747
- printk_deferred_once (KERN_WARNING "sched_ext: scx_bpf_dispatch_from_dsq() renamed to scx_bpf_dsq_move()" );
6748
- return scx_bpf_dsq_move (it__iter , p , dsq_id , enq_flags );
6749
- }
6750
-
6751
6702
/**
6752
6703
* scx_bpf_dsq_move_vtime - Move a task from DSQ iteration to a PRIQ DSQ
6753
6704
* @it__iter: DSQ iterator in progress
@@ -6773,30 +6724,16 @@ __bpf_kfunc bool scx_bpf_dsq_move_vtime(struct bpf_iter_scx_dsq *it__iter,
6773
6724
p , dsq_id , enq_flags | SCX_ENQ_DSQ_PRIQ );
6774
6725
}
6775
6726
6776
- /* for backward compatibility, will be removed in v6.15 */
6777
- __bpf_kfunc bool scx_bpf_dispatch_vtime_from_dsq (struct bpf_iter_scx_dsq * it__iter ,
6778
- struct task_struct * p , u64 dsq_id ,
6779
- u64 enq_flags )
6780
- {
6781
- printk_deferred_once (KERN_WARNING "sched_ext: scx_bpf_dispatch_from_dsq_vtime() renamed to scx_bpf_dsq_move_vtime()" );
6782
- return scx_bpf_dsq_move_vtime (it__iter , p , dsq_id , enq_flags );
6783
- }
6784
-
6785
6727
__bpf_kfunc_end_defs ();
6786
6728
6787
6729
BTF_KFUNCS_START (scx_kfunc_ids_dispatch )
6788
6730
BTF_ID_FLAGS (func , scx_bpf_dispatch_nr_slots )
6789
6731
BTF_ID_FLAGS (func , scx_bpf_dispatch_cancel )
6790
6732
BTF_ID_FLAGS (func , scx_bpf_dsq_move_to_local )
6791
- BTF_ID_FLAGS (func , scx_bpf_consume )
6792
6733
BTF_ID_FLAGS (func , scx_bpf_dsq_move_set_slice )
6793
6734
BTF_ID_FLAGS (func , scx_bpf_dsq_move_set_vtime )
6794
6735
BTF_ID_FLAGS (func , scx_bpf_dsq_move , KF_RCU )
6795
6736
BTF_ID_FLAGS (func , scx_bpf_dsq_move_vtime , KF_RCU )
6796
- BTF_ID_FLAGS (func , scx_bpf_dispatch_from_dsq_set_slice )
6797
- BTF_ID_FLAGS (func , scx_bpf_dispatch_from_dsq_set_vtime )
6798
- BTF_ID_FLAGS (func , scx_bpf_dispatch_from_dsq , KF_RCU )
6799
- BTF_ID_FLAGS (func , scx_bpf_dispatch_vtime_from_dsq , KF_RCU )
6800
6737
BTF_KFUNCS_END (scx_kfunc_ids_dispatch )
6801
6738
6802
6739
static const struct btf_kfunc_id_set scx_kfunc_set_dispatch = {
@@ -6927,10 +6864,6 @@ BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice)
6927
6864
BTF_ID_FLAGS (func , scx_bpf_dsq_move_set_vtime )
6928
6865
BTF_ID_FLAGS (func , scx_bpf_dsq_move , KF_RCU )
6929
6866
BTF_ID_FLAGS (func , scx_bpf_dsq_move_vtime , KF_RCU )
6930
- BTF_ID_FLAGS (func , scx_bpf_dispatch_from_dsq_set_slice )
6931
- BTF_ID_FLAGS (func , scx_bpf_dispatch_from_dsq_set_vtime )
6932
- BTF_ID_FLAGS (func , scx_bpf_dispatch_from_dsq , KF_RCU )
6933
- BTF_ID_FLAGS (func , scx_bpf_dispatch_vtime_from_dsq , KF_RCU )
6934
6867
BTF_KFUNCS_END (scx_kfunc_ids_unlocked )
6935
6868
6936
6869
static const struct btf_kfunc_id_set scx_kfunc_set_unlocked = {
0 commit comments