| /linux/net/ipv4/ |
| H A D | tcp_timer.c | 32 u32 elapsed, user_timeout; in tcp_clamp_rto_to_user_timeout() local 39 elapsed = tcp_time_stamp_ts(tp) - tp->retrans_stamp; in tcp_clamp_rto_to_user_timeout() 41 elapsed /= USEC_PER_MSEC; in tcp_clamp_rto_to_user_timeout() 43 remaining = user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout() 55 s32 elapsed; in tcp_clamp_probe0_to_user_timeout() local 61 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout() 62 if (unlikely(elapsed < 0)) in tcp_clamp_probe0_to_user_timeout() 63 elapsed = 0; in tcp_clamp_probe0_to_user_timeout() 64 remaining = msecs_to_jiffies(user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout() 785 u32 elapsed; in tcp_keepalive_timer() local [all...] |
| /linux/arch/s390/kernel/ |
| H A D | vtime.c | 50 static inline int virt_timer_forward(u64 elapsed) in virt_timer_forward() 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() 273 unsigned long elapsed; in virt_timer_expire() 278 elapsed = atomic64_read(&virt_timer_elapsed); in virt_timer_expire() 280 if (timer->expires < elapsed) in virt_timer_expire() 284 timer->expires -= elapsed; in virt_timer_expire() 291 atomic64_sub(elapsed, &virt_timer_elapsed); in virt_timer_expire() 49 virt_timer_forward(u64 elapsed) virt_timer_forward() argument 265 unsigned long elapsed; virt_timer_expire() local
|
| /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/tools/testing/selftests/ublk/ |
| H A D | test_part_02.sh | 16 local elapsed 43 elapsed=$((SECONDS - start_time)) 52 echo "PASS: Device transitioned to ${expected_state} in ${elapsed}s without hanging"
|
| /linux/tools/lib/python/abi/ |
| H A D | system_symbols.py | 366 elapsed = str(datetime.now() - start).split(".", maxsplit=1)[0] 368 elapsed += f" ({total - len(f_list)}/{total} jobs completed). " 369 if elapsed != old_elapsed: 370 print(elapsed + "\r", end="", flush=True, 372 old_elapsed = elapsed 374 elapsed = str(datetime.now() - start).split(".", maxsplit=1)[0] 375 print(elapsed, file=sys.stderr)
|
| /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/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_request.c | 2018 u32 elapsed[TF_COUNT], cycles; in measure_semaphore_response() local 2041 cs = intel_ring_begin(rq, 4 + 12 * ARRAY_SIZE(elapsed)); in measure_semaphore_response() 2049 for (i = 1; i <= ARRAY_SIZE(elapsed); i++) { in measure_semaphore_response() 2063 for (i = 1; i <= ARRAY_SIZE(elapsed); i++) { in measure_semaphore_response() 2074 elapsed[i - 1] = sema[i] - cycles; in measure_semaphore_response() 2077 cycles = trifilter(elapsed); in measure_semaphore_response() 2093 u32 elapsed[TF_COUNT], cycles; in measure_idle_dispatch() local 2109 for (i = 0; i < ARRAY_SIZE(elapsed); i++) { in measure_idle_dispatch() 2135 elapsed[i] = ENGINE_READ_FW(ce->engine, RING_TIMESTAMP); in measure_idle_dispatch() 2145 for (i = 0; i < ARRAY_SIZE(elapsed); i++) in measure_idle_dispatch() [all …]
|
| /linux/tools/testing/selftests/rseq/ |
| H A D | slice_test.c | 94 static inline bool elapsed(struct timespec *start, struct timespec *now, in elapsed() function 114 } while (!elapsed(&ts_start, &ts_now, p->noise_nsecs)); in noise_thread() 180 } while (!elapsed(&ts_cs, &ts_now, variant->slice_nsecs)); in TEST_F() 211 } while (!elapsed(&ts_start, &ts_now, variant->total_nsecs)); in TEST_F()
|
| /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/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()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | utils.c | 814 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed) in iwl_mvm_tcm_iter() 816 if (!elapsed) in iwl_mvm_tcm_iter() 819 return (100 * airtime / elapsed) / USEC_PER_MSEC; in iwl_mvm_tcm_iter() 823 iwl_mvm_tcm_load(struct iwl_mvm *mvm, u32 airtime, unsigned long elapsed) in iwl_mvm_tcm_iter() 825 u8 load = iwl_mvm_tcm_load_percentage(airtime, elapsed); in iwl_mvm_tcm_iter() 926 unsigned int elapsed, in iwl_mvm_check_uapsd_agg_expected_tpt() 942 do_div(tpt, elapsed); in iwl_mvm_check_uapsd_agg_expected_tpt() 956 do_div(tpt, elapsed * 100); in iwl_mvm_calc_tcm_stats() 984 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); in iwl_mvm_calc_tcm_stats() 1000 mvm->tcm.result.elapsed in iwl_mvm_calc_tcm_stats() 790 iwl_mvm_tcm_load_percentage(u32 airtime,u32 elapsed) iwl_mvm_tcm_load_percentage() argument 799 iwl_mvm_tcm_load(struct iwl_mvm * mvm,u32 airtime,unsigned long elapsed) iwl_mvm_tcm_load() argument 902 iwl_mvm_check_uapsd_agg_expected_tpt(struct iwl_mvm * mvm,unsigned int elapsed,int mac) iwl_mvm_check_uapsd_agg_expected_tpt() argument 960 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); iwl_mvm_calc_tcm_stats() local [all...] |
| /linux/tools/perf/scripts/python/ |
| H A D | futex-contention.py | 43 elapsed = nsecs(s, ns) - thread_blocktime[tid] 44 add_stats(lock_waits, (tid, thread_thislock[tid]), elapsed)
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gpu.c | 693 u64 elapsed, clock = 0, cycles; in update_hw_cntrs() 697 /* Convert 19.2Mhz alwayson ticks to nanoseconds for elapsed time */ in update_hw_cntrs() 698 elapsed = (stats->alwayson_end - stats->alwayson_start) * 10000; in update_hw_cntrs() 699 do_div(elapsed, 192); in update_hw_cntrs() 704 if (elapsed) { in update_hw_cntrs() 706 do_div(clock, elapsed); in update_hw_cntrs() 709 submit->queue->ctx->elapsed_ns += elapsed; in update_sw_cntrs() 712 trace_msm_gpu_submit_retired(submit, elapsed, clock, in update_sw_cntrs() local 791 u64 elapsed, clock = 0, cycles; retire_submit() local
|
| /linux/tools/testing/selftests/mm/ |
| H A D | hugetlb_reparenting_test.sh | 79 local elapsed 93 elapsed=$((now - start_time)) 95 if [[ $elapsed -ge $timeout ]]; then
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_ring.c | 258 uint64_t elapsed; in radeon_ring_test_lockup() local 266 elapsed = jiffies_to_msecs(jiffies_64 - last); in radeon_ring_test_lockup() 267 if (radeon_lockup_timeout && elapsed >= radeon_lockup_timeout) { in radeon_ring_test_lockup() 269 ring->idx, elapsed); in radeon_ring_test_lockup()
|
| /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/mm/ |
| H A D | page-writeback.c | 1227 unsigned long elapsed, in wb_update_write_bandwidth() argument 1236 * bw = written * HZ / elapsed in wb_update_write_bandwidth() 1238 * bw * elapsed + write_bandwidth * (period - elapsed) in wb_update_write_bandwidth() 1247 if (unlikely(elapsed > period)) { in wb_update_write_bandwidth() 1248 bw = div64_ul(bw, elapsed); in wb_update_write_bandwidth() 1252 bw += (u64)wb->write_bandwidth * (period - elapsed); in wb_update_write_bandwidth() 1332 unsigned long elapsed) in wb_update_dirty_ratelimit() argument 1352 dirty_rate = (dirtied - wb->dirtied_stamp) * HZ / elapsed; in wb_update_dirty_ratelimit() 1487 unsigned long elapsed; in __wb_update_bandwidth() local 1537 unsigned long elapsed = now - READ_ONCE(wb->bw_time_stamp); wb_bandwidth_estimate_start() local [all...] |
| /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() local 311 elapsed = dpcm->elapsed; in dummy_systimer_callback() 312 dpcm->elapsed = 0; in dummy_systimer_callback() 314 if (elapsed) in dummy_systimer_callback()
|
| /linux/drivers/rtc/ |
| H A D | rtc-snvs.c | 112 u32 elapsed; in rtc_write_sync_lp() local 125 elapsed = count2 - count1; /* wrap around _is_ handled! */ in rtc_write_sync_lp() 126 } while (elapsed < 3 && --timeout); in rtc_write_sync_lp()
|
| /linux/rust/kernel/io/ |
| H A D | poll.rs | 97 if start.elapsed() > timeout_delta { in read_poll_timeout()
|
| /linux/Documentation/trace/ |
| H A D | tracepoint-analysis.rst | 107 10.002577764 seconds time elapsed 135 0.973913387 seconds time elapsed 167 0.982653002 seconds time elapsed ( +- 1.448% ) 186 1.002251757 seconds time elapsed ( +- 0.005% )
|
| /linux/net/sctp/ |
| H A D | sm_sideeffect.c | 373 u32 elapsed, timeout; in sctp_generate_heartbeat_event() local 387 elapsed = jiffies - transport->last_time_sent; in sctp_generate_heartbeat_event() 389 if (elapsed < timeout) { in sctp_generate_heartbeat_event() 390 elapsed = timeout - elapsed; in sctp_generate_heartbeat_event() 391 if (!mod_timer(&transport->hb_timer, jiffies + elapsed)) in sctp_generate_heartbeat_event()
|
| /linux/drivers/md/ |
| H A D | dm-flakey.c | 496 unsigned int elapsed; in flakey_map() local 505 elapsed = (jiffies - fc->start_time) / HZ; in flakey_map() 506 if (elapsed % (fc->up_interval + fc->down_interval) >= fc->up_interval) { in flakey_map()
|
| /linux/arch/x86/kvm/ |
| H A D | i8254.c | 84 s64 elapsed; in __kpit_elapsed() local 101 elapsed = ps->period - ktime_to_ns(remaining); in __kpit_elapsed() 103 return elapsed; in __kpit_elapsed()
|