Searched refs:now (Results 1 - 25 of 658) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/timens/
H A Dvfork_exec.c24 struct timespec *now; member in struct:thread_args
30 struct timespec *now = args->now, tst; local
35 if (abs(tst.tv_sec - now->tv_sec) > 5) {
37 args->tst_name, tst.tv_sec, now->tv_sec);
44 static int check_in_thread(char *tst_name, struct timespec *now) argument
48 .now = now,
60 static int check(char *tst_name, struct timespec *now) argument
67 if (abs(tst.tv_sec - now
79 struct timespec now; local
[all...]
H A Dexec.c23 struct timespec now, tst; local
28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1)
33 if (abs(tst.tv_sec - now.tv_sec) > 5)
34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec);
43 clock_gettime(CLOCK_MONOTONIC, &now);
53 if (abs(tst.tv_sec - now.tv_sec) > 5)
55 now.tv_sec, tst.tv_sec);
73 if (abs(tst.tv_sec - now.tv_sec - OFFSET) > 5)
75 now.tv_sec + OFFSET, tst.tv_sec);
79 snprintf(now_str, sizeof(now_str), "%ld", now
[all...]
H A Dclock_nanosleep.c26 struct timespec *now, *rem; member in struct:thread_args
36 clock_nanosleep(args->clockid, args->abs ? TIMER_ABSTIME : 0, args->now, args->rem);
43 struct timespec now = {}, rem; local
44 struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid};
64 now.tv_sec = start.tv_sec;
65 now.tv_nsec = start.tv_nsec;
68 now.tv_sec += 3600;
/linux-master/include/trace/events/
H A Dalarmtimer.h47 TP_PROTO(struct alarm *alarm, ktime_t now),
49 TP_ARGS(alarm, now),
55 __field(s64, now)
62 __entry->now = now;
65 TP_printk("alarmtimer:%p type:%s expires:%llu now:%llu",
69 __entry->now
75 TP_PROTO(struct alarm *alarm, ktime_t now),
77 TP_ARGS(alarm, now)
82 TP_PROTO(struct alarm *alarm, ktime_t now),
[all...]
H A Diocost.h16 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
19 TP_ARGS(iocg, path, now, last_period, cur_period, vtime),
24 __field(u64, now)
39 __entry->now = now->now;
40 __entry->vnow = now->vnow;
51 TP_printk("[%s:%s] now=%llu:%llu vrate=%llu "
55 __entry->now, __entry->vnow, __entry->vrate,
63 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
[all...]
H A Dnapi.h43 unsigned long now, unsigned long *hist),
45 TP_ARGS(thrs, len, last_reap, hist_head, now, hist),
52 __field( unsigned long, now)
61 __entry->now = now;
65 TP_printk("thrs %u len %u last_reap %lu hist_head %lu now %lu hist %016lx %016lx %016lx %016lx",
67 __entry->last_reap, __entry->hist_head, __entry->now,
/linux-master/arch/parisc/lib/
H A Ddelay.c32 u32 bclock, now, loops = __loops; local
39 now = mfctl(16);
40 if ((now - bclock) >= loops)
59 loops -= (now - bclock);
/linux-master/kernel/time/
H A Dtimekeeping_internal.h19 static inline u64 clocksource_delta(u64 now, u64 last, u64 mask) argument
21 u64 ret = (now - last) & mask;
30 static inline u64 clocksource_delta(u64 now, u64 last, u64 mask) argument
32 return (now - last) & mask;
/linux-master/kernel/trace/
H A Dtrace_clock.c98 u64 now, prev_time; local
116 now = sched_clock_cpu(this_cpu);
118 /* Make sure that now is always greater than or equal to prev_time */
119 if ((s64)(now - prev_time) < 0)
120 now = prev_time;
133 if ((s64)(now - prev_time) < 0)
134 now = prev_time;
136 trace_clock_struct.prev_time = now;
144 return now;
/linux-master/scripts/
H A Dstackusage5 now=`date +%s`
29 find . -name '*.su' -newermt "@${now}" -print | \
/linux-master/samples/bpf/
H A Dtcp_dumpstats_kern.c31 __u64 now; local
52 now = bpf_ktime_get_ns();
53 if (now < *next_dump)
60 *next_dump = now + INTERVAL;
/linux-master/tools/testing/selftests/powerpc/security/
H A Dmitigation-patching.sh12 local now
17 now=$start
19 while [[ $((now-start)) -lt "$TIMEOUT" ]]
24 now=$(date +%s)
/linux-master/arch/x86/kernel/
H A Drtc.c36 int mach_set_cmos_time(const struct timespec64 *now) argument
38 unsigned long long nowtime = now->tv_sec;
57 void mach_get_cmos_time(struct timespec64 *now) argument
66 now->tv_sec = now->tv_nsec = 0;
72 now->tv_sec = now->tv_nsec = 0;
76 now->tv_sec = rtc_tm_to_time64(&tm);
77 now->tv_nsec = 0;
103 int update_persistent_clock64(struct timespec64 now) argument
[all...]
H A Dpvclock.c129 struct timespec64 now; local
142 now.tv_sec = wall_clock->sec;
143 now.tv_nsec = wall_clock->nsec;
148 delta += now.tv_sec * NSEC_PER_SEC + now.tv_nsec;
150 now.tv_nsec = do_div(delta, NSEC_PER_SEC);
151 now.tv_sec = delta;
153 set_normalized_timespec64(ts, now.tv_sec, now.tv_nsec);
/linux-master/tools/testing/selftests/powerpc/tm/
H A Dtm-syscall.c79 struct timeval end, now; local
89 now.tv_sec = TEST_DURATION;
90 now.tv_usec = 0;
91 timeradd(&end, &now, &end);
93 for (count = 0; timercmp(&now, &end, <); count++) {
116 gettimeofday(&now, 0);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtime_tai.c37 __u64 ts1, ts2, now; local
64 now = ts_to_ns(&now_tai);
66 ASSERT_TRUE(now > ts1, "tai_future_ts1");
67 ASSERT_TRUE(now > ts2, "tai_future_ts2");
70 ASSERT_TRUE(now - ts1 < TAI_THRESHOLD, "tai_range_ts1");
71 ASSERT_TRUE(now - ts2 < TAI_THRESHOLD, "tai_range_ts2");
/linux-master/tools/testing/selftests/timers/
H A Dnanosleep.c103 struct timespec now, target, rel; local
106 if (clock_gettime(clockid, &now))
108 target = timespec_add(now, ns);
112 clock_gettime(clockid, &now);
114 if (!in_order(target, now))
118 clock_gettime(clockid, &now);
122 target = timespec_add(now, ns);
124 clock_gettime(clockid, &now);
126 if (!in_order(target, now))
H A Dset-2038.c50 struct timeval now; local
53 now.tv_sec = (time_t)time;
54 now.tv_usec = 0;
56 ret = settimeofday(&now, NULL);
/linux-master/tools/power/cpupower/debug/kernel/
H A Dcpufreq-test_tsc.c56 u32 now, then, diff; local
88 now = read_pmtmr();
90 diff = (now - then) & 0xFFFFFF;
92 printk(KERN_DEBUG "t1: %08u t2: %08u diff_pmtmr: %08u diff_tsc: %016llu\n", then, now, diff, diff_tsc);
93 then = now;
/linux-master/arch/s390/include/asm/vdso/
H A Dgettimeofday.h27 u64 adj, now; local
29 now = get_tod_clock();
30 adj = vd->arch_data.tod_steering_end - now;
32 now += (vd->arch_data.tod_steering_delta < 0) ? (adj >> 15) : -(adj >> 15);
33 return now;
/linux-master/include/linux/
H A Ddynamic_queue_limits.h92 unsigned long map, now, now_hi, i; local
107 now = jiffies;
108 now_hi = now / BITS_PER_LONG;
132 if (!(map & BIT_MASK(now)))
133 WRITE_ONCE(DQL_HIST_ENT(dql, now_hi), map | BIT_MASK(now));
/linux-master/tools/power/cpupower/bench/
H A Dbenchmark.c35 long long now, then; local
44 now = get_time();
48 timed = (unsigned int)(then - now);
55 now = get_time();
59 timed = (unsigned int)(then - now);
81 long long now, then; local
126 now = get_time();
130 performance_time += then - now - sleep_time;
135 (long)(then - now), sleep_time,
152 now
[all...]
/linux-master/fs/xfs/scrub/
H A Dstats.h35 u64 now = xchk_stats_now(); local
42 if (now == since)
45 return now - since;
/linux-master/kernel/sched/
H A Dpelt.h4 int __update_load_avg_blocked_se(u64 now, struct sched_entity *se);
5 int __update_load_avg_se(u64 now, struct cfs_rq *cfs_rq, struct sched_entity *se);
6 int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq);
7 int update_rt_rq_load_avg(u64 now, struct rq *rq, int running);
8 int update_dl_rq_load_avg(u64 now, struct rq *rq, int running);
11 int update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity);
19 update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity) argument
187 update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq) argument
193 update_rt_rq_load_avg(u64 now, struct rq *rq, int running) argument
199 update_dl_rq_load_avg(u64 now, struc argument
205 update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity) argument
[all...]
/linux-master/fs/bcachefs/
H A Dclock_types.h29 atomic64_t now; member in struct:io_clock

Completed in 178 milliseconds

1234567891011>>