From 5ea63490a9c8f2df1d5ef204eaa6d05150b28a00 Mon Sep 17 00:00:00 2001 From: Ibrahim Hassan Date: Sun, 23 Oct 2022 20:54:08 +0100 Subject: [PATCH] module/cgroups2: Replaced references to 'lisa' to 'devlib' --- devlib/module/cgroups2.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/devlib/module/cgroups2.py b/devlib/module/cgroups2.py index 0662007..397448e 100644 --- a/devlib/module/cgroups2.py +++ b/devlib/module/cgroups2.py @@ -26,7 +26,7 @@ It also handles the cgroup delegation API of systemd. .. code-block:: python # Necessary Imports - from lisa.target import Target + from devlib import Target from devlib.module.cgroups2 import RequestTree # Connecting to target device. Configure appropriately. @@ -73,8 +73,8 @@ It also handles the cgroup delegation API of systemd. print(CGroup_hierarchy) ''' - └──root/ pids@/sys/fs/cgroup/pids/system.slice/lisa-42c838fe4f0b4f518825c4e312590113.service/root - └──child/ pids@/sys/fs/cgroup/pids/system.slice/lisa-42c838fe4f0b4f518825c4e312590113.service/root/child + └──root/ pids@/sys/fs/cgroup/pids/system.slice/devlib-42c838fe4f0b4f518825c4e312590113.service/root + └──child/ pids@/sys/fs/cgroup/pids/system.slice/devlib-42c838fe4f0b4f518825c4e312590113.service/root/child ''' # Setting up the RequestTree object CGroup hierarchy onto target device @@ -295,7 +295,7 @@ def _request_delegation(target: Target): :rtype: int """ - service_name = quote("lisa-" + str(uuid.uuid4().hex)) + service_name = "devlib-" + str(uuid.uuid4().hex) try: target.execute( @@ -1122,7 +1122,7 @@ class _CGroupV2Root(_CGroupV2): if _is_systemd_online(target=self.target): # Create the leaf CGroup directory - group_name = "lisa-" + str(uuid4().hex) + group_name = "devlib-" + str(uuid4().hex) full_path = self.target.path.join(self.group_path, group_name) self._create_directory(full_path)