/linux/tools/testing/selftests/timens/ |
H A D | timer.c | 21 long long elapsed; in run_test() local 58 elapsed = new_value.it_value.tv_sec; in run_test() 59 if (llabs(elapsed - 3600) > 60) { in run_test() 60 ksft_test_result_fail("clockid: %d elapsed: %lld\n", in run_test() 61 clockid, elapsed); in run_test()
|
H A D | timerfd.c | 28 long long elapsed; in run_test() local 63 elapsed = new_value.it_value.tv_sec; in run_test() 64 if (llabs(elapsed - 3600) > 60) { in run_test() 65 ksft_test_result_fail("clockid: %d elapsed: %lld\n", in run_test() 66 clockid, elapsed); in run_test()
|
/linux/net/ipv4/ |
H A D | tcp_timer.c | 31 u32 elapsed, user_timeout; in tcp_clamp_rto_to_user_timeout() local 38 elapsed = tcp_time_stamp_ts(tp) - tp->retrans_stamp; in tcp_clamp_rto_to_user_timeout() 40 elapsed /= USEC_PER_MSEC; in tcp_clamp_rto_to_user_timeout() 42 remaining = user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout() 53 s32 elapsed; in tcp_clamp_probe0_to_user_timeout() local 59 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout() 60 if (unlikely(elapsed < 0)) in tcp_clamp_probe0_to_user_timeout() 61 elapsed = 0; in tcp_clamp_probe0_to_user_timeout() 62 remaining = msecs_to_jiffies(user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout() 784 u32 elapsed; in tcp_keepalive_timer() local [all...] |
/linux/include/uapi/linux/ |
H A D | acct.h | 56 comp_t ac_etime; /* Elapsed Time */ 69 __u8 ac_etime_hi; /* Elapsed Time MSB */ 70 __u16 ac_etime_lo; /* Elapsed Time LSB */ 88 __u32 ac_etime; /* Elapsed Time */ 90 float ac_etime; /* Elapsed Time */
|
/linux/arch/s390/kernel/ |
H A D | vtime.c | 49 static inline int virt_timer_forward(u64 elapsed) in virt_timer_forward() argument 55 elapsed = atomic64_add_return(elapsed, &virt_timer_elapsed); in virt_timer_forward() 56 return elapsed >= atomic64_read(&virt_timer_current); in virt_timer_forward() 287 unsigned long elapsed; in virt_timer_expire() local 292 elapsed = atomic64_read(&virt_timer_elapsed); in virt_timer_expire() 294 if (timer->expires < elapsed) in virt_timer_expire() 298 timer->expires -= elapsed; in virt_timer_expire() 305 atomic64_sub(elapsed, &virt_timer_elapsed); in virt_timer_expire()
|
/linux/tools/testing/selftests/ublk/ |
H A D | test_generic_06.sh | 26 ELAPSED=$(($ENDTIME - $STARTTIME)) 35 if [ $ELAPSED -ge 5 ]; then 36 echo "dd took $ELAPSED seconds to exit (>= 5s tolerance)!"
|
/linux/drivers/isdn/mISDN/ |
H A D | clock.c | 17 * A clock source calls mISDN_clock_update with given samples elapsed, if 159 /* calc elapsed time by system clock */ in mISDN_clock_update() 167 /* add elapsed time to counter and set new timestamp */ in mISDN_clock_update() 188 /* calc elapsed time by system clock */ in mISDN_clock_get() 192 /* add elapsed time to counter */ in mISDN_clock_get()
|
/linux/drivers/misc/ |
H A D | ds1682.c | 3 * Dallas Semiconductor DS1682 Elapsed Time Recorder device driver 11 * The DS1682 elapsed timer recorder is a simple device that implements 12 * one elapsed time counter, one event counter, an alarm signal and 10 17 * elapsed_time (u32): Total elapsed event time in ms resolution 18 * alarm_time (u32): When elapsed time exceeds the value in alarm_time, 298 MODULE_DESCRIPTION("DS1682 Elapsed Time Indicator driver");
|
/linux/tools/perf/scripts/python/ |
H A D | futex-contention.py | 25 lock_waits = {} # long-lived stats on (tid,lock) blockage elapsed time 43 elapsed = nsecs(s, ns) - thread_blocktime[tid] 44 add_stats(lock_waits, (tid, thread_thislock[tid]), elapsed)
|
/linux/include/linux/ |
H A D | wait.h | 412 * 0 if the @condition evaluated to %false after the @timeout elapsed, 413 * 1 if the @condition evaluated to %true after the @timeout elapsed, 415 * to %true before the @timeout elapsed. 529 * 0 if the @condition evaluated to %false after the @timeout elapsed, 530 * 1 if the @condition evaluated to %true after the @timeout elapsed, 532 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was 584 * elapsed. 610 * interrupted by a signal, or -ETIME if the timeout elapsed. 725 * 0 if the @condition evaluated to %false after the @timeout elapsed, 726 * 1 if the @condition evaluated to %true after the @timeout elapsed, [all …]
|
H A D | swait.h | 273 * 0 if the @condition evaluated to %false after the @timeout elapsed, 274 * 1 if the @condition evaluated to %true after the @timeout elapsed, 276 * to %true before the @timeout elapsed.
|
/linux/drivers/clocksource/ |
H A D | timer-atmel-pit.c | 77 u32 elapsed; in read_pit_clk() local 81 elapsed = data->cnt; in read_pit_clk() 85 elapsed += PIT_PICNT(t) * data->cycle; in read_pit_clk() 86 elapsed += PIT_CPIV(t); in read_pit_clk() 87 return elapsed; in read_pit_clk()
|
/linux/kernel/power/ |
H A D | process.c | 36 ktime_t start, end, elapsed; in try_to_freeze_tasks() local 85 elapsed = ktime_sub(end, start); in try_to_freeze_tasks() 86 elapsed_msecs = ktime_to_ms(elapsed); in try_to_freeze_tasks() 107 pr_info("Freezing %s completed (elapsed %d.%03d seconds)\n", in try_to_freeze_tasks()
|
/linux/drivers/gpu/drm/msm/ |
H A D | msm_gpu.c | 700 uint32_t elapsed; in update_sw_cntrs() local 708 elapsed = ktime_to_us(ktime_sub(time, gpu->last_sample.time)); in update_sw_cntrs() 710 gpu->totaltime += elapsed; in update_sw_cntrs() 712 gpu->activetime += elapsed; in update_sw_cntrs() 779 u64 elapsed, clock = 0, cycles; in retire_submit() local 783 /* Convert 19.2Mhz alwayson ticks to nanoseconds for elapsed time */ in retire_submit() 784 elapsed = (stats->alwayson_end - stats->alwayson_start) * 10000; in retire_submit() 785 do_div(elapsed, 192); in retire_submit() 790 if (elapsed) { in retire_submit() 792 do_div(clock, elapsed); in retire_submit() [all …]
|
/linux/kernel/ |
H A D | acct.c | 437 u64 elapsed, run_time; in fill_ac() local 466 elapsed = nsec_to_AHZ(run_time); in fill_ac() 468 ac->ac_etime = encode_float(elapsed); in fill_ac() 470 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac() 471 (unsigned long) elapsed : (unsigned long) -1l); in fill_ac() 476 comp2_t etime = encode_comp2_t(elapsed); in fill_ac() 482 do_div(elapsed, AHZ); in fill_ac() 483 btime = ktime_get_real_seconds() - elapsed; in fill_ac()
|
/linux/tools/testing/selftests/syscall_user_dispatch/ |
H A D | sud_benchmark.c | 82 double elapsed = 0; in calibrate_set() local 86 while (elapsed < 1) { in calibrate_set() 87 elapsed += one_sysinfo_step(); in calibrate_set()
|
/linux/tools/perf/Documentation/ |
H A D | examples.txt | 42 0.613972165 seconds time elapsed 63 0.643954516 seconds time elapsed ( +- 2.363% ) 171 10.000591410 seconds time elapsed 187 1.058135029 seconds time elapsed ( +- 3.089% )
|
/linux/sound/pci/pcxhr/ |
H A D | pcxhr.h | 132 …u_int64_t timer_abs_periods; /* timer: samples elapsed since TRIGGER_START (multiple of period_siz… 133 …u_int32_t timer_period_frag; /* timer: samples elapsed since last call to snd_pcm_period_elapsed (… 134 u_int32_t timer_buf_periods; /* nb of periods in the buffer that have already elapsed */
|
/linux/tools/testing/selftests/mm/ |
H A D | hugetlb_reparenting_test.sh | 71 local elapsed 85 elapsed=$((now - start_time)) 87 if [[ $elapsed -ge $timeout ]]; then
|
/linux/include/linux/mtd/ |
H A D | xip.h | 50 * return in usecs the elapsed timebetween now and the reference x as 54 * returned value is <= the real elapsed time.
|
/linux/rust/kernel/ |
H A D | time.rs | 18 //! By calling the [`Instant::elapsed()`] method, a [`Delta`] object representing 19 //! the elapsed time can be created. The [`Delta`] object can also be created 194 /// Return the amount of time elapsed since the [`Instant`]. 196 pub fn elapsed(&self) -> Delta { in elapsed() 195 pub fn elapsed(&self) -> Delta { elapsed() method
|
/linux/drivers/net/fddi/skfp/ |
H A D | hwt.c | 147 * Stop hardware timer and read time elapsed since last start. 153 * The elapsed time since last start in units of 16us. 210 * This function returnes after the amount of time is elapsed
|
/linux/tools/perf/tests/shell/ |
H A D | stat+std_output.sh | 58 # Ignore "seconds time elapsed" and break 59 [[ "$line" == *"time elapsed"* ]] && break
|
/linux/drivers/w1/masters/ |
H A D | omap_hdq.c | 160 dev_dbg(hdq_data->dev, "TX wait elapsed\n"); in hdq_write_byte() 260 dev_dbg(hdq_data->dev, "break wait elapsed\n"); in omap_hdq_break() 393 dev_dbg(hdq_data->dev, "RX wait elapsed\n"); in omap_w1_triplet() 409 dev_dbg(hdq_data->dev, "RX wait elapsed\n"); in omap_w1_triplet() 438 dev_dbg(hdq_data->dev, "TX wait elapsed\n"); in omap_w1_triplet()
|
/linux/sound/drivers/ |
H A D | dummy.c | 240 int elapsed; member 263 dpcm->elapsed++; in dummy_systimer_update() 298 dpcm->elapsed = 0; in dummy_systimer_prepare() 306 int elapsed = 0; in dummy_systimer_callback() 311 elapsed = dpcm->elapsed; in dummy_systimer_callback() 312 dpcm->elapsed = 0; in dummy_systimer_callback() 314 if (elapsed) in dummy_systimer_callback() 307 int elapsed = 0; dummy_systimer_callback() local
|