Home
last modified time | relevance | path

Searched full:interval (Results 1 – 25 of 568) sorted by relevance

12345678910>>...23

/openbmc/sdeventplus/src/sdeventplus/utility/
H A Dtimer.hpp26 * at specified intervals. If no interval is provided to the timer,
39 * interval or time remaining.
49 * This timer is created enabled by default if passed an interval.
54 * @param[in] interval - Optional amount of time in-between timer
55 * expirations. std::nullopt means the interval
62 std::optional<Duration> interval = std::nullopt,
119 /** @brief Gets interval between timer expirations
120 * The timer may not have a configured interval and is instead
123 * @return The interval as an std::chrono::duration
145 * This does not affect the interval used for subsequent runs.
[all …]
H A Dtimer.cpp16 std::optional<Duration> interval, in Timer() argument
20 Clock<Id>(event).now() + interval.value_or(Duration::zero()), in Timer()
24 *this, std::move(callback), interval); in Timer()
32 setEnabled(interval.has_value()); in Timer()
80 return userdata->interval; in getInterval()
121 setRemaining(userdata->interval.value()); in resetRemaining()
125 void Timer<Id>::setInterval(std::optional<Duration> interval) in setInterval() argument
127 userdata->interval = interval; in setInterval()
137 void Timer<Id>::restart(std::optional<Duration> interval) in restart() argument
141 setInterval(interval); in restart()
[all …]
/openbmc/phosphor-watchdog/test/
H A Dwatchdog.cpp42 wdog->interval(milliseconds(defaultInterval).count()); in WdogTest()
56 // This is the default interval as given in Interface definition
101 EXPECT_EQ(newIntervalMs, wdog->interval(newIntervalMs)); in TEST_F()
104 EXPECT_EQ(newIntervalMs, wdog->interval()); in TEST_F()
125 // Get the configured interval in TEST_F()
206 /** @brief Make sure the Interval can be updated directly.
212 EXPECT_EQ(expireTimeMs, wdog->interval(expireTimeMs)); in TEST_F()
214 // Expect an update in the Interval in TEST_F()
215 EXPECT_EQ(expireTimeMs, wdog->interval()); in TEST_F()
218 /** @brief Make sure the Interval can be updated while the timer is running.
[all …]
/openbmc/qemu/net/
H A Dfilter-buffer.c27 uint32_t interval; member
53 /* Timer rearmed to fire again in s->interval microseconds. */ in filter_buffer_release_timer()
55 qemu_clock_get_us(QEMU_CLOCK_VIRTUAL) + s->interval); in filter_buffer_release_timer()
91 if (s->interval) { in filter_buffer_cleanup()
106 if (s->interval) { in filter_buffer_setup_timer()
109 /* Timer armed to fire in s->interval microseconds. */ in filter_buffer_setup_timer()
111 qemu_clock_get_us(QEMU_CLOCK_VIRTUAL) + s->interval); in filter_buffer_setup_timer()
120 * We may want to accept zero interval when VM FT solutions like MC in filter_buffer_setup()
123 if (!s->interval) { in filter_buffer_setup()
124 error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "interval", in filter_buffer_setup()
[all …]
/openbmc/phosphor-power/power-sequencer/
H A Dmain.cpp35 std::string interVal{}; in main() local
42 app.add_option("-i,--interval", interVal, in main()
43 "Interval in milliseconds:\n" in main()
45 "Runtime monitor: polling interval.\n") in main()
57 auto i = strtoul(interVal.c_str(), nullptr, 10); in main()
60 std::cerr << "Invalid interval value\n"; in main()
64 std::chrono::milliseconds interval{i}; in main() local
79 interval); in main()
86 event, interval); in main()
/openbmc/phosphor-watchdog/src/
H A Dwatchdog.hpp53 uint64_t interval; member
65 * @param[in] defaultInterval - default interval to start with
84 interval(defaultInterval);
88 interval(interval());
95 /** @brief Resets the TimeRemaining to the configured Interval
111 * interval and it starts counting down.
138 /** @brief Get value of Interval
141 * @return: current interval
144 using WatchdogInherits::interval;
146 /** @brief Set value of Interval
[all …]
H A Dwatchdog.cpp29 timeRemaining(interval()); in resetTimeRemaining()
52 auto interval_ms = this->interval(); in enabled()
55 entry("INTERVAL=%llu", interval_ms)); in enabled()
85 // Update interval to minInterval if applicable in timeRemaining()
92 value = fallback->interval; in timeRemaining()
102 // Set value of Interval
103 uint64_t Watchdog::interval(uint64_t value) in interval() function in phosphor::watchdog::Watchdog
105 return WatchdogInherits::interval(std::max(value, minInterval)); in interval()
179 auto interval_ms = fallback->interval; in tryFallbackOrDisable()
182 entry("INTERVAL=%llu", interval_ms)); in tryFallbackOrDisable()
/openbmc/phosphor-fan-presence/control/json/triggers/
H A Dtimer.cpp60 if (!jsonObj.contains("interval")) in getInterval()
62 lg2::error("Missing required timer trigger interval", "JSON", in getInterval()
64 throw std::runtime_error("Missing required timer trigger interval"); in getInterval()
67 jsonObj["interval"].get<uint64_t>()); in getInterval()
84 // Get the type and interval of this timer from the JSON in triggerTimer()
86 auto interval = getInterval(jsonObj); in triggerTimer() local
89 return [type = std::move(type), interval = std::move(interval), in triggerTimer()
96 mgr->addTimer(type, interval, std::move(tpPtr)); in triggerTimer()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-bsp/lm_sensors/lmsensors-config/
H A Dsensord.conf3 # -i, --interval <time> -- interval between scanning alarms (default 60s)
4 # -l, --log-interval <time> -- interval between logging sensors (default 30m)
5 # -t, --rrd-interval <time> -- interval between updating RRD file (default 5m)
H A Dsensord5 # interval between scanning alarms
6 INTERVAL=1m
8 # interval between logging
11 # interval between RRD logging
/openbmc/qemu/include/qemu/
H A Dinterval-tree.h3 * Interval trees.
38 uint64_t start; /* Start of interval */
39 uint64_t last; /* Last location _in_ interval */
77 * @start, @last: the inclusive interval [start, last].
80 * that overlap the interval, where "first" is sorted by start.
89 * @start, @last: the inclusive interval [start, last].
92 * interval; @next is the result of a previous call to
/openbmc/qemu/docs/interop/
H A Dvirtio-balloon-stats.rst9 This is done by writing a time interval value (in seconds) to the
10 guest-stats-polling-interval property. This value can be:
13 enables polling in the specified interval. If polling is already
14 enabled, the polling time interval is changed to the new value
22 interval.
70 Enable polling with 2 seconds interval::
74 "property": "guest-stats-polling-interval", "value": 2 } }
82 "property": "guest-stats-polling-interval", "value": 10 } }
109 "property": "stats-polling-interval", "value": 0 } }
/openbmc/telemetry/src/
H A Dreport_manager.cpp52 uint64_t interval, ReadingParameters readingParameters, in ReportManager()
71 if (interval == std::numeric_limits<uint64_t>::max()) in ReportManager()
73 interval = 0; in ReportManager()
84 Milliseconds(interval), appendLimit, in ReportManager()
102 const ReportingType reportingType, Milliseconds interval, in verifyAddReport() argument
121 if ((reportingType == ReportingType::periodic && interval < minInterval) || in verifyAddReport()
123 interval != Milliseconds{0})) in verifyAddReport()
125 throw errors::InvalidArgument("Interval"); in verifyAddReport()
140 const std::vector<ReportAction>& reportActions, Milliseconds interval, in addReport() argument
148 interval, appendLimit, reportUpdates, in addReport()
[all …]
H A Dreport.cpp34 name(reportName), reportingType(reportingTypeIn), interval(intervalIn), in Report()
68 auto errorMessages = verify(reportingType, interval); in Report()
216 Milliseconds newIntervalT = interval; in makeReportInterface()
227 if (newIntervalT != interval) in makeReportInterface()
229 throw errors::InvalidArgument("Interval"); in makeReportInterface()
241 if (interval != newIntervalT) in makeReportInterface()
243 interval = newIntervalT; in makeReportInterface()
244 reportIface->signal_property("Interval"); in makeReportInterface()
258 "Interval", sdbusplus::vtable::property_::emits_change, in makeReportInterface()
259 [this](const auto&) { return interval.count(); }); in makeReportInterface()
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ptpd/ptpd/
H A DFixed-100-CPU-using-issue-by-adding-minimum-POSIX-ti.patch5 interval
7 Added minimum POSIX timer interval to prevent from timers firing
12 - critical: added minimum POSIX timer interval to prevent from
54 @@ -100,6 +100,10 @@ eventTimerStart_posix(EventTimer *timer, double interval)
55 ts.tv_sec = interval;
56 ts.tv_nsec = (interval - ts.tv_sec) * 1E9;
62 DBGV("Timer %s start requested at %d.%4d sec interval\n", timer->id, ts.tv_sec, ts.tv_nsec);
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DReport.interface.yaml14 Performs safe modification of ReportingType and Interval properties
23 - name: Interval
68 - name: Interval
127 After period of time defined by Interval property.
153 - name: Interval
155 The corresponding metric apply to a time interval. The reading
157 interval and the collection duration of ReadingParameters
161 The corresponding metric apply to a time interval that began on
163 specifies the end of the time interval. Collection duration of
175 ReportingType property has value "Periodic", but Interval is set
/openbmc/qemu/scripts/
H A Duserfaultfd-wrlat.py6 # dumped each 'interval' seconds.
10 # USAGE: userfaultfd-lat [interval [count]]
27 print("USAGE: %s [interval [count]]" % argv[0])
85 interval = 10 variable
89 interval = int(argv[1])
90 if interval == 0:
115 sleep(interval)
/openbmc/sdeventplus/example/
H A Dheartbeat.cpp34 unsigned interval = std::stoul(argv[1]); in main() local
35 fprintf(stderr, "Beating every %u seconds\n", interval); in main()
38 auto hbFunc = [interval](Time& source, Time::TimePoint time) { in main()
43 // configured interval and re-enable it. in main()
44 source.set_time(time + std::chrono::seconds{interval}); in main()
/openbmc/sdeventplus/test/utility/
H A Dtimer.cpp56 const milliseconds interval{134}; member in sdeventplus::utility::__anon9ead1e020111::TimerTest
109 expectSetTime(new_time + interval); in expireTimer()
112 EXPECT_EQ(interval, timer->getInterval()); in expireTimer()
146 microseconds(starting_time + interval).count(), in SetUp()
151 timer = std::make_unique<TestTimer>(*event, runCallback, interval); in SetUp()
170 microseconds(starting_time + interval).count(), in TEST_F()
175 timer = std::make_unique<TestTimer>(*event, nullptr, interval); in TEST_F()
178 expectSetTime(starting_time + interval); in TEST_F()
202 EXPECT_EQ(interval, timer->getInterval()); in TEST_F()
266 // Setting an interval should not update the timer directly in TEST_F()
[all …]
/openbmc/telemetry/redfish-tests/
H A Dtest_telemetry.py107 interval=telemetry.min_interval,
232 interval=Duration.to_iso8061(telemetry.min_interval),
247 @pytest.mark.parametrize("interval", [10, 60, 2400, 90000])
249 interval, redfish, telemetry, report_definitions argument
251 if interval < telemetry.min_interval:
252 pytest.skip("Interval is below minimal acceptable value, skipping")
253 id = f"Test{str(interval)}"
255 id, type="Periodic", interval=Duration.to_iso8061(interval)
260 assert interval == r_interval, "Invalid interval, different then requested"
272 interval=invalid,
/openbmc/witherspoon-pfault-analysis/power-sequencer/
H A Dmain.cpp42 auto i = strtoul(args["interval"].c_str(), nullptr, 10); in main()
45 std::cerr << "Invalid interval value\n"; in main()
49 std::chrono::milliseconds interval{i}; in main() local
64 interval); in main()
71 event, interval); in main()
H A Dargument.cpp34 std::cerr << " --interval=<interval> Interval in milliseconds:\n"; in usage()
36 std::cerr << " Runtime monitor: polling interval.\n"; in usage()
43 {"interval", required_argument, NULL, 'i'},
/openbmc/qemu/audio/
H A Dtrace-events30 audio_timer_start(int interval) "interval %d ms"
32 audio_timer_delayed(int interval) "interval %d ms"
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/fans/phosphor-pid-control/
H A Dmonitor-pldm-sensor5 interval=2 # Wait time between each retry
178 sleep $interval
179 elapsed=$((elapsed + interval))
187 sleep $interval
188 elapsed=$((elapsed + interval))
205 echo "Some object paths are missing. Retrying in ${interval}s..."
206 sleep $interval
207 elapsed=$((elapsed + interval))
/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_uboot.c35 struct devrequest *setup, int interval) in construct_urb() argument
60 urb->ep->desc.bInterval = interval; in construct_urb()
113 void *buffer, int len, int interval) in _musb_submit_int_msg() argument
116 buffer, len, NULL, interval); in _musb_submit_int_msg()
122 int elementsize, void *buffer, int interval) in _musb_create_int_queue() argument
142 pipe, buffer, elementsize, NULL, interval); in _musb_create_int_queue()
271 void *buffer, int length, int interval) in submit_int_msg() argument
273 return _musb_submit_int_msg(&musb_host, dev, pipe, buffer, length, interval); in submit_int_msg()
278 void *buffer, int interval) in create_int_queue() argument
281 buffer, interval); in create_int_queue()
[all …]

12345678910>>...23