/systemd-251/src/basic/ |
D | time-util.h | 12 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 …]
|
D | time-util.c | 58 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 …]
|
D | procfs-util.c | 130 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()
|
D | procfs-util.h | 14 int procfs_cpu_get_usage(nsec_t *ret);
|
/systemd-251/src/cgtop/ |
D | cgtop.c | 46 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/ |
D | test-conf-parser.c | 84 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()
|
D | test-procfs-util.c | 13 nsec_t nsec; in main()
|
D | test-time-util.c | 130 nsec_t u; in TEST()
|
/systemd-251/src/network/ |
D | networkd-network.h | 265 nsec_t can_time_quanta_ns; 272 nsec_t can_data_time_quanta_ns;
|
D | networkd-can.c | 192 nsec_t val, *tq = data; in config_parse_can_time_quanta()
|
/systemd-251/src/journal/ |
D | journald-context.h | 54 nsec_t extra_fields_mtime;
|
D | journald-console.c | 61 (nsec_t)ts.tv_nsec / 1000); in server_forward_console()
|
/systemd-251/src/tmpfiles/ |
D | tmpfiles.c | 486 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/ |
D | udevadm-monitor.c | 46 ts.tv_sec, (nsec_t)ts.tv_nsec/1000, in device_monitor_handler()
|
/systemd-251/src/core/ |
D | cgroup.h | 297 int unit_get_cpu_usage(Unit *u, nsec_t *ret);
|
D | unit.h | 285 nsec_t cpu_usage_base; 286 nsec_t cpu_usage_last; /* the most recently read value */
|
D | execute.h | 227 nsec_t timer_slack_nsec;
|
D | cgroup.c | 3726 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()
|
D | main.c | 152 static nsec_t arg_timer_slack_nsec;
|
D | dbus-unit.c | 1146 nsec_t ns = NSEC_INFINITY; in property_get_cpu_usage()
|
D | dbus-execute.c | 1638 static BUS_DEFINE_SET_TRANSIENT(nsec, "t", uint64_t, nsec_t, NSEC_FMT);
|
D | unit.c | 2282 nsec_t nsec = NSEC_INFINITY; in unit_log_resources()
|
/systemd-251/src/timedate/ |
D | timedatectl.c | 469 … 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/ |
D | conf-parser.c | 771 DEFINE_PARSER(nsec, nsec_t, parse_nsec);
|
D | bus-unit-util.c | 129 DEFINE_BUS_APPEND_PARSE_PTR("t", uint64_t, nsec_t, parse_nsec);
|