Home
last modified time | relevance | path

Searched refs:timers (Results 1 – 25 of 115) sorted by relevance

12345

/external/grpc-grpc/src/core/lib/iomgr/
Dtimer_heap.cc77 heap->timers = static_cast<grpc_timer**>( in maybe_shrink()
78 gpr_realloc(heap->timers, heap->timer_capacity * sizeof(grpc_timer*))); in maybe_shrink()
85 if (heap->timers[parent]->deadline > timer->deadline) { in note_changed_priority()
86 adjust_upwards(heap->timers, i, timer); in note_changed_priority()
88 adjust_downwards(heap->timers, i, heap->timer_count, timer); in note_changed_priority()
96 void grpc_timer_heap_destroy(grpc_timer_heap* heap) { gpr_free(heap->timers); } in grpc_timer_heap_destroy()
102 heap->timers = static_cast<grpc_timer**>( in grpc_timer_heap_add()
103 gpr_realloc(heap->timers, heap->timer_capacity * sizeof(grpc_timer*))); in grpc_timer_heap_add()
106 adjust_upwards(heap->timers, heap->timer_count, timer); in grpc_timer_heap_add()
118 heap->timers[i] = heap->timers[heap->timer_count - 1]; in grpc_timer_heap_remove()
[all …]
/external/iperf3/src/
Dtimer.c36 static Timer* timers = NULL; variable
66 if ( timers == NULL ) { in list_add()
68 timers = t; in list_add()
71 if (iperf_time_compare(&t->time, &timers->time) < 0) { in list_add()
74 t->next = timers; in list_add()
75 timers->prev = t; in list_add()
76 timers = t; in list_add()
79 for ( t2prev = timers, t2 = timers->next; t2 != NULL; in list_add()
103 timers = t->next; in list_remove()
163 if ( timers == NULL ) in tmr_timeout()
[all …]
/external/grpc-grpc/test/core/iomgr/
Dtimer_list_test.cc50 grpc_timer timers[20]; in add_test() local
65 &timers[i], start + 10, in add_test()
72 &timers[i], start + 1010, in add_test()
114 grpc_timer timers[5]; in destruction_test() local
126 &timers[0], 100, in destruction_test()
129 &timers[1], 3, in destruction_test()
132 &timers[2], 100, in destruction_test()
135 &timers[3], 3, in destruction_test()
138 &timers[4], 1, in destruction_test()
144 grpc_timer_cancel(&timers[0]); in destruction_test()
[all …]
Dtimer_heap_test.cc47 if (pq->timers[i] == el) return 1; in contains()
58 GPR_ASSERT(pq->timers[i]->deadline <= pq->timers[left_child]->deadline); in check_valid()
61 GPR_ASSERT(pq->timers[i]->deadline <= pq->timers[right_child]->deadline); in check_valid()
249 grpc_timer* const te = pq.timers[pq.timer_count - 1]; in shrink_test()
266 grpc_timer* te = pq.timers[which]; in shrink_test()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dhlo_execution_profiler.cc35 void InitAndStartTimer(std::stack<std::unique_ptr<se::Timer>>* timers, in InitAndStartTimer() argument
37 timers->push(absl::make_unique<se::Timer>(stream->parent())); in InitAndStartTimer()
38 stream->InitTimer(timers->top().get()).ThenStartTimer(timers->top().get()); in InitAndStartTimer()
41 uint64 GetCyclesTaken(std::stack<std::unique_ptr<se::Timer>>* timers, in GetCyclesTaken() argument
44 CHECK_GT(timers->size(), 0); in GetCyclesTaken()
46 stream->ThenStopTimer(timers->top().get()); in GetCyclesTaken()
48 double nanoseconds = timers->top()->Nanoseconds(); in GetCyclesTaken()
49 timers->pop(); in GetCyclesTaken()
/external/adhd/cras/src/server/
Dcras_tm.c27 struct cras_timer *timers; member
74 DL_APPEND(tm->timers, t); in cras_tm_create_timer()
81 DL_DELETE(tm->timers, t); in cras_tm_cancel_timer()
94 DL_FOREACH(tm->timers, t) { in cras_tm_deinit()
95 DL_DELETE(tm->timers, t); in cras_tm_deinit()
107 if (!tm->timers) in cras_tm_get_next_timeout()
110 min = &tm->timers->ts; in cras_tm_get_next_timeout()
111 DL_FOREACH(tm->timers, t) in cras_tm_get_next_timeout()
138 t = tm->timers; in cras_tm_call_callbacks()
/external/u-boot/arch/arm/dts/
Dstm32f429.dtsi85 timers2: timers@40000000 {
88 compatible = "st,stm32-timers";
114 timers3: timers@40000400 {
117 compatible = "st,stm32-timers";
143 timers4: timers@40000800 {
146 compatible = "st,stm32-timers";
171 timers5: timers@40000c00 {
174 compatible = "st,stm32-timers";
200 timers6: timers@40001000 {
203 compatible = "st,stm32-timers";
[all …]
/external/ltp/testcases/open_posix_testsuite/stress/timers/
Dplan.txt13 - Repetition of key clocks/timers functions.
16 - Behavior of normal functions under heavy timers usage.
20 API testing of the clocks/timers functions is considered to be done by
42 - Set memory to 95% and run through key timers functions.
47 - Set CPU to 95% and run through key timers functions.
51 - Set up >10,000 timers and run through key clocks functions.
52 - Set up >10,000 timers and run through key timers functions.
/external/linux-kselftest/android/patches/
D0001-Removes-unsupported-testcases-for-ftrace-compiles-me.patch5 membarrier, net/psock_tpacket, timers/valid-adjtimex. Added a list of
15 tools/testing/selftests/timers/valid-adjtimex.c | 5 +-
31 diff --git a/tools/testing/selftests/timers/valid-adjtimex.c b/tools/testing/selftests/timers/valid…
33 --- a/tools/testing/selftests/timers/valid-adjtimex.c
34 +++ b/tools/testing/selftests/timers/valid-adjtimex.c
D0011-ANDROID-do-not-run-update-periodic-IRQ-tests-on-Andr.patch14 tools/testing/selftests/timers/rtctest.c | 14 ++++++++++++++
17 diff --git a/tools/testing/selftests/timers/rtctest.c b/tools/testing/selftests/timers/rtctest.c
19 --- a/tools/testing/selftests/timers/rtctest.c
20 +++ b/tools/testing/selftests/timers/rtctest.c
/external/libkmsxx/py/tests/
Dsync.py15 timers = [] variable in Timer
23 self.timers.append(self)
24 self.timers.sort(key=lambda timer: timer.timeout)
29 while len(_class.timers) > 0:
30 timer = _class.timers[0]
34 del _class.timers[0]
41 if len(_class.timers) == 0 or _class.timers[0].timeout < clk:
44 return _class.timers[0].timeout - clk
/external/swiftshader/third_party/subzero/src/
DIceTimerTree.cpp36 if (!BuildDefs::timers()) in TimerStack()
53 if (!BuildDefs::timers()) in getTimerID()
80 if (!BuildDefs::timers()) in mergeFrom()
150 if (!BuildDefs::timers()) in push()
161 if (!BuildDefs::timers()) in pop()
178 if (!BuildDefs::timers()) in update()
214 if (!BuildDefs::timers()) in reset()
236 if (!BuildDefs::timers()) in dumpHelper()
264 if (!BuildDefs::timers()) in dump()
DIceGlobalContext.h131 if (!BuildDefs::timers()) in initInto()
139 if (!BuildDefs::timers()) in mergeFrom()
592 if (BuildDefs::timers()) in ID()
599 if (BuildDefs::timers()) in ID()
605 if (BuildDefs::timers()) in TimerMarker()
610 if (BuildDefs::timers() && Active) in ~TimerMarker()
/external/ltp/testcases/open_posix_testsuite/functional/timers/
Dplan.txt15 timers - The following types of timers will be tested.
24 API testing of the clocks/timers functions is considered to be done by
40 generated test scenarios setting clocks or timers to these critical
68 - Mimic the non-repeating timers tests as they apply to sleep.
76 are absolute timers only.
79 - [Relative only] Set up multiple timers to expire after the same duration
85 - Set two timers to expire at the same time, different events, in the
87 - Set up two timers to expire for the same time in two different processes.
92 - Perform all non-repeating timer tests on repeating timers.
96 - Have multiple timers in a process blocked and ensure overrun count
/external/linux-kselftest/
DAndroid.bp469 relative_install_path: "linux-kselftest/timers",
471 "tools/testing/selftests/timers/adjtick.c",
472 "tools/testing/selftests/timers/alarmtimer-suspend.c",
473 "tools/testing/selftests/timers/change_skew.c",
474 "tools/testing/selftests/timers/clocksource-switch.c",
475 "tools/testing/selftests/timers/freq-step.c",
476 "tools/testing/selftests/timers/inconsistency-check.c",
477 "tools/testing/selftests/timers/leap-a-day.c",
478 "tools/testing/selftests/timers/leapcrash.c",
479 "tools/testing/selftests/timers/nanosleep.c",
[all …]
/external/u-boot/arch/arm/cpu/armv7/sunxi/
Dtimer.c33 struct sunxi_timer_reg *timers = in read_timer() local
35 struct sunxi_timer *timer = &timers->timer[TIMER_NUM]; in read_timer()
47 struct sunxi_timer_reg *timers = in timer_init() local
49 struct sunxi_timer *timer = &timers->timer[TIMER_NUM]; in timer_init()
/external/u-boot/doc/device-tree-bindings/timer/
Datcpit100_timer.txt6 This timer is a set of compact multi-function timers, which can be
7 used as pulse width modulators (PWM) as well as simple timers.
12 Two 16-bit timers
13 Four 8-bit timers
/external/ltp/testcases/open_posix_testsuite/Documentation/
DCOVERAGE.timers8 This document lists the items that will be tested for POSIX timers.
49 /usr/src/linux/Documentation/high-res-timers/lib/posix_time.h
57 - Absolute timers and clock changes:
73 High Res Timers - http://high-res-timers.sourceforge.net
74 Alternate High Res Timers - http://high-res-timers.sourceforge.net (look
/external/autotest/client/site_tests/platform_HighResTimers/
Dcontrol7 PURPOSE = "Ensure the high resolution timers are working."
8 CRITERIA = "Fails if no timers have nanosecond resolution."
17 Reads from /proc/timer_list to see if any reported timers have nanosecond
/external/autotest/client/tests/cyclictest/
Dhelp1 Cyclictest is a program to test the performance of high-resolution timers on Linux systems.
78 -n use clock_nanosleep instead of posix interval timers
80 Setting this option runs the tests with clock_nanosleep instead of posix interval timers.
92 -r use relative timers instead of absolute
94 The default behaviour of the tests is to use absolute timers. This option is there for completeness…
96 -s use sys_nanosleep and sys_setitimer instead of posix timers
/external/ltp/testcases/kernel/
DMakefile55 timers \
66 sched security timers
/external/u-boot/arch/powerpc/cpu/mpc8xx/
Dimmap.c348 sit8xx_t __iomem *timers = &immap->im_sit; in print_reginfo() local
359 in_be16(&timers->sit_tbscr), in_be16(&timers->sit_rtcsc)); in print_reginfo()
360 printf("\tPISCR\t0x%04X\n", in_be16(&timers->sit_piscr)); in print_reginfo()
/external/perfetto/src/base/
Dwatchdog_unittest.cc66 std::map<int, Watchdog::Timer> timers; in TEST() local
71 timers.emplace(0, watchdog.CreateFatalTimer(20)); in TEST()
/external/ltp/testcases/open_posix_testsuite/
DChangeLog130 - More timers bug fixes
138 - timers bug fixes
145 - timers tests for TMR and CS tags (for timers)
/external/tensorflow/tensorflow/compiler/xla/service/
Dservice.cc402 std::vector<std::unique_ptr<se::Timer>> timers; in ExecuteParallelAndRegisterResult() local
433 timers.push_back( in ExecuteParallelAndRegisterResult()
436 ->InitTimer(timers.back().get()) in ExecuteParallelAndRegisterResult()
437 .ThenStartTimer(timers.back().get()); in ExecuteParallelAndRegisterResult()
438 CHECK(timers.front() != nullptr); in ExecuteParallelAndRegisterResult()
463 streams.back()->ThenStopTimer(timers.back().get()); in ExecuteParallelAndRegisterResult()
484 CHECK(!timers.empty()); in ExecuteParallelAndRegisterResult()
486 timer_nanoseconds.reserve(timers.size()); in ExecuteParallelAndRegisterResult()
487 for (auto& timer : timers) { in ExecuteParallelAndRegisterResult()

12345