Home
last modified time | relevance | path

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

1234

/systemd-251/test/units/
Dtestsuite-38.sh106 grep -q "frozen $2" /sys/fs/cgroup/system.slice/"$1"/cgroup.events
218 local slice="bar.slice"
221 systemd-run --unit "$unit" --slice "$slice" sleep 3600 >/dev/null 2>&1
226 systemctl freeze "$slice"
227 check_freezer_state "${slice}" "frozen"
229 grep -q "frozen 1" /sys/fs/cgroup/"${slice}"/cgroup.events
230 grep -q "frozen 1" /sys/fs/cgroup/"${slice}"/"${unit}"/cgroup.events
234 systemctl thaw "$slice"
236 check_freezer_state "${slice}" "running"
237 grep -q "frozen 0" /sys/fs/cgroup/"${slice}"/cgroup.events
[all …]
Dtestsuite-19.sh8 test -w /sys/fs/cgroup/system.slice/test0.service/ -a \
9 -w /sys/fs/cgroup/system.slice/test0.service/cgroup.procs -a \
10 -w /sys/fs/cgroup/system.slice/test0.service/cgroup.subtree_control
13 grep -q memory /sys/fs/cgroup/system.slice/test1.service/cgroup.controllers
16 grep -q pids /sys/fs/cgroup/system.slice/test2.service/cgroup.controllers
19 grep -qv io /sys/fs/cgroup/system.slice/cgroup.controllers
23 …grep -q io /sys/fs/cgroup/system.slice/system-foo.slice/system-foo-bar.slice/system-foo-bar-baz.sl…
33 grep -qv io /sys/fs/cgroup/system.slice/cgroup.controllers
/systemd-251/test/journal-data/
Djournal-1.txt8 0::/user.slice/user-1002.slice/user@1002.service/gnome-terminal-server.service
13 0::/user.slice/user-1002.slice/user@1002.service/gnome-terminal-server.service
/systemd-251/src/basic/
Dunit-name.c782 int slice_build_parent_slice(const char *slice, char **ret) { in slice_build_parent_slice() argument
787 assert(slice); in slice_build_parent_slice()
790 if (!slice_name_is_valid(slice)) in slice_build_parent_slice()
793 if (streq(slice, SPECIAL_ROOT_SLICE)) { in slice_build_parent_slice()
798 s = strdup(slice); in slice_build_parent_slice()
815 int slice_build_subslice(const char *slice, const char *name, char **ret) { in slice_build_subslice() argument
818 assert(slice); in slice_build_subslice()
822 if (!slice_name_is_valid(slice)) in slice_build_subslice()
828 if (streq(slice, SPECIAL_ROOT_SLICE)) in slice_build_subslice()
833 assert_se(e = endswith(slice, ".slice")); in slice_build_subslice()
[all …]
Dcgroup-util.c1414 _cleanup_free_ char *slice = NULL; in cg_path_get_owner_uid() local
1420 r = cg_path_get_slice(path, &slice); in cg_path_get_owner_uid()
1424 start = startswith(slice, "user-"); in cg_path_get_owner_uid()
1449 int cg_path_get_slice(const char *p, char **slice) { in cg_path_get_slice() argument
1453 assert(slice); in cg_path_get_slice()
1473 *slice = s; in cg_path_get_slice()
1477 return cg_path_decode_unit(e, slice); in cg_path_get_slice()
1485 int cg_pid_get_slice(pid_t pid, char **slice) { in cg_pid_get_slice() argument
1489 assert(slice); in cg_pid_get_slice()
1495 return cg_path_get_slice(cgroup, slice); in cg_pid_get_slice()
[all …]
Dcgroup-util.h265 int cg_path_get_slice(const char *path, char **slice);
266 int cg_path_get_user_slice(const char *path, char **slice);
276 int cg_pid_get_slice(pid_t pid, char **slice);
277 int cg_pid_get_user_slice(pid_t pid, char **slice);
Dunit-name.h65 int slice_build_parent_slice(const char *slice, char **ret);
66 int slice_build_subslice(const char *slice, const char *name, char **subslice);
/systemd-251/units/
Dslices.target13 Wants=-.slice system.slice
14 After=-.slice system.slice
Dsystemd-machined.service.in15 Wants=machine.slice
16 After=machine.slice
/systemd-251/src/core/
Dunit-printf.c119 const Unit *u = ASSERT_PTR(userdata), *slice; in specifier_cgroup_slice() local
124 slice = UNIT_GET_SLICE(u); in specifier_cgroup_slice()
125 if (slice) { in specifier_cgroup_slice()
126 if (slice->cgroup_path) in specifier_cgroup_slice()
127 n = strdup(slice->cgroup_path); in specifier_cgroup_slice()
129 n = unit_default_cgroup_path(slice); in specifier_cgroup_slice()
Dcgroup.c1855 Unit *slice; in unit_get_siblings_mask() local
1862 slice = UNIT_GET_SLICE(u); in unit_get_siblings_mask()
1863 if (slice) in unit_get_siblings_mask()
1864 return unit_get_members_mask(slice); in unit_get_siblings_mask()
1881 Unit *slice; in unit_get_ancestor_disable_mask() local
1889 slice = UNIT_GET_SLICE(u); in unit_get_ancestor_disable_mask()
1890 if (slice) in unit_get_ancestor_disable_mask()
1891 mask |= unit_get_ancestor_disable_mask(slice); in unit_get_ancestor_disable_mask()
1933 Unit *slice; in unit_invalidate_cgroup_members_masks() local
1940 slice = UNIT_GET_SLICE(u); in unit_invalidate_cgroup_members_masks()
[all …]
Dmeson.build46 dbus-slice.c
47 dbus-slice.h
114 slice.c
115 slice.h
/systemd-251/src/systemd/
Dsd-login.h70 int sd_pid_get_slice(pid_t pid, char **slice);
73 int sd_pid_get_user_slice(pid_t pid, char **slice);
101 int sd_peer_get_slice(int fd, char **slice);
105 int sd_peer_get_user_slice(int fd, char **slice);
/systemd-251/src/nspawn/
Dnspawn-register.c111 const char *slice, in register_machine() argument
164 if (!isempty(slice)) { in register_machine()
165 r = sd_bus_message_append(m, "(sv)", "Slice", "s", slice); in register_machine()
225 const char *slice, in allocate_scope() argument
270 "Slice", "s", isempty(slice) ? SPECIAL_MACHINE_SLICE : slice); in allocate_scope()
Dnspawn-register.h10 …d, const char *directory, sd_id128_t uuid, int local_ifindex, const char *slice, CustomMount *moun…
13 int allocate_scope(sd_bus *bus, const char *machine_name, pid_t pid, const char *slice, CustomMount…
/systemd-251/units/user/
Dmeson.build4 'app.slice',
5 'background.slice',
14 'session.slice',
Dsystemd-exit.service19 # Place into the root slice to not keep another slice unit alive
20 Slice=-.slice
/systemd-251/src/libsystemd/sd-login/
Dsd-login.c82 _public_ int sd_pid_get_slice(pid_t pid, char **slice) { in sd_pid_get_slice() argument
86 assert_return(slice, -EINVAL); in sd_pid_get_slice()
88 r = cg_pid_get_slice(pid, slice); in sd_pid_get_slice()
92 _public_ int sd_pid_get_user_slice(pid_t pid, char **slice) { in sd_pid_get_user_slice() argument
96 assert_return(slice, -EINVAL); in sd_pid_get_user_slice()
98 r = cg_pid_get_user_slice(pid, slice); in sd_pid_get_user_slice()
208 _public_ int sd_peer_get_slice(int fd, char **slice) { in sd_peer_get_slice() argument
213 assert_return(slice, -EINVAL); in sd_peer_get_slice()
219 return cg_pid_get_slice(ucred.pid, slice); in sd_peer_get_slice()
222 _public_ int sd_peer_get_user_slice(int fd, char **slice) { in sd_peer_get_user_slice() argument
[all …]
/systemd-251/shell-completion/zsh/
D_systemd-run13 __systemctl list-units --all -t slice \
69 '--slice=[Run in the specified slice]:slices:__systemd-run_slices' \
70 '--slice-inherit[Run in the inherited slice]' \
D_systemd-nspawn27 …{--slice=,-S+}'[Make the container part of the specified slice, instead of the default machine.sli…
/systemd-251/src/login/
Dlogind-user.c75 r = slice_build_subslice(SPECIAL_USER_SLICE, lu, &u->slice); in user_new()
91 r = hashmap_put(m->user_units, u->slice, u); in user_new()
123 if (u->slice) in user_free()
124 hashmap_remove_value(u->manager->user_units, u->slice, u); in user_free()
134 u->slice = mfree(u->slice); in user_free()
405 r = sd_bus_message_append(m, "sb", u->slice, true); in user_update_slice()
634 assert(u->slice); in user_unit_active()
636 FOREACH_STRING(i, u->service, u->runtime_dir_service, u->slice) { in user_unit_active()
753 return manager_kill_unit(u->manager, u->slice, KILL_ALL, signo, NULL); in user_kill()
/systemd-251/docs/
DCGROUP_DELEGATION.md162 3. �� The `.slice` unit type. Units of this type do not directly contain any
169 be moved around though, i.e. assigned to a different slice if needed.
171 The naming of slice units directly maps to the cgroup tree path. This is not
172 the case for service and scope units however. A slice named `foo-bar-baz.slice`
173 maps to a cgroup `/foo.slice/foo-bar.slice/foo-bar-baz.slice/`. A service
174 `quux.service` which is attached to the slice `foo-bar-baz.slice` maps to the
175 cgroup `/foo.slice/foo-bar.slice/foo-bar-baz.slice/quux.service/`.
177 By default systemd sets up four slice units:
179 1. `-.slice` is the root slice. i.e. the parent of everything else. On the host
182 2. `system.slice` is where system services are by default placed, unless
[all …]
DDESKTOP_ENVIRONMENTS.md35 * `session.slice`: Contains only processes essential to run the user's graphical session
36 * `app.slice`: Contains all normal applications that the user is running
37 * `background.slice`: Useful for low-priority background tasks
46 TODO: Will there be a default to place units into e.g. `app.slice` by default
47 rather than the root slice?
81 This could be `app-<launcher>-<ApplicationID>-<RANDOM>.slice`.
/systemd-251/shell-completion/bash/
Dsystemd-run24 __get_slice_units () { __systemctl $1 list-units --all -t slice \
34 …local OPTS='--no-ask-password --scope -u --unit -p --property --description --slice --slice-inherit
45 … --unit -p --property --slice --description --service-type --uid --gid --nice --working-directory
66 --slice)
/systemd-251/test/fuzz/fuzz-unit-file/
Dsystemd-machined.service15 Wants=machine.slice
16 After=machine.slice

1234