Home
last modified time | relevance | path

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

/linux/kernel/sched/
H A Dcputime.c646 static u64 vtime_delta(struct vtime *vtime) in vtime_delta() argument
651 if (clock < vtime->starttime) in vtime_delta()
654 return clock - vtime->starttime; in vtime_delta()
657 static u64 get_vtime_delta(struct vtime *vtime) in get_vtime_delta() argument
659 u64 delta = vtime_delta(vtime); in get_vtime_delta()
670 WARN_ON_ONCE(vtime->state == VTIME_INACTIVE); in get_vtime_delta()
671 vtime->starttime += delta; in get_vtime_delta()
677 struct vtime *vtime) in vtime_account_system() argument
679 vtime->stime += get_vtime_delta(vtime); in vtime_account_system()
680 if (vtime->stime >= TICK_NSEC) { in vtime_account_system()
[all …]
H A Dext.c438 u64 vtime; member
5466 u64 slice, u64 vtime, u64 enq_flags) in scx_bpf_dsq_insert_vtime() argument
5483 p->scx.dsq_vtime = vtime; in scx_bpf_dsq_insert_vtime()
5565 p->scx.dsq_vtime = kit->vtime; in scx_dsq_move()
5716 u64 vtime) in scx_bpf_dsq_move_set_vtime() argument
5720 kit->vtime = vtime; in scx_bpf_dsq_move_set_vtime()
/linux/tools/sched_ext/include/scx/
H A Dcompat.bpf.h35 void scx_bpf_dispatch_vtime___compat(struct task_struct *p, u64 dsq_id, u64 slice, u64 vtime, u64 e…
38 void scx_bpf_dispatch_from_dsq_set_vtime___compat(struct bpf_iter_scx_dsq *it__iter, u64 vtime) __k…
48 #define scx_bpf_dsq_insert_vtime(p, dsq_id, slice, vtime, enq_flags) \ argument
50 scx_bpf_dsq_insert_vtime((p), (dsq_id), (slice), (vtime), (enq_flags)) : \
51 scx_bpf_dispatch_vtime___compat((p), (dsq_id), (slice), (vtime), (enq_flags)))
65 #define __COMPAT_scx_bpf_dsq_move_set_vtime(it__iter, vtime) \ argument
67 scx_bpf_dsq_move_set_vtime((it__iter), (vtime)) : \
69 scx_bpf_dispatch_from_dsq_set_vtime___compat((it__iter), (vtime)) : \
93 #define scx_bpf_dispatch_vtime(p, dsq_id, slice, vtime, enq_flags) \ argument
104 #define scx_bpf_dispatch_from_dsq_set_vtime(it__iter, vtime) \ argument
[all …]
H A Dcommon.bpf.h66 void scx_bpf_dsq_insert_vtime(struct task_struct *p, u64 dsq_id, u64 slice, u64 vtime, u64 enq_flag…
71 void scx_bpf_dsq_move_set_vtime(struct bpf_iter_scx_dsq *it__iter, u64 vtime) __ksym __weak;
/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)
44 __entry->vtime = vtime;
57 __entry->vtime, __entry->inuse, __entry->weight,
64 u64 last_period, u64 cur_period, u64 vtime),
66 TP_ARGS(iocg, path, now, last_period, cur_period, vtime)
71 u64 last_period, u64 cur_period, u64 vtime),
73 TP_ARGS(iocg, path, now, last_period, cur_period, vtime)
/linux/tools/sched_ext/
H A Dscx_simple.bpf.c76 u64 vtime = p->scx.dsq_vtime; in BPF_STRUCT_OPS() local
82 if (time_before(vtime, vtime_now - SCX_SLICE_DFL)) in BPF_STRUCT_OPS()
83 vtime = vtime_now - SCX_SLICE_DFL; in BPF_STRUCT_OPS()
85 scx_bpf_dsq_insert_vtime(p, SHARED_DSQ, SCX_SLICE_DFL, vtime, in BPF_STRUCT_OPS()
H A DREADME.md169 scx_simple can be run in either global weighted vtime mode, or FIFO mode.
/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.c504 atomic64_t vtime; member
723 atomic64_add(cost, &iocg->vtime); in iocg_commit_bio()
1113 iocg->saved_margin = now->vnow - atomic64_read(&iocg->vtime); in __propagate_weights()
1272 u64 vtime, vtarget; in iocg_activate() local
1315 vtime = atomic64_read(&iocg->vtime); in iocg_activate()
1317 atomic64_add(vtarget - vtime, &iocg->vtime); in iocg_activate()
1318 atomic64_add(vtarget - vtime, &iocg->done_vtime); in iocg_activate()
1319 vtime = vtarget; in iocg_activate()
1333 last_period, cur_period, vtime); in iocg_activate()
1380 vover = atomic64_read(&iocg->vtime) + in iocg_kick_delay()
[all …]
H A Dbfq-iosched.h65 u64 vtime; member
/linux/tools/testing/selftests/sched_ext/
H A Dselect_cpu_vtime.bpf.c30 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.c185 .vtime.seqcount = SEQCNT_ZERO(init_task.vtime_seqcount),
186 .vtime.starttime = 0,
187 .vtime.state = VTIME_SYS,
/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()
488 vtime(&tmp); in test_emulation()
/linux/tools/cgroup/
H A Diocost_monitor.py157 vtime = iocg.vtime.counter.value_()
161 self.inflight_pct = (vtime - vdone) * 100 / period_vtime
/linux/arch/s390/kernel/
H A Dvtime.c97 static inline u64 scale_vtime(u64 vtime) in scale_vtime() argument
103 return vtime * mult / div; in scale_vtime()
104 return vtime; in scale_vtime()
H A DMakefile39 obj-y := head64.o traps.o time.o process.o early.o setup.o idle.o vtime.o
/linux/include/linux/
H A Dsched.h383 struct vtime { struct
1120 struct vtime vtime; member
/linux/kernel/
H A Dfork.c2085 seqcount_init(&p->vtime.seqcount); in copy_process()
2086 p->vtime.starttime = 0; in copy_process()
2087 p->vtime.state = VTIME_INACTIVE; in copy_process()