Home
last modified time | relevance | path

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

/systemd-251/src/basic/
Dtime-util.h12 typedef uint64_t nsec_t; typedef
43 #define NSEC_INFINITY ((nsec_t) UINT64_MAX)
48 #define NSEC_PER_SEC ((nsec_t) 1000000000ULL)
49 #define NSEC_PER_MSEC ((nsec_t) 1000000ULL)
50 #define NSEC_PER_USEC ((nsec_t) 1000ULL)
53 #define NSEC_PER_MINUTE ((nsec_t) (60ULL*NSEC_PER_SEC))
55 #define NSEC_PER_HOUR ((nsec_t) (60ULL*NSEC_PER_MINUTE))
57 #define NSEC_PER_DAY ((nsec_t) (24ULL*NSEC_PER_HOUR))
59 #define NSEC_PER_WEEK ((nsec_t) (7ULL*NSEC_PER_DAY))
61 #define NSEC_PER_MONTH ((nsec_t) (2629800ULL*NSEC_PER_SEC))
[all …]
Dtime-util.c58 nsec_t now_nsec(clockid_t clock_id) { in now_nsec()
219 nsec_t timespec_load_nsec(const struct timespec *ts) { in timespec_load_nsec()
225 if ((nsec_t) ts->tv_sec >= (UINT64_MAX - ts->tv_nsec) / NSEC_PER_SEC) in timespec_load_nsec()
228 return (nsec_t) ts->tv_sec * NSEC_PER_SEC + (nsec_t) ts->tv_nsec; in timespec_load_nsec()
247 struct timespec *timespec_store_nsec(struct timespec *ts, nsec_t n) { in timespec_store_nsec()
1130 static const char* extract_nsec_multiplier(const char *p, nsec_t *multiplier) { in extract_nsec_multiplier()
1133 nsec_t nsec; in extract_nsec_multiplier()
1183 int parse_nsec(const char *t, nsec_t *nsec) { in parse_nsec()
1185 nsec_t r = 0; in parse_nsec()
1205 nsec_t multiplier = 1, k; in parse_nsec()
[all …]
Dprocfs-util.c130 int procfs_cpu_get_usage(nsec_t *ret) { in procfs_cpu_get_usage()
174 *ret = DIV_ROUND_UP((nsec_t) sum * (nsec_t) a, (nsec_t) b); in procfs_cpu_get_usage()
Dprocfs-util.h14 int procfs_cpu_get_usage(nsec_t *ret);
/systemd-251/src/cgtop/
Dcgtop.c46 nsec_t cpu_usage;
47 nsec_t cpu_timestamp;
54 nsec_t io_timestamp;
278 nsec_t timestamp; in process()
369 nsec_t timestamp; in process()
414 (nsec_t) new_usage > g->cpu_usage) { in process()
416 nsec_t x, y; in process()
422 y = (nsec_t) new_usage - g->cpu_usage; in process()
427 g->cpu_usage = (nsec_t) new_usage; in process()
/systemd-251/src/test/
Dtest-conf-parser.c84 static void test_config_parse_nsec_one(const char *rvalue, nsec_t expected) { in test_config_parse_nsec_one()
85 nsec_t v = 0; in test_config_parse_nsec_one()
Dtest-procfs-util.c13 nsec_t nsec; in main()
Dtest-time-util.c130 nsec_t u; in TEST()
/systemd-251/src/network/
Dnetworkd-network.h265 nsec_t can_time_quanta_ns;
272 nsec_t can_data_time_quanta_ns;
Dnetworkd-can.c192 nsec_t val, *tq = data; in config_parse_can_time_quanta()
/systemd-251/src/journal/
Djournald-context.h54 nsec_t extra_fields_mtime;
Djournald-console.c61 (nsec_t)ts.tv_nsec / 1000); in server_forward_console()
/systemd-251/src/tmpfiles/
Dtmpfiles.c486 static inline nsec_t load_statx_timestamp_nsec(const struct statx_timestamp *ts) { in load_statx_timestamp_nsec()
492 if ((nsec_t) ts->tv_sec >= (UINT64_MAX - ts->tv_nsec) / NSEC_PER_SEC) in load_statx_timestamp_nsec()
499 nsec_t atime, in needs_cleanup()
500 nsec_t btime, in needs_cleanup()
501 nsec_t ctime, in needs_cleanup()
502 nsec_t mtime, in needs_cleanup()
503 nsec_t cutoff, in needs_cleanup()
556 nsec_t self_atime_nsec, in dir_cleanup()
557 nsec_t self_mtime_nsec, in dir_cleanup()
558 nsec_t cutoff_nsec, in dir_cleanup()
[all …]
/systemd-251/src/udev/
Dudevadm-monitor.c46 ts.tv_sec, (nsec_t)ts.tv_nsec/1000, in device_monitor_handler()
/systemd-251/src/core/
Dcgroup.h297 int unit_get_cpu_usage(Unit *u, nsec_t *ret);
Dunit.h285 nsec_t cpu_usage_base;
286 nsec_t cpu_usage_last; /* the most recently read value */
Dexecute.h227 nsec_t timer_slack_nsec;
Dcgroup.c3726 static int unit_get_cpu_usage_raw(Unit *u, nsec_t *ret) { in unit_get_cpu_usage_raw()
3769 int unit_get_cpu_usage(Unit *u, nsec_t *ret) { in unit_get_cpu_usage()
3770 nsec_t ns; in unit_get_cpu_usage()
Dmain.c152 static nsec_t arg_timer_slack_nsec;
Ddbus-unit.c1146 nsec_t ns = NSEC_INFINITY; in property_get_cpu_usage()
Ddbus-execute.c1638 static BUS_DEFINE_SET_TRANSIENT(nsec, "t", uint64_t, nsec_t, NSEC_FMT);
Dunit.c2282 nsec_t nsec = NSEC_INFINITY; in unit_log_resources()
/systemd-251/src/timedate/
Dtimedatectl.c469 … FORMAT_TIMESPAN(DIV_ROUND_UP((nsec_t) (exp2(i->precision) * NSEC_PER_SEC), NSEC_PER_USEC), 0), in print_ntp_status_info()
/systemd-251/src/shared/
Dconf-parser.c771 DEFINE_PARSER(nsec, nsec_t, parse_nsec);
Dbus-unit-util.c129 DEFINE_BUS_APPEND_PARSE_PTR("t", uint64_t, nsec_t, parse_nsec);