Home
last modified time | relevance | path

Searched refs:vtime (Results 1 – 16 of 16) sorted by relevance

/linux/kernel/sched/
H A Dcputime.c533 * Generic vtime already does its own idle accounting. in kcpustat_irq_exit()
534 * But irqtime accounting or arch vtime which also accounts IRQs in kcpustat_irq_exit()
864 static u64 vtime_delta(struct vtime *vtime) in vtime_delta()
869 if (clock < vtime->starttime)
872 return clock - vtime->starttime; in get_vtime_delta()
875 static u64 get_vtime_delta(struct vtime *vtime) in get_vtime_delta()
877 u64 delta = vtime_delta(vtime); in get_vtime_delta()
881 * Unlike tick based timing, vtime base in get_vtime_delta()
859 vtime_delta(struct vtime * vtime) vtime_delta() argument
870 get_vtime_delta(struct vtime * vtime) get_vtime_delta() argument
890 vtime_account_system(struct task_struct * tsk,struct vtime * vtime) vtime_account_system() argument
900 vtime_account_guest(struct task_struct * tsk,struct vtime * vtime) vtime_account_guest() argument
910 __vtime_account_kernel(struct task_struct * tsk,struct vtime * vtime) __vtime_account_kernel() argument
921 struct vtime *vtime = &tsk->vtime; vtime_account_kernel() local
933 struct vtime *vtime = &tsk->vtime; vtime_user_enter() local
943 struct vtime *vtime = &tsk->vtime; vtime_user_exit() local
957 struct vtime *vtime = &tsk->vtime; vtime_guest_enter() local
975 struct vtime *vtime = &tsk->vtime; vtime_guest_exit() local
985 __vtime_account_idle(struct vtime * vtime) __vtime_account_idle() argument
992 struct vtime *vtime = &prev->vtime; vtime_task_switch_generic() local
1019 struct vtime *vtime = &t->vtime; vtime_init_idle() local
1033 struct vtime *vtime = &t->vtime; task_gtime() local
1059 struct vtime *vtime = &t->vtime; task_cputime() local
1097 vtime_state_fetch(struct vtime * vtime,int cpu) vtime_state_fetch() argument
1123 kcpustat_user_vtime(struct vtime * vtime) kcpustat_user_vtime() argument
1137 struct vtime *vtime = &tsk->vtime; kcpustat_field_vtime() local
1232 struct vtime *vtime = &tsk->vtime; kcpustat_cpu_fetch_vtime() local
[all...]
/linux/tools/sched_ext/include/scx/
H A Dcompat.bpf.h37 void scx_bpf_dsq_move_set_vtime___new(struct bpf_iter_scx_dsq *it__iter, u64 vtime) __ksym __weak;
43 void scx_bpf_dispatch_from_dsq_set_vtime___old(struct bpf_iter_scx_dsq *it__iter, u64 vtime) __ksym __weak;
61 #define scx_bpf_dsq_move_set_vtime(it__iter, vtime) \ argument
63 scx_bpf_dsq_move_set_vtime___new((it__iter), (vtime)) : \
65 scx_bpf_dispatch_from_dsq_set_vtime___old((it__iter), (vtime)) : \
355 void scx_bpf_dispatch_vtime___compat(struct task_struct *p, u64 dsq_id, u64 slice, u64 vtime, u64 enq_flags) __ksym __weak;
356 void scx_bpf_dsq_insert_vtime___compat(struct task_struct *p, u64 dsq_id, u64 slice, u64 vtime, u64 enq_flags) __ksym __weak;
396 * scx_bpf_dsq_insert_vtime - Insert a task into the vtime priority queue of a DSQ in scx_bpf_task_set_slice()
400 * @vtime: @p's ordering inside the vtime in scx_bpf_task_set_dsq_vtime()
332 scx_bpf_dsq_insert_vtime(struct task_struct * p,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) scx_bpf_dsq_insert_vtime() argument
398 scx_bpf_task_set_dsq_vtime(struct task_struct * p,u64 vtime) scx_bpf_task_set_dsq_vtime() argument
[all...]
/linux/include/trace/events/
H A Diocost.h17 u64 last_period, u64 cur_period, u64 vtime),
19 TP_ARGS(iocg, path, now, last_period, cur_period, vtime),
29 __field(u64, vtime)
47 __entry->vtime = vtime;
55 "period=%llu->%llu vtime=%llu "
60 __entry->vtime, __entry->inuse, __entry->weight,
67 u64 last_period, u64 cur_period, u64 vtime),
69 TP_ARGS(iocg, path, now, last_period, cur_period, vtime)
74 u64 last_period, u64 cur_period, u64 vtime),
[all...]
/linux/block/
H A Dbfq-wf2q.c117 !bfq_gt(new_entity->start, st->vtime) in bfq_update_next_in_service()
662 !bfq_gt(last_idle->finish, st->vtime)) { in bfq_forget_idle()
667 st->vtime = last_idle->finish; in bfq_forget_idle()
670 if (first_idle && !bfq_gt(first_idle->finish, st->vtime)) in bfq_forget_idle()
771 entity->start = new_st->vtime; in __bfq_entity_update_weight_prio()
804 st->vtime += bfq_delta(served, st->wsum); in bfq_bfqq_served()
902 if (backshifted && bfq_gt(st->vtime, entity->finish)) { in bfq_update_fin_time_enqueue()
903 unsigned long delta = st->vtime - entity->finish; in bfq_update_fin_time_enqueue()
935 if (non_blocking_wait_rq && bfq_gt(st->vtime, entity->finish)) { in __bfq_activate_entity()
939 min_vstart = st->vtime; in __bfq_activate_entity()
[all …]
H A Dblk-iocost.c51 * The device virtual time (vtime) is used as the primary control metric.
73 * A given cgroup's vtime runs slower in inverse proportion to its hweight.
75 * against the device vtime - an IO which takes 10ms on the underlying
79 * vtime is running at a rate determined by its hweight. A cgroup tracks
80 * the vtime consumed by past IOs and can issue a new IO if doing so
81 * wouldn't outrun the current device vtime. Otherwise, the IO is
82 * suspended until the vtime has progressed enough to cover it.
97 * To slow down, we lower the vrate - the rate at which the device vtime
98 * passes compared to the wall clock. For example, if the vtime is running
144 * snapback mechanism in case the cgroup needs more IO vtime fo
504 atomic64_t vtime; global() member
1252 u64 vtime, vtarget; iocg_activate() local
1745 u64 vtime = atomic64_read(&iocg->vtime); hweight_after_donation() local
2202 u64 vtime = atomic64_read(&iocg->vtime); ioc_check_iocgs() local
2274 u64 vdone, vtime, usage_us; ioc_timer_fn() local
2466 adjust_inuse_and_calc_cost(struct ioc_gq * iocg,u64 vtime,u64 abs_cost,struct ioc_now * now) adjust_inuse_and_calc_cost() argument
2694 u64 abs_cost, cost, vtime; ioc_rqos_throttle() local
2782 u64 vtime, abs_cost, cost; ioc_rqos_merge() local
[all...]
H A Dbfq-iosched.h65 u64 vtime; member
/linux/tools/testing/selftests/sched_ext/
H A Dselect_cpu_vtime.bpf.c6 * and making the test a very basic vtime scheduler.
30 u64 vtime = p->scx.dsq_vtime; in task_vtime() local
32 if (vtime_before(vtime, vtime_now - SCX_SLICE_DFL)) in task_vtime()
35 return vtime; in task_vtime()
/linux/init/
H A Dinit_task.c222 .vtime.seqcount = SEQCNT_ZERO(init_task.vtime_seqcount),
223 .vtime.starttime = 0,
224 .vtime.state = VTIME_SYS,
/linux/arch/s390/kernel/
H A Dvtime.c82 static inline u64 scale_vtime(u64 vtime) in scale_vtime() argument
88 return vtime * mult / div; in scale_vtime()
89 return vtime; in scale_vtime()
/linux/tools/testing/selftests/x86/
H A Dtest_vsyscall.c60 const time_func_t vtime = (time_func_t)VSYS(0xffffffffff600400); variable
185 t_vsys = vtime(&t2_vsys); in test_time()
491 vtime(&tmp); in test_emulation()
/linux/tools/cgroup/
H A Diocost_monitor.py160 vtime = iocg.vtime.counter.value_()
164 self.inflight_pct = (vtime - vdone) * 100 / period_vtime
/linux/kernel/sched/ext/
H A Dext.c657 * bounds the iteration and guarantees that vtime never jumps in the other in scx_set_task_state()
737 u64 vtime; in scx_task_iter_start()
1592 static void apply_slice_vtime(struct task_struct *p, u64 slice, u64 vtime, u64 enq_flags) in rq_owned_post_enq()
1607 p->scx.dsq_vtime = vtime; in scx_dispatch_enqueue() argument
1857 u64 slice, u64 vtime, u64 enq_flags) in find_dsq_for_dispatch()
1886 * starving vtime-dispatched tasks by FIFO-dispatched tasks, we in mark_direct_dispatch()
1887 * disallow any internal DSQ from doing vtime ordering of in mark_direct_dispatch()
1890 scx_error(sch, "cannot use vtime ordering for built-in DSQs"); in mark_direct_dispatch()
1896 * and vtime before the PRIQ insertion below reads the new dsq_vtime. in mark_direct_dispatch()
1899 apply_slice_vtime(p, slice, vtime, enq_flag in mark_direct_dispatch()
641 u64 vtime; global() member
1394 apply_slice_vtime(struct task_struct * p,u64 slice,u64 vtime,u64 enq_flags) apply_slice_vtime() argument
1882 mark_direct_dispatch(struct scx_sched * sch,struct task_struct * ddsp_task,struct task_struct * p,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) mark_direct_dispatch() argument
1939 u64 ddsp_enq_flags, slice, vtime; direct_dispatch() local
2770 dispatch_to_local_dsq(struct scx_sched * sch,struct rq * rq,struct scx_dispatch_q * dst_dsq,struct task_struct * p,u64 slice,u64 vtime,u64 enq_flags) dispatch_to_local_dsq() argument
2871 finish_dispatch(struct scx_sched * sch,struct rq * rq,struct task_struct * p,unsigned long qseq_at_dispatch,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) finish_dispatch() argument
4447 u64 vtime = p->scx.ddsp_vtime; process_ddsp_deferred_locals() local
8956 scx_dsq_insert_commit(struct scx_sched * sch,struct task_struct * p,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) scx_dsq_insert_commit() argument
9054 scx_dsq_insert_vtime(struct scx_sched * sch,struct task_struct * p,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) scx_dsq_insert_vtime() argument
9068 u64 vtime; global() member
9124 scx_bpf_dsq_insert_vtime(struct task_struct * p,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) scx_bpf_dsq_insert_vtime() argument
9425 scx_bpf_dsq_move_set_vtime(struct bpf_iter_scx_dsq * it__iter,u64 vtime) scx_bpf_dsq_move_set_vtime() argument
9704 scx_bpf_task_set_dsq_vtime(struct task_struct * p,u64 vtime,const struct bpf_prog_aux * aux) scx_bpf_task_set_dsq_vtime() argument
[all...]
H A Dinternal.h1472 u64 vtime;
1967 SCX_ENQ_APPLY_SLICE = 1LLU << 61, /* apply carried slice/vtime at insertion */
1332 u64 vtime; global() member
/linux/include/linux/
H A Dsched.h385 struct vtime { struct
1143 struct vtime vtime;
388 statevtime global() argument
389 cpuvtime global() argument
390 utimevtime global() argument
391 stimevtime global() argument
392 gtimevtime global() argument
1141 struct vtime vtime; global() member
/linux/kernel/
H A Dfork.c2229 seqcount_init(&p->vtime.seqcount); in copy_process()
2230 p->vtime.starttime = 0; in copy_process()
2231 p->vtime.state = VTIME_INACTIVE; in copy_process()
/linux/tools/sched_ext/
H A DREADME.md162 scx_simple can be run in either global weighted vtime mode, or FIFO mode.