Home
last modified time | relevance | path

Searched refs:steal (Results 1 - 25 of 39) sorted by relevance

12

/kernel/linux/linux-5.10/arch/arm64/kvm/
H A Dpvtime.c16 u64 base = vcpu->arch.steal.base; in kvm_update_stolen_time()
17 u64 last_steal = vcpu->arch.steal.last_steal; in kvm_update_stolen_time()
19 u64 steal = 0; in kvm_update_stolen_time() local
26 if (!kvm_get_guest(kvm, base + offset, steal)) { in kvm_update_stolen_time()
27 steal = le64_to_cpu(steal); in kvm_update_stolen_time()
28 vcpu->arch.steal.last_steal = READ_ONCE(current->sched_info.run_delay); in kvm_update_stolen_time()
29 steal += vcpu->arch.steal.last_steal - last_steal; in kvm_update_stolen_time()
30 kvm_put_guest(kvm, base + offset, cpu_to_le64(steal)); in kvm_update_stolen_time()
[all...]
/kernel/linux/linux-6.6/arch/arm64/kvm/
H A Dpvtime.c16 u64 base = vcpu->arch.steal.base; in kvm_update_stolen_time()
17 u64 last_steal = vcpu->arch.steal.last_steal; in kvm_update_stolen_time()
19 u64 steal = 0; in kvm_update_stolen_time() local
26 if (!kvm_get_guest(kvm, base + offset, steal)) { in kvm_update_stolen_time()
27 steal = le64_to_cpu(steal); in kvm_update_stolen_time()
28 vcpu->arch.steal.last_steal = READ_ONCE(current->sched_info.run_delay); in kvm_update_stolen_time()
29 steal += vcpu->arch.steal.last_steal - last_steal; in kvm_update_stolen_time()
30 kvm_put_guest(kvm, base + offset, cpu_to_le64(steal)); in kvm_update_stolen_time()
[all...]
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
H A Divtv-queue.c95 If 'steal' != NULL, then buffers may also taken from that queue if
99 also cleared if buffers need to be taken from the 'steal' queue and
104 bytesused value. For the 'steal' queue the total available buffer
110 int ivtv_queue_move(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal, in ivtv_queue_move() argument
126 bytes_steal = (from_free && steal) ? steal->length : 0; in ivtv_queue_move()
132 while (steal && bytes_available < needed_bytes) { in ivtv_queue_move()
133 struct ivtv_buffer *buf = list_entry(steal->list.prev, struct ivtv_buffer, list); in ivtv_queue_move()
136 /* move buffers from the tail of the 'steal' queue to the tail of the in ivtv_queue_move()
141 list_move_tail(steal in ivtv_queue_move()
[all...]
H A Divtv-queue.h62 int ivtv_queue_move(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal,
/kernel/linux/linux-6.6/drivers/media/pci/ivtv/
H A Divtv-queue.c95 If 'steal' != NULL, then buffers may also taken from that queue if
99 also cleared if buffers need to be taken from the 'steal' queue and
104 bytesused value. For the 'steal' queue the total available buffer
110 int ivtv_queue_move(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal, in ivtv_queue_move() argument
126 bytes_steal = (from_free && steal) ? steal->length : 0; in ivtv_queue_move()
132 while (steal && bytes_available < needed_bytes) { in ivtv_queue_move()
133 struct ivtv_buffer *buf = list_entry(steal->list.prev, struct ivtv_buffer, list); in ivtv_queue_move()
136 /* move buffers from the tail of the 'steal' queue to the tail of the in ivtv_queue_move()
141 list_move_tail(steal in ivtv_queue_move()
[all...]
H A Divtv-queue.h63 int ivtv_queue_move(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal,
/kernel/linux/linux-6.6/fs/proc/
H A Dstat.c85 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local
93 irq = softirq = steal = 0; in show_stat()
112 steal += cpustat[CPUTIME_STEAL]; in show_stat()
134 seq_put_decimal_ull(p, " ", nsec_to_clock_t(steal)); in show_stat()
153 steal = cpustat[CPUTIME_STEAL]; in show_stat()
164 seq_put_decimal_ull(p, " ", nsec_to_clock_t(steal)); in show_stat()
/kernel/linux/linux-5.10/kernel/sched/
H A Dcputime.c253 u64 steal; in steal_account_process_time() local
255 steal = paravirt_steal_clock(smp_processor_id()); in steal_account_process_time()
256 steal -= this_rq()->prev_steal_time; in steal_account_process_time()
257 steal = min(steal, maxtime); in steal_account_process_time()
258 account_steal_time(steal); in steal_account_process_time()
259 this_rq()->prev_steal_time += steal; in steal_account_process_time()
261 return steal; in steal_account_process_time()
268 * Account how much elapsed time was spent in steal, irq, or softirq time.
379 * once, including some ticks of steal, ir in irqtime_account_process_tick()
488 u64 cputime, steal; account_process_tick() local
520 u64 cputime, steal; account_idle_ticks() local
[all...]
/kernel/linux/linux-6.6/kernel/sched/
H A Dcputime.c272 u64 steal; in steal_account_process_time() local
274 steal = paravirt_steal_clock(smp_processor_id()); in steal_account_process_time()
275 steal -= this_rq()->prev_steal_time; in steal_account_process_time()
276 steal = min(steal, maxtime); in steal_account_process_time()
277 account_steal_time(steal); in steal_account_process_time()
278 this_rq()->prev_steal_time += steal; in steal_account_process_time()
280 return steal; in steal_account_process_time()
287 * Account how much elapsed time was spent in steal, irq, or softirq time.
398 * once, including some ticks of steal, ir in irqtime_account_process_tick()
504 u64 cputime, steal; account_process_tick() local
536 u64 cputime, steal; account_idle_ticks() local
[all...]
/kernel/linux/linux-5.10/fs/proc/
H A Dstat.c110 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local
118 irq = softirq = steal = 0; in show_stat()
135 steal += cpustat[CPUTIME_STEAL]; in show_stat()
157 seq_put_decimal_ull(p, " ", nsec_to_clock_t(steal)); in show_stat()
176 steal = cpustat[CPUTIME_STEAL]; in show_stat()
187 seq_put_decimal_ull(p, " ", nsec_to_clock_t(steal)); in show_stat()
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dparavirt.c41 u64 steal; in pv_steal_clock() local
50 steal = src->steal; in pv_steal_clock()
54 return steal; in pv_steal_clock()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
H A Dvmware.c129 static bool steal_acc __initdata = true; /* steal time accounting */
143 early_param("no-steal-acc", parse_no_stealacc);
207 * vmware_steal_clock() - read the per-cpu steal clock
208 * @cpu: the cpu number whose steal clock we want to read
210 * The function reads the steal clock if we are on a 64-bit system, otherwise
215 * The steal clock reading in ns.
219 struct vmware_steal_time *steal = &per_cpu(vmw_steal_time, cpu); in vmware_steal_clock() local
223 clock = READ_ONCE(steal->clock); in vmware_steal_clock()
228 initial_high = READ_ONCE(steal->clock_high); in vmware_steal_clock()
231 low = READ_ONCE(steal in vmware_steal_clock()
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/
H A Dvmware.c130 static bool steal_acc __initdata = true; /* steal time accounting */
144 early_param("no-steal-acc", parse_no_stealacc);
208 * vmware_steal_clock() - read the per-cpu steal clock
209 * @cpu: the cpu number whose steal clock we want to read
211 * The function reads the steal clock if we are on a 64-bit system, otherwise
216 * The steal clock reading in ns.
220 struct vmware_steal_time *steal = &per_cpu(vmw_steal_time, cpu); in vmware_steal_clock() local
224 clock = READ_ONCE(steal->clock); in vmware_steal_clock()
229 initial_high = READ_ONCE(steal->clock_high); in vmware_steal_clock()
232 low = READ_ONCE(steal in vmware_steal_clock()
[all...]
/kernel/linux/linux-5.10/kernel/bpf/
H A Dbpf_lru_list.c442 int steal, first_steal; in bpf_common_lru_pop_free() local
473 steal = first_steal; in bpf_common_lru_pop_free()
475 steal_loc_l = per_cpu_ptr(clru->local_list, steal); in bpf_common_lru_pop_free()
485 steal = get_next_cpu(steal); in bpf_common_lru_pop_free()
486 } while (!node && steal != first_steal); in bpf_common_lru_pop_free()
488 loc_l->next_steal = steal; in bpf_common_lru_pop_free()
/kernel/linux/linux-6.6/kernel/bpf/
H A Dbpf_lru_list.c442 int steal, first_steal; in bpf_common_lru_pop_free() local
473 steal = first_steal; in bpf_common_lru_pop_free()
475 steal_loc_l = per_cpu_ptr(clru->local_list, steal); in bpf_common_lru_pop_free()
485 steal = get_next_cpu(steal); in bpf_common_lru_pop_free()
486 } while (!node && steal != first_steal); in bpf_common_lru_pop_free()
488 loc_l->next_steal = steal; in bpf_common_lru_pop_free()
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
H A Dradeon_object.c547 int steal; in radeon_bo_get_surface_reg() local
560 steal = -1; in radeon_bo_get_surface_reg()
569 steal = i; in radeon_bo_get_surface_reg()
574 if (steal == -1) in radeon_bo_get_surface_reg()
577 reg = &rdev->surface_regs[steal]; in radeon_bo_get_surface_reg()
580 DRM_DEBUG("stealing surface reg %d from %p\n", steal, old_object); in radeon_bo_get_surface_reg()
583 i = steal; in radeon_bo_get_surface_reg()
/kernel/linux/linux-5.10/arch/s390/kernel/
H A Dvtime.c211 u64 steal, avg_steal; in vtime_flush() local
216 steal = S390_lowcore.steal_timer; in vtime_flush()
218 if ((s64) steal > 0) { in vtime_flush()
220 account_steal_time(cputime_to_nsecs(steal)); in vtime_flush()
221 avg_steal += steal; in vtime_flush()
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dvtime.c207 u64 steal, avg_steal; in vtime_flush() local
212 steal = S390_lowcore.steal_timer; in vtime_flush()
214 if ((s64) steal > 0) { in vtime_flush()
216 account_steal_time(cputime_to_nsecs(steal)); in vtime_flush()
217 avg_steal += steal; in vtime_flush()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
H A Dradeon_object.c610 int steal; in radeon_bo_get_surface_reg() local
624 steal = -1; in radeon_bo_get_surface_reg()
633 steal = i; in radeon_bo_get_surface_reg()
638 if (steal == -1) in radeon_bo_get_surface_reg()
641 reg = &rdev->surface_regs[steal]; in radeon_bo_get_surface_reg()
644 DRM_DEBUG("stealing surface reg %d from %p\n", steal, old_object); in radeon_bo_get_surface_reg()
647 i = steal; in radeon_bo_get_surface_reg()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
H A Dsteal_time.c3 * steal/stolen time test
51 WRITE_ONCE(guest_stolen_time[cpu], st->steal); in guest_code()
58 WRITE_ONCE(guest_stolen_time[cpu], st->steal); in guest_code()
69 print_skip("steal-time not supported"); in steal_time_init()
95 pr_info(" steal: %lld\n", st->steal); in steal_time_dump()
182 print_skip("steal-time not supported"); in steal_time_init()
294 /* Create a one VCPU guest and an identity mapped memslot for the steal time structure */ in main()
309 /* First VCPU run initializes steal-time */ in main()
321 /* Steal time from the VCPU. The steal tim in main()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/
H A Dsteal_time.c3 * steal/stolen time test
49 WRITE_ONCE(guest_stolen_time[cpu], st->steal); in guest_code()
56 WRITE_ONCE(guest_stolen_time[cpu], st->steal); in guest_code()
87 pr_info(" steal: %lld\n", st->steal); in steal_time_dump()
264 /* Create a VM and an identity mapped memslot for the steal time structure */ in main()
278 /* First VCPU run initializes steal-time */ in main()
290 /* Steal time from the VCPU. The steal time thread has the same CPU affinity as the VCPUs. */ in main()
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dkvm.c63 early_param("no-steal-acc", parse_no_stealacc);
428 u64 steal; in kvm_steal_clock() local
436 steal = src->steal; in kvm_steal_clock()
440 return steal; in kvm_steal_clock()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dkvm.c66 early_param("no-steal-acc", parse_no_stealacc);
405 u64 steal; in kvm_steal_clock() local
413 steal = src->steal; in kvm_steal_clock()
417 return steal; in kvm_steal_clock()
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dparavirt.h19 __u64 steal; member
/kernel/linux/linux-5.10/arch/x86/include/uapi/asm/
H A Dkvm_para.h59 __u64 steal; member

Completed in 16 milliseconds

12