Home
last modified time | relevance | path

Searched refs:serialize_item_format (Results 1 – 15 of 15) sorted by relevance

/systemd-251/src/shared/
Dserialize.c55 int serialize_item_format(FILE *f, const char *key, const char *format, ...) { in serialize_item_format() function
94 return serialize_item_format(f, key, "%i", copy); in serialize_fd()
104 return serialize_item_format(f, key, USEC_FMT, usec); in serialize_usec()
115 return serialize_item_format(f, name, USEC_FMT " " USEC_FMT, t->realtime, t->monotonic); in serialize_dual_timestamp()
Dserialize.h13 int serialize_item_format(FILE *f, const char *key, const char *value, ...) _printf_(3,4);
Dbpf-program.c385 r = serialize_item_format( in bpf_program_serialize_attachment()
/systemd-251/src/core/
Dunit-serialize.c145 (void) serialize_item_format(f, "cpu-usage-base", "%" PRIu64, u->cpu_usage_base); in unit_serialize()
147 (void) serialize_item_format(f, "cpu-usage-last", "%" PRIu64, u->cpu_usage_last); in unit_serialize()
150 … (void) serialize_item_format(f, "managed-oom-kill-last", "%" PRIu64, u->managed_oom_kill_last); in unit_serialize()
153 (void) serialize_item_format(f, "oom-kill-last", "%" PRIu64, u->oom_kill_last); in unit_serialize()
156 …(void) serialize_item_format(f, io_accounting_metric_field_base[im], "%" PRIu64, u->io_accounting_… in unit_serialize()
159 …(void) serialize_item_format(f, io_accounting_metric_field_last[im], "%" PRIu64, u->io_accounting_… in unit_serialize()
181 (void) serialize_item_format(f, "ref-uid", UID_FMT, u->ref_uid); in unit_serialize()
183 (void) serialize_item_format(f, "ref-gid", GID_FMT, u->ref_gid); in unit_serialize()
186 …(void) serialize_item_format(f, "invocation-id", SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(u->invoc… in unit_serialize()
188 …(void) serialize_item_format(f, "freezer-state", "%s", freezer_state_to_string(unit_freezer_state(… in unit_serialize()
[all …]
Dmanager-serialize.c70 (void) serialize_item_format(f, field_name, UID_FMT, uid); in manager_serialize_uid_refs_internal()
98 (void) serialize_item_format(f, "current-job-id", "%" PRIu32, m->current_job_id); in manager_serialize()
99 (void) serialize_item_format(f, "n-installed-jobs", "%u", m->n_installed_jobs); in manager_serialize()
100 (void) serialize_item_format(f, "n-failed-jobs", "%u", m->n_failed_jobs); in manager_serialize()
114 (void) serialize_item_format(f, "log-level-override", "%i", log_get_max_level()); in manager_serialize()
165 (void) serialize_item_format(f, "user-lookup", "%i %i", copy0, copy1); in manager_serialize()
Dsocket.c2558 (void) serialize_item_format(f, "n-accepted", "%u", s->n_accepted); in socket_serialize()
2559 (void) serialize_item_format(f, "n-refused", "%u", s->n_refused); in socket_serialize()
2562 (void) serialize_item_format(f, "control-pid", PID_FMT, s->control_pid); in socket_serialize()
2585 (void) serialize_item_format(f, "netlink", "%i %s", copy, t); in socket_serialize()
2587 … (void) serialize_item_format(f, "socket", "%i %i %s", copy, p->address.type, t); in socket_serialize()
2589 (void) serialize_item_format(f, "special", "%i %s", copy, p->path); in socket_serialize()
2591 (void) serialize_item_format(f, "mqueue", "%i %s", copy, p->path); in socket_serialize()
2593 (void) serialize_item_format(f, "ffs", "%i %s", copy, p->path); in socket_serialize()
2596 (void) serialize_item_format(f, "fifo", "%i %s", copy, p->path); in socket_serialize()
Dautomount.c871 (void) serialize_item_format(f, "dev-id", "%lu", (unsigned long) a->dev_id); in automount_serialize()
874 (void) serialize_item_format(f, "token", "%u", PTR_TO_UINT(p)); in automount_serialize()
876 (void) serialize_item_format(f, "expire-token", "%u", PTR_TO_UINT(p)); in automount_serialize()
Dservice.c2702 …(void) serialize_item_format(f, key, "%s %u %s %s", service_exec_command_to_string(id), idx, p, ar… in service_serialize_exec_command()
2720 (void) serialize_item_format(f, "control-pid", PID_FMT, s->control_pid); in service_serialize()
2723 (void) serialize_item_format(f, "main-pid", PID_FMT, s->main_pid); in service_serialize()
2729 (void) serialize_item_format(f, "n-restarts", "%u", s->n_restarts); in service_serialize()
2779 … (void) serialize_item_format(f, "fd-store-fd", "%i \"%s\" %i", copy, c, fs->do_poll); in service_serialize()
2783 … (void) serialize_item_format(f, "main-exec-status-pid", PID_FMT, s->main_exec_status.pid); in service_serialize()
2788 … (void) serialize_item_format(f, "main-exec-status-code", "%i", s->main_exec_status.code); in service_serialize()
2789 … (void) serialize_item_format(f, "main-exec-status-status", "%i", s->main_exec_status.status); in service_serialize()
2797 … (void) serialize_item_format(f, "watchdog-override-usec", USEC_FMT, s->watchdog_override_usec); in service_serialize()
2800 … (void) serialize_item_format(f, "watchdog-original-usec", USEC_FMT, s->watchdog_original_usec); in service_serialize()
Dscope.c481 serialize_item_format(f, "pids", PID_FMT, PTR_TO_PID(pidp)); in scope_serialize()
Ddynamic-user.c633 (void) serialize_item_format(f, "dynamic-user", "%s %i %i", d->name, copy0, copy1); in dynamic_user_serialize()
Dpath.c647 (void) serialize_item_format(f, "path-spec", "%s %i %s", in path_serialize()
Dmount.c1243 (void) serialize_item_format(f, "n-retry-umount", "%u", m->n_retry_umount); in mount_serialize()
1246 (void) serialize_item_format(f, "control-pid", PID_FMT, m->control_pid); in mount_serialize()
Djob.c1149 (void) serialize_item_format(f, "job-id", "%u", j->id); in job_serialize()
Dswap.c987 (void) serialize_item_format(f, "control-pid", PID_FMT, s->control_pid); in swap_serialize()
/systemd-251/src/login/
Dlogind-dbus.c2131 serialize_item_format(f, "WARN_WALL", "%s", one_zero(m->enable_wall_messages)); in update_schedule_file()
2132serialize_item_format(f, "MODE", "%s", handle_action_to_string(m->scheduled_shutdown_action->handl… in update_schedule_file()
2133 serialize_item_format(f, "UID", UID_FMT, m->scheduled_shutdown_uid); in update_schedule_file()
2136 serialize_item_format(f, "TTY", "%s", m->scheduled_shutdown_tty); in update_schedule_file()