/openbmc/qemu/util/ |
H A D | timed-average.c | 62 /* time elapsed since the last theoretical expiration */ in update_expiration() 63 int64_t elapsed = (now - w->expiration) % period; in update_expiration() local 65 int64_t remaining = period - elapsed; in update_expiration() 125 * @elapsed: if non-NULL, the elapsed time (in ns) within the current 128 static void check_expirations(TimedAverage *ta, uint64_t *elapsed) in check_expirations() argument 151 /* Calculate the elapsed time within the current window */ in check_expirations() 152 if (elapsed) { in check_expirations() 154 *elapsed = ta->period - remaining; in check_expirations() 224 * @elapsed: if non-NULL, the elapsed time (in ns) will be stored here 227 uint64_t timed_average_sum(TimedAverage *ta, uint64_t *elapsed) in timed_average_sum() argument [all …]
|
/openbmc/openbmc/poky/bitbake/lib/progressbar/ |
H A D | widgets.py | 83 """Widget which displays the elapsed seconds.""" 88 def __init__(self, format='Elapsed Time: %s'): 99 """Updates the widget to show the elapsed time.""" 117 elapsed = pbar.seconds_elapsed 118 eta = elapsed * pbar.maxval / pbar.currval - elapsed 126 1) ETA based on the total progress and time elapsed so far 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 [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | testrunner.py | 61 """ Cache for elapsed time for tests, to show it during new test run 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 145 self.last_elapsed = LastElapsedTime('.last-elapsed-cache', env) 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, [all …]
|
/openbmc/phosphor-time-manager/ |
H A D | bmc_epoch.hpp | 44 * @brief Get value of Elapsed property 46 * @return The elapsed microseconds since UTC 48 uint64_t elapsed() const override; 51 * @brief Set value of Elapsed property 54 * @return The updated elapsed microseconds since UTC 56 uint64_t elapsed(uint64_t value) override;
|
H A D | README.md | 42 The user can directly get or set the property `Elapsed` of the objects to get or 50 /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed 62 Elapsed t <value-in-microseconds> 67 https://${BMC_IP}/xyz/openbmc_project/time/bmc/attr/Elapsed
|
/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/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; 80 TP_printk("id=%d pid=%d ring=%d:%d elapsed=%lld ns mhz=%lld start=%lld end=%lld", 82 __entry->elapsed, __entry->clock,
|
/openbmc/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()
|
/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/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 */
|
/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/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-arm/meta-arm-systemready/lib/oeqa/runtime/cases/ |
H A D | arm_systemready_fedora_unattended.py | 13 # Timeout value = elapsed time * 2; where elapsed time was collected 14 # from the elapsed time in the log.do_testimage for each function after
|
H A D | arm_systemready_opensuse_unattended.py | 12 # Timeout value = elapsed time * 2; where elapsed time was collected 13 # from the elapsed time in the log.do_testimage for each function after
|
/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/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, 261 MODULE_DESCRIPTION("DS1682 Elapsed Time Indicator driver");
|
/openbmc/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()
|
/openbmc/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)
|
/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/pldm/platform-mc/test/ |
H A D | sensor_manager_test.cpp | 30 uint64_t elapsed = 0; in runEventLoopForSeconds() local 34 if (!sd_event_run(event.get(), usec - elapsed)) in runEventLoopForSeconds() 39 elapsed = t1 - t0; in runEventLoopForSeconds() 40 } while (elapsed < usec); in runEventLoopForSeconds()
|
/openbmc/telemetry/tests/src/ |
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()
|
H A D | test_detached_timer.cpp | 28 auto elapsed = DbusEnvironment::measureTime( in TEST_F() local 31 EXPECT_THAT(elapsed, AllOf(Ge(100ms), Lt(200ms))); in TEST_F()
|
/openbmc/linux/include/linux/ |
H A D | wait.h | 411 * 0 if the @condition evaluated to %false after the @timeout elapsed, 412 * 1 if the @condition evaluated to %true after the @timeout elapsed, 414 * to %true before the @timeout elapsed. 528 * 0 if the @condition evaluated to %false after the @timeout elapsed, 529 * 1 if the @condition evaluated to %true after the @timeout elapsed, 531 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was 583 * elapsed. 609 * interrupted by a signal, or -ETIME if the timeout elapsed. 724 * 0 if the @condition evaluated to %false after the @timeout elapsed, 725 * 1 if the @condition evaluated to %true after the @timeout elapsed, [all...] |
/openbmc/qemu/include/sysemu/ |
H A D | cpu-timers.h | 86 * return the time elapsed in VM between vm_start and vm_stop. 92 * Returns the monotonic time elapsed in VM, i.e., 99 /* get/set VIRTUAL clock and VM elapsed ticks via the cpus accel interface */
|