timeval
long timeval[2] = { 0, 0 };
return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&timeval);
struct timeval times[2];
bool timeval, bool time32);
bool timeval, bool time32);
struct timeval time;
struct timeval ts;
#define PPGETTIME _IOR(PP_IOCTL, 0x95, struct timeval)
#define PPSETTIME _IOW(PP_IOCTL, 0x96, struct timeval)
#define SIOCGSTAMP ((sizeof(struct timeval)) == 8 ? \
struct timeval it_interval;/* timer interval */
struct timeval it_value; /* current value */
struct timeval time; /* (read only, except for ADJ_SETOFFSET) */
struct timeval timestamp;
static inline __u64 v4l2_timeval_to_ns(const struct timeval *tv)
bool timeval, bool time32)
if (timeval)
if (timeval && !in_compat_syscall()) {
struct timeval t0, t_last, t_new;
struct timeval tv;
struct timeval stv, etv;
struct timeval now;
struct timeval tv = {cfg.delay, 0};
static struct timeval last_update;
struct timeval now;
int _sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout)
int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout)
int _sys_gettimeofday(struct timeval *tv, struct timezone *tz)
int gettimeofday(struct timeval *tv, struct timezone *tz)
struct timeval tv;
struct timeval my_timeval = { usecs / 1000000, usecs % 1000000 };
struct timeval my_timeval = { msecs / 1000, (msecs % 1000) * 1000 };
struct timeval my_timeval = { seconds, 0 };
extern struct timeval bench__start, bench__end, bench__runtime;
struct timeval start, stop, diff;
struct timeval start, stop, diff;
struct timeval start, end, diff;
static inline u64 timeval2usec(struct timeval *tv)
struct timeval start, end, diff;
struct timeval bench__start, bench__end, bench__runtime;
struct timeval start, end, runtime;
struct timeval runtime;
struct timeval start, end;
struct timeval start, end, runtime;
struct timeval start, end, diff;
struct timeval start, end, diff;
static double timeval2double(struct timeval *ts)
struct timeval tv;
struct timeval start0, start, stop, diff;
struct timeval start, stop, diff;
struct timeval start, end, diff;
struct timeval start, stop, diff;
struct timeval start, stop, diff;
struct timeval start, stop, diff;
struct timeval start, end, diff;
struct timeval start, end, diff;
struct timeval start, stop, diff;
struct timeval tv;
struct timeval ref_tod;
struct timeval start, now, diff, maxtime;
struct timeval timeout, *ptimeout = delay_secs ? &timeout : NULL;
struct timeval tod;
struct timeval tod_ns;
static double timeval2double(struct timeval *t)
struct timeval tv;
struct timeval time;
struct timeval tv;
struct timeval tv;
struct timeval now;
struct timeval tv_begin;
struct timeval tv_end;
struct timeval tv_delta;
struct timeval tv_even, tv_odd, tv_delta;
struct timeval tv;
struct timeval interval_tv = { 5, 0 };
static struct timeval procsysfs_tv_begin;
struct timeval tout;
struct timeval tv = { usec / M, usec % M };
struct timeval timeout = { .tv_sec = 3 };
struct timeval tv;
static int wait_for_packet(int fd, filter_t filter, struct timeval *timeout)
struct timeval copied_timeout = *timeout;
struct timeval timeo = {
struct timeval timeo = {
struct timeval timeout = { .tv_sec = timeout_sec };
struct timeval timeout = { .tv_sec = timeout_sec };
struct timeval tv_end, tv_now, tv_timeout = {THREAD_TMOUT, 0};
struct timeval tv_end, tv_now, tv_timeout = {THREAD_TMOUT, 0};
struct timeval to;
struct timeval timeout;
struct timeval timeout;
err = setsockopt(c2, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(struct timeval));
struct timeval timeout;
struct timeval tv;
struct timeval tv;
struct timeval start, now;
struct timeval tv = { .tv_usec = 100 * 1000 };
static const struct timeval audit_tv_default = {
static const struct timeval audit_tv_fast = {
const struct timeval timeout = {
struct timeval tv;
struct timeval timeout = {
struct timeval tv = {
static unsigned long timediff(struct timeval s, struct timeval e)
struct timeval start, end;
struct timeval tv;
struct timeval timeout;
struct timeval tv = { .tv_sec = 1, .tv_usec = 10 };
struct timeval t = { .tv_sec = 0, .tv_usec = u_timeout };
struct timeval tv;
struct timeval timeout;
struct timeval tv;
static const struct timeval tv = {
struct timeval tv;
struct timeval tv = {25, 0};
struct timeval timeout = { .tv_sec = prog_timeout }, *ptval = NULL;
struct timeval timeout = { .tv_sec = prog_timeout }, *ptval = NULL;
struct timeval _tv = { .tv_sec = prog_timeout }, *tv = NULL;
struct timeval tv = { .tv_usec = 100 * 1000 };
struct timeval tv = { .tv_usec = 100 * 1000 };
struct timeval tv = { .tv_usec = 100 * 1000 };
struct timeval now;
static int __test_wait_fd(int sk, struct timeval *tv, bool write)
struct timeval tv = { .tv_sec = sec, };
struct timeval tv = { .tv_usec = POLL_USEC, };
struct timeval tv = { .tv_sec = sec };
struct timeval *ptv = NULL;
struct timeval t0, t1;
struct timeval now;
struct timeval tv;
struct timeval now;
struct timeval *stamp =
(struct timeval *)CMSG_DATA(cmsg);
struct timeval next;
struct timeval now;
struct timeval delta;
struct timeval tv = { .tv_usec = 10000, };
struct timeval to = { .tv_sec = TIMEOUT_SEC };
struct timeval timeout = { .tv_sec = TIMEOUT_SEC };
struct timeval tv = { .tv_usec = 100 * 1000 };
struct timeval tv;
struct timeval tv;
struct timeval tv;
CASE_TEST(select_null); EXPECT_SYSZR(1, ({ struct timeval tv = { 0 }; select(0, NULL, NULL, NULL, &tv); })); break;
struct timeval tv;
struct timeval tv_start, tv_end, tv_diff;
struct timeval end, now;
struct timeval tv = { .tv_sec = 2 };
struct timeval tv = { .tv_sec = ALARM_DELTA + 2 };
struct timeval tv = { .tv_sec = ALARM_DELTA + 2 };
struct timeval tv = { .tv_sec = 62 };
struct timeval tv = { .tv_sec = 62 };
struct timeval tv;
struct timeval tv;
struct timeval start, end, diff;
struct timeval now;
struct timeval timeout;
struct timeval tv;
struct timeval tv;
typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
struct timeval tv;
typedef long (*vdso_gettimeofday_t)(struct timeval *tv, struct timezone *tz);
struct timeval tv;
static inline int sys_gettimeofday(struct timeval *tv, struct timezone *tz)
static bool tv_leq(const struct timeval *a, const struct timeval *b)
struct timeval start, vdso, end;
typedef long (*vgtod_t)(struct timeval *tv, struct timezone *tz);
typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
struct timeval tv;
static double tv_diff(const struct timeval *a, const struct timeval *b)
static void check_gtod(const struct timeval *tv_sys1,
const struct timeval *tv_sys2,
const struct timeval *tv_other,
struct timeval tv_sys1, tv_sys2, tv_vdso, tv_vsys;
typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
static inline long sys_gtod(struct timeval *tv, struct timezone *tz)
struct timeval val, char const *errmsg)
struct timeval chkval;
struct timeval val, char const *errmsg);
struct timeval tv;
static struct timeval __tv;
struct timeval tv;
struct timeval duration;