Lines Matching refs:v

194                 uint64_t v;  in unit_serialize()  local
196 r = unit_get_ip_accounting(u, m, &v); in unit_serialize()
198 … (void) serialize_item_format(f, ip_accounting_metric_field[m], "%" PRIu64, v); in unit_serialize()
241 #define MATCH_DESERIALIZE(key, l, v, parse_func, target) \ argument
245 int _deserialize_r = parse_func(v); \
248 … "Failed to parse \"%s=%s\", ignoring.", l, v); \
255 #define MATCH_DESERIALIZE_IMMEDIATE(key, l, v, parse_func, target) \ argument
259 int _deserialize_r = parse_func(v, &target); \
262 "Failed to parse \"%s=%s\", ignoring", l, v); \
276 char *l, *v; in unit_deserialize() local
294 v = l+k+1; in unit_deserialize()
296 v = l+k; in unit_deserialize()
299 if (v[0] == '\0') { in unit_deserialize()
305 …_warning(u, "Update from too old systemd versions are unsupported, cannot deserialize job: %s", v); in unit_deserialize()
308 (void) deserialize_dual_timestamp(v, &u->state_change_timestamp); in unit_deserialize()
311 (void) deserialize_dual_timestamp(v, &u->inactive_exit_timestamp); in unit_deserialize()
314 (void) deserialize_dual_timestamp(v, &u->active_enter_timestamp); in unit_deserialize()
317 (void) deserialize_dual_timestamp(v, &u->active_exit_timestamp); in unit_deserialize()
320 (void) deserialize_dual_timestamp(v, &u->inactive_enter_timestamp); in unit_deserialize()
323 (void) deserialize_dual_timestamp(v, &u->condition_timestamp); in unit_deserialize()
326 (void) deserialize_dual_timestamp(v, &u->assert_timestamp); in unit_deserialize()
329 … } else if (MATCH_DESERIALIZE("condition-result", l, v, parse_boolean, u->condition_result)) in unit_deserialize()
332 else if (MATCH_DESERIALIZE("assert-result", l, v, parse_boolean, u->assert_result)) in unit_deserialize()
335 else if (MATCH_DESERIALIZE("transient", l, v, parse_boolean, u->transient)) in unit_deserialize()
338 else if (MATCH_DESERIALIZE("in-audit", l, v, parse_boolean, u->in_audit)) in unit_deserialize()
341 …else if (MATCH_DESERIALIZE("exported-invocation-id", l, v, parse_boolean, u->exported_invocation_i… in unit_deserialize()
344 …else if (MATCH_DESERIALIZE("exported-log-level-max", l, v, parse_boolean, u->exported_log_level_ma… in unit_deserialize()
347 …else if (MATCH_DESERIALIZE("exported-log-extra-fields", l, v, parse_boolean, u->exported_log_extra… in unit_deserialize()
350 …else if (MATCH_DESERIALIZE("exported-log-rate-limit-interval", l, v, parse_boolean, u->exported_lo… in unit_deserialize()
353 …else if (MATCH_DESERIALIZE("exported-log-rate-limit-burst", l, v, parse_boolean, u->exported_log_r… in unit_deserialize()
356 … else if (MATCH_DESERIALIZE_IMMEDIATE("cpu-usage-base", l, v, safe_atou64, u->cpu_usage_base) || in unit_deserialize()
357 … MATCH_DESERIALIZE_IMMEDIATE("cpuacct-usage-base", l, v, safe_atou64, u->cpu_usage_base)) in unit_deserialize()
360 … else if (MATCH_DESERIALIZE_IMMEDIATE("cpu-usage-last", l, v, safe_atou64, u->cpu_usage_last)) in unit_deserialize()
363 …else if (MATCH_DESERIALIZE_IMMEDIATE("managed-oom-kill-last", l, v, safe_atou64, u->managed_oom_ki… in unit_deserialize()
366 … else if (MATCH_DESERIALIZE_IMMEDIATE("oom-kill-last", l, v, safe_atou64, u->oom_kill_last)) in unit_deserialize()
370 r = unit_set_cgroup_path(u, v); in unit_deserialize()
372 … log_unit_debug_errno(u, r, "Failed to set cgroup path %s, ignoring: %m", v); in unit_deserialize()
379 … } else if (MATCH_DESERIALIZE("cgroup-realized", l, v, parse_boolean, u->cgroup_realized)) in unit_deserialize()
382 …else if (MATCH_DESERIALIZE_IMMEDIATE("cgroup-realized-mask", l, v, cg_mask_from_string, u->cgroup_… in unit_deserialize()
385 …else if (MATCH_DESERIALIZE_IMMEDIATE("cgroup-enabled-mask", l, v, cg_mask_from_string, u->cgroup_e… in unit_deserialize()
388 …else if (MATCH_DESERIALIZE_IMMEDIATE("cgroup-invalidated-mask", l, v, cg_mask_from_string, u->cgro… in unit_deserialize()
394 if (safe_atoi(v, &fd) < 0 || fd < 0 || !fdset_contains(fds, fd)) in unit_deserialize()
395 log_unit_debug(u, "Failed to parse %s value: %s, ignoring.", l, v); in unit_deserialize()
407 … (void) bpf_program_deserialize_attachment(v, fds, &u->ip_bpf_ingress_installed); in unit_deserialize()
410 … (void) bpf_program_deserialize_attachment(v, fds, &u->ip_bpf_egress_installed); in unit_deserialize()
413 … (void) bpf_program_deserialize_attachment(v, fds, &u->bpf_device_control_installed); in unit_deserialize()
417 … (void) bpf_program_deserialize_attachment_set(v, fds, &u->ip_bpf_custom_ingress_installed); in unit_deserialize()
420 … (void) bpf_program_deserialize_attachment_set(v, fds, &u->ip_bpf_custom_egress_installed); in unit_deserialize()
426 if (safe_atoi(v, &fd) < 0 || fd < 0 || !fdset_contains(fds, fd)) { in unit_deserialize()
427 … log_unit_debug(u, "Failed to parse restrict-ifaces-bpf-fd value: %s", v); in unit_deserialize()
441 r = parse_uid(v, &uid); in unit_deserialize()
443 log_unit_debug(u, "Failed to parse \"%s=%s\", ignoring.", l, v); in unit_deserialize()
451 r = parse_gid(v, &gid); in unit_deserialize()
453 log_unit_debug(u, "Failed to parse \"%s=%s\", ignoring.", l, v); in unit_deserialize()
459 r = strv_extend(&u->deserialized_refs, v); in unit_deserialize()
467 r = sd_id128_from_string(v, &id); in unit_deserialize()
469 log_unit_debug(u, "Failed to parse \"%s=%s\", ignoring.", l, v); in unit_deserialize()
478 … } else if (MATCH_DESERIALIZE("freezer-state", l, v, freezer_state_from_string, u->freezer_state)) in unit_deserialize()
482 r = deserialize_markers(u, v); in unit_deserialize()
484 … log_unit_debug_errno(u, r, "Failed to deserialize \"%s=%s\", ignoring: %m", l, v); in unit_deserialize()
493 r = safe_atou64(v, &c); in unit_deserialize()
495 … log_unit_debug(u, "Failed to parse IP accounting value %s, ignoring.", v); in unit_deserialize()
505 r = safe_atou64(v, &c); in unit_deserialize()
507 … log_unit_debug(u, "Failed to parse IO accounting base value %s, ignoring.", v); in unit_deserialize()
517 r = safe_atou64(v, &c); in unit_deserialize()
519 … log_unit_debug(u, "Failed to parse IO accounting last value %s, ignoring.", v); in unit_deserialize()
525 r = exec_runtime_deserialize_compat(u, l, v, fds); in unit_deserialize()
534 r = UNIT_VTABLE(u)->deserialize_item(u, l, v, fds); in unit_deserialize()