Home
last modified time | relevance | path

Searched refs:itimer (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_signal.py403 self.itimer = None
408 if self.itimer is not None: # test_itimer_exc doesn't change this attr
410 signal.setitimer(self.itimer, 0)
452 self.itimer = signal.ITIMER_REAL
453 signal.setitimer(self.itimer, 1.0)
464 self.itimer = signal.ITIMER_VIRTUAL
466 signal.setitimer(self.itimer, 0.3, 0.2)
472 if signal.getitimer(self.itimer) == (0.0, 0.0):
479 self.assertEqual(signal.getitimer(self.itimer), (0.0, 0.0))
487 self.itimer = signal.ITIMER_PROF
[all …]
/external/python/cpython3/Lib/test/
Dtest_signal.py631 self.itimer = None
636 if self.itimer is not None: # test_itimer_exc doesn't change this attr
638 signal.setitimer(self.itimer, 0)
670 self.itimer = signal.ITIMER_REAL
671 signal.setitimer(self.itimer, 1.0)
679 self.itimer = signal.ITIMER_VIRTUAL
681 signal.setitimer(self.itimer, 0.3, 0.2)
687 if signal.getitimer(self.itimer) == (0.0, 0.0):
694 self.assertEqual(signal.getitimer(self.itimer), (0.0, 0.0))
699 self.itimer = signal.ITIMER_PROF
[all …]
/external/autotest/client/tests/cyclictest/src/
Dcyclictest.c205 struct itimerval itimer; in timerthread() local
263 itimer.it_value.tv_sec = 1; in timerthread()
264 itimer.it_value.tv_usec = 0; in timerthread()
265 itimer.it_interval.tv_sec = interval.tv_sec; in timerthread()
266 itimer.it_interval.tv_usec = interval.tv_nsec / 1000; in timerthread()
267 setitimer (ITIMER_REAL, &itimer, NULL); in timerthread()
349 itimer.it_value.tv_sec = 0; in timerthread()
350 itimer.it_value.tv_usec = 0; in timerthread()
351 itimer.it_interval.tv_sec = 0; in timerthread()
352 itimer.it_interval.tv_usec = 0; in timerthread()
[all …]
/external/ltp/testcases/kernel/sched/process_stress/
Dprocess.c844 struct itimerstruc_t itimer, old_itimer; local
856 itimer.it_interval.tv_nsec = 0;
857 itimer.it_interval.tv_sec = 0;
858 itimer.it_value.tv_nsec = 0;
859 itimer.it_value.tv_sec = (time_t) (TVAL * 60.0);
860 if (incinterval(timer, &itimer, &old_itimer) == -1) {
873 struct itimerval itimer; local
875 memset(&itimer, 0, sizeof(struct itimerval));
879 itimer.it_interval.tv_usec = 0;
880 itimer.it_interval.tv_sec = 0;
[all …]
/external/toolchain-utils/dejagnu/gdb_baseline/
Dx86_64-cros-linux-gnu7817 PASS: gdb.base/sigstep.exp: set itimer = itimer_real
Di686-pc-linux-gnu7582 PASS: gdb.base/sigstep.exp: set itimer = itimer_real
Darmv7a-cros-linux-gnueabi7435 FAIL: gdb.base/sigstep.exp: set itimer = itimer_real