/openbmc/openbmc/poky/bitbake/lib/progressbar/ |
H A D | widgets.py | 117 elapsed = pbar.seconds_elapsed 118 eta = elapsed * pbar.maxval / pbar.currval - elapsed 137 def _update_samples(self, currval, elapsed): argument 138 sample = (currval, elapsed) 145 def _eta(self, maxval, currval, elapsed): argument 146 return elapsed * maxval / float(currval) - elapsed 155 elapsed = pbar.seconds_elapsed 156 currval1, elapsed1 = self._update_samples(pbar.currval, elapsed) 157 eta = self._eta(pbar.maxval, pbar.currval, elapsed) 161 elapsed - elapsed1)
|
/openbmc/qemu/util/ |
H A D | timed-average.c | 63 int64_t elapsed = (now - w->expiration) % period; in update_expiration() local 65 int64_t remaining = period - elapsed; in update_expiration() 128 static void check_expirations(TimedAverage *ta, uint64_t *elapsed) in check_expirations() argument 152 if (elapsed) { in check_expirations() 154 *elapsed = ta->period - remaining; in check_expirations() 227 uint64_t timed_average_sum(TimedAverage *ta, uint64_t *elapsed) in timed_average_sum() argument 230 check_expirations(ta, elapsed); in timed_average_sum()
|
/openbmc/pldm/platform-mc/test/ |
H A D | utils_test.hpp | 12 uint64_t elapsed = 0; in runEventLoopForSeconds() local 16 if (!sd_event_run(event.get(), usec - elapsed)) in runEventLoopForSeconds() 21 elapsed = t1 - t0; in runEventLoopForSeconds() 22 } while (elapsed < usec); in runEventLoopForSeconds()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | testrunner.py | 88 def update(self, test: str, elapsed: float) -> None: 90 d.setdefault(self.env.imgproto, {})[self.env.imgfmt] = elapsed 105 elapsed: Optional[float] = None, diff: Sequence[str] = (), 109 self.elapsed = elapsed 293 elapsed = round(time.time() - t0, 1) 296 return TestResult(status='fail', elapsed=elapsed, 316 return TestResult(status='fail', elapsed=elapsed, 321 return TestResult(status='pass', elapsed=elapsed, 360 lasttime=last_el, thistime=res.elapsed, 416 assert res.elapsed is not None [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | tcp_timer.c | 29 u32 elapsed, start_ts, user_timeout; in tcp_clamp_rto_to_user_timeout() local 36 elapsed = tcp_time_stamp(tcp_sk(sk)) - start_ts; in tcp_clamp_rto_to_user_timeout() 37 remaining = user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout() 48 s32 elapsed; in tcp_clamp_probe0_to_user_timeout() local 54 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout() 55 if (unlikely(elapsed < 0)) in tcp_clamp_probe0_to_user_timeout() 56 elapsed = 0; in tcp_clamp_probe0_to_user_timeout() 57 remaining = msecs_to_jiffies(user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout() 745 u32 elapsed; in tcp_keepalive_timer() local 778 elapsed = keepalive_time_when(tp); in tcp_keepalive_timer() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/fans/phosphor-pid-control/ |
H A D | monitor-pldm-sensor | 5 elapsed=0 # Elapsed time counter 52 while [ $elapsed -lt $timeout ]; do 95 elapsed=$((elapsed + interval))
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_sleep.py | 31 elapsed = tend - tstart 32 assert elapsed >= (sleep_time - 0.01) 35 assert elapsed < (sleep_time + 0.25)
|
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/ |
H A D | metricblob.proto | 28 float firmware_boot_time_sec = 3; // Time (seconds) elapsed in firmware process 29 float loader_boot_time_sec = 4; // Time (seconds) elapsed in loader process 30 float kernel_boot_time_sec = 5; // Time (seconds) elapsed in kernel process 31 float initrd_boot_time_sec = 6; // Time (seconds) elapsed in initrd process 32 float userspace_boot_time_sec = 7; // Time (seconds) elapsed in userspace process
|
/openbmc/linux/tools/testing/selftests/timens/ |
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() 66 clockid, elapsed); in run_test()
|
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() 61 clockid, elapsed); in run_test()
|
/openbmc/linux/arch/s390/kernel/ |
H A D | vtime.c | 56 static inline int virt_timer_forward(u64 elapsed) in virt_timer_forward() argument 62 elapsed = atomic64_add_return(elapsed, &virt_timer_elapsed); in virt_timer_forward() 63 return elapsed >= atomic64_read(&virt_timer_current); in virt_timer_forward() 289 unsigned long elapsed; in virt_timer_expire() local 294 elapsed = atomic64_read(&virt_timer_elapsed); in virt_timer_expire() 296 if (timer->expires < elapsed) in virt_timer_expire() 300 timer->expires -= elapsed; in virt_timer_expire() 307 atomic64_sub(elapsed, &virt_timer_elapsed); in virt_timer_expire()
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_gpu_trace.h | 57 TP_PROTO(struct msm_gem_submit *submit, u64 elapsed, u64 clock, 59 TP_ARGS(submit, elapsed, clock, start, end), 65 __field(u64, elapsed) 75 __entry->elapsed = elapsed; 82 __entry->elapsed, __entry->clock,
|
/openbmc/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()
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_request.c | 2019 u32 elapsed[TF_COUNT], cycles; in measure_semaphore_response() local 2042 cs = intel_ring_begin(rq, 4 + 12 * ARRAY_SIZE(elapsed)); in measure_semaphore_response() 2050 for (i = 1; i <= ARRAY_SIZE(elapsed); i++) { in measure_semaphore_response() 2064 for (i = 1; i <= ARRAY_SIZE(elapsed); i++) { in measure_semaphore_response() 2075 elapsed[i - 1] = sema[i] - cycles; in measure_semaphore_response() 2078 cycles = trifilter(elapsed); in measure_semaphore_response() 2094 u32 elapsed[TF_COUNT], cycles; in measure_idle_dispatch() local 2110 for (i = 0; i < ARRAY_SIZE(elapsed); i++) { in measure_idle_dispatch() 2136 elapsed[i] = ENGINE_READ_FW(ce->engine, RING_TIMESTAMP); in measure_idle_dispatch() 2146 for (i = 0; i < ARRAY_SIZE(elapsed); i++) in measure_idle_dispatch() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/hashserv/ |
H A D | server.py | 75 self.elapsed = 0 86 def add(self, elapsed): argument 88 self.elapsed += elapsed 92 self.stats.add(self.elapsed) 94 self.elapsed = 0 109 def add(self, elapsed): argument 112 self.m = elapsed 116 self.m = last_m + (elapsed - last_m) / self.num 117 self.s = self.s + (elapsed - last_m) * (elapsed - self.m) 119 self.total_time += elapsed [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/ |
H A D | i2c-mxv7.c | 18 ulong elapsed, start_time; in force_idle_bus() local 49 elapsed = get_timer(start_time); in force_idle_bus() 50 if (elapsed > (CONFIG_SYS_HZ / 5)) { /* .2 seconds */ in force_idle_bus()
|
/openbmc/phosphor-time-manager/ |
H A D | bmc_epoch.cpp | 84 uint64_t BmcEpoch::elapsed() const in elapsed() function in phosphor::time::BmcEpoch 89 uint64_t BmcEpoch::elapsed(uint64_t value) in elapsed() function in phosphor::time::BmcEpoch 100 server::EpochTime::elapsed(value); in elapsed()
|
H A D | bmc_epoch.hpp | 48 uint64_t elapsed() const override; 56 uint64_t elapsed(uint64_t value) override;
|
/openbmc/linux/kernel/ |
H A D | acct.c | 462 u64 elapsed, run_time; in fill_ac() local 491 elapsed = nsec_to_AHZ(run_time); in fill_ac() 493 ac->ac_etime = encode_float(elapsed); in fill_ac() 495 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac() 496 (unsigned long) elapsed : (unsigned long) -1l); in fill_ac() 501 comp2_t etime = encode_comp2_t(elapsed); in fill_ac() 507 do_div(elapsed, AHZ); in fill_ac() 508 btime = ktime_get_real_seconds() - elapsed; in fill_ac()
|
/openbmc/telemetry/tests/src/ |
H A D | test_detached_timer.cpp | 28 auto elapsed = DbusEnvironment::measureTime([] { in TEST_F() local 32 EXPECT_THAT(elapsed, AllOf(Ge(100ms), Lt(200ms))); in TEST_F()
|
H A D | dbus_environment.hpp | 49 auto elapsed = Milliseconds(0); in waitForFutures() local 54 while (future.valid() && elapsed < timeout) in waitForFutures() 64 elapsed += precission; in waitForFutures() 69 if (elapsed >= timeout) in waitForFutures()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | utils.c | 756 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed) in iwl_mvm_tcm_load_percentage() argument 758 if (!elapsed) in iwl_mvm_tcm_load_percentage() 761 return (100 * airtime / elapsed) / USEC_PER_MSEC; in iwl_mvm_tcm_load_percentage() 765 iwl_mvm_tcm_load(struct iwl_mvm *mvm, u32 airtime, unsigned long elapsed) in iwl_mvm_tcm_load() argument 767 u8 load = iwl_mvm_tcm_load_percentage(airtime, elapsed); in iwl_mvm_tcm_load() 870 unsigned int elapsed, in iwl_mvm_check_uapsd_agg_expected_tpt() argument 886 do_div(tpt, elapsed); in iwl_mvm_check_uapsd_agg_expected_tpt() 900 do_div(tpt, elapsed * 100); in iwl_mvm_check_uapsd_agg_expected_tpt() 928 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); in iwl_mvm_calc_tcm_stats() local 944 mvm->tcm.result.elapsed = elapsed; in iwl_mvm_calc_tcm_stats() [all …]
|
/openbmc/qemu/hw/timer/ |
H A D | renesas_tmr.c | 127 int elapsed, ovf = 0; in read_tcnt() local 138 elapsed = elapsed_time(tmr, 1, delta); in read_tcnt() 139 if (elapsed >= 0x100) { in read_tcnt() 140 ovf = elapsed >> 8; in read_tcnt() 142 tcnt[1] = tmr->tcnt[1] + (elapsed & 0xff); in read_tcnt() 154 elapsed = elapsed_time(tmr, 0, delta); in read_tcnt() 155 tcnt[0] = tmr->tcnt[0] + elapsed; in read_tcnt()
|