| /external/cronet/base/process/ |
| D | process_linux.cc | 89 struct CGroups { struct 90 // Check for cgroups files. ChromeOS supports these by default. It creates 102 // UCLAMP settings for the foreground cgroups. 106 CGroups() { in CGroups() argument 140 return CGroups::Get().foreground_file; in GetForegroundCgroupFile() 147 static CGroups& Get() { in Get() argument 148 static auto& groups = *new CGroups; in Get() 155 // system supports the chrome cgroups. Will block if this is the first call 158 return FeatureList::IsEnabled(kOneGroupPerRenderer) && CGroups::Get().enabled; in OneGroupPerRendererEnabled() 186 if (CGroups::Get().enabled) in CanBackgroundProcesses() [all …]
|
| /external/ltp/testcases/kernel/controllers/ |
| D | test_controllers.sh | 40 if [ -f /proc/cgroups ] 42 CPU_CONTROLLER=`grep -w cpu /proc/cgroups | cut -f1`; 43 CPU_CONTROLLER_VALUE=`grep -w cpu /proc/cgroups | cut -f4`; 44 MEM_CONTROLLER=`grep -w memory /proc/cgroups | cut -f1`; 45 MEM_CONTROLLER_VALUE=`grep -w memory /proc/cgroups | cut -f4`; 46 IOTHROTTLE_CONTROLLER=`grep -w blockio /proc/cgroups | cut -f1`; 47 IOTHROTTLE_CONTROLLER_VALUE=`grep -w blockio /proc/cgroups | cut -f4`; 48 FREEZER=`grep -w freezer /proc/cgroups | cut -f1`; 49 FREEZER_VALUE=`grep -w freezer /proc/cgroups | cut -f4`; 50 CPUACCOUNT_CONTROLLER=`grep -w cpuacct /proc/cgroups | cut -f1` [all …]
|
| D | testplan.txt | 14 cgroups/cgroups.txt, cgroups/memory.txt and cgroups/cpusets.txt in kernel
|
| /external/rust/crates/num_cpus/.github/workflows/ |
| D | ci.yml | 22 - test-cgroups 153 test-cgroups: 160 docker build -f ci/cgroups/Dockerfile -t num-cpus-cgroups . 161 # Test without cgroups 162 docker run -e NUM_CPUS_TEST_GET=2 num-cpus-cgroups 164 docker run --cpus="1" -e NUM_CPUS_TEST_GET=1 num-cpus-cgroups 166 docker run --cpus="1.5" -e NUM_CPUS_TEST_GET=2 num-cpus-cgroups
|
| /external/libchrome/base/process/ |
| D | process_linux.cc | 44 struct CGroups { struct 45 // Check for cgroups files. ChromeOS supports these by default. It creates 54 CGroups() { in CGroups() argument 68 static CGroups& Get() { in Get() argument 69 static auto& groups = *new CGroups; in Get() 90 if (CGroups::Get().enabled) in CanBackgroundProcesses() 102 if (CGroups::Get().enabled) { in IsProcessBackgrounded() 121 if (CGroups::Get().enabled) { in SetProcessBackgrounded() 123 const base::FilePath file = background ? CGroups::Get().background_file in SetProcessBackgrounded() 124 : CGroups::Get().foreground_file; in SetProcessBackgrounded()
|
| /external/ltp/testcases/kernel/controllers/memcg/stress/ |
| D | memcg_stress_test.sh | 53 # $1 Number of cgroups 59 local cgroups="$1" 65 tst_res TINFO "Testing $cgroups cgroups, using $mem_size MB, interval $interval" 67 tst_res TINFO "Starting cgroups" 68 for i in $(seq 0 $(($cgroups-1))); do 79 tst_res TINFO "Testing cgroups for ${timeout}s"
|
| /external/chromium-trace/catapult/systrace/systrace/tracing_agents/ |
| D | android_cgroup_agent.py | 37 def parse_proc_cgroups(cgroups, subsys): argument 38 for line in cgroups.split('\n'): 85 cgroups = self._device_utils.ReadFile('/proc/cgroups') 88 root_id = parse_proc_cgroups(cgroups, CGROUP_SUBSYS) 97 return cgroups + header + '\n'.join(data) + '\n'
|
| /external/ltp/include/ |
| D | tst_cgroup.h | 10 * The LTP CGroups API tries to present a consistent interface to the 15 * it is not possible unless no CGroups are currently active and 16 * almost all of our users will have CGroups active. Even if 26 * existing system-manager-created CGroups have been omitted. 59 * The test author may create child CGroups within the test CGroup 86 /* CGroups Kernel API version */ 116 /* Search the system for mounted cgroups and available 142 /* Tear down any CGroups created by calls to tst_cg_require */
|
| /external/linux-kselftest/tools/testing/selftests/cgroup/ |
| D | test_kmem.c | 157 * The test creates and destroys a large number of cgroups. In each cgroup it 160 * the total size of the cgroups should be roughly equal to 304 * This test sequentionally creates 30 child cgroups, allocates some 306 * that the number of dying cgroups on the parent level is 0. 336 * Reclaiming cgroups might take some time, in test_kmem_dead_cgroups() 350 * This test creates a sub-tree with 1000 memory cgroups.
|
| /external/ltp/testcases/kernel/controllers/cgroup_fj/ |
| D | cgroup_fj_function.sh | 33 # mv'ing cgroups is not available in cgroup2 55 # mv'ing cgroups is not available in cgroup2 80 # mv'ing cgroups is not available in cgroup2 144 # mv'ing cgroups is not available in cgroup2
|
| /external/ltp/lib/ |
| D | tst_cgroup.c | 520 * For CGroups V2 this is very simple as there is only one 679 tst_res(TINFO, "Mounted V2 CGroups on %s", mnt_path); in cgroup_mount_v2() 685 tst_res(TINFO | TERRNO, "Could not mount V2 CGroups on %s", mnt_path); in cgroup_mount_v2() 783 * of cgroups. If we are on V2 we first need to enable the controller 789 * to distribute these settings to the test cgroups. This means the 928 /* Maybe remove CGroups used during testing and clear our data 930 * This will never remove CGroups we did not create to allow tests to 935 * unique per test CGroups. 946 * The ltp/drain CGroup is required for cleaning up test CGroups when 947 * we can not move them to the root CGroup. CGroups can only be [all …]
|
| /external/bcc/docs/ |
| D | special_filtering.md | 7 ## Filtering by cgroups 23 of the cgroups whose id, returned by `bpf_get_current_cgroup_id()`, is in the 71 map, bcc tools will display results from this shell. Cgroups can be added and
|
| /external/ltp/testcases/kernel/controllers/cgroup_xattr/ |
| D | cgroup_xattr.c | 150 if (access("/proc/cgroups", F_OK) == -1) in setup() 151 tst_brkm(TCONF, NULL, "Kernel doesn't support cgroups"); in setup() 216 * Kernels 3.7 can crash while unmounting cgroups with xattr, in cleanup() 247 FILE *fd = fopen("/proc/cgroups", "r"); in mount_cgroup() 249 tst_brkm(TBROK, cleanup, "Failed to read /proc/cgroups"); in mount_cgroup() 261 tst_brkm(TBROK, cleanup, "Can't parse /proc/cgroups"); in mount_cgroup()
|
| /external/ltp/testcases/kernel/controllers/freezer/ |
| D | run_freezer.sh | 79 tst_resm TINFO "Kernel does not support cgroups. Skipping." 84 if [ ! -f /proc/cgroups ]; then 89 if [ "$(grep -w freezer /proc/cgroups | cut -f1)" != "freezer" ]; then
|
| D | README | 15 freeze tasks in cgroups before doing a suspend. 34 manually unfreeze cgroups.
|
| /external/ltp/lib/newlib_tests/ |
| D | tst_cgroup01.c | 11 {"v", &only_mount_v1, "-v\tOnly try to mount CGroups V1"}, 12 {"n", &no_cleanup, "-n\tLeave CGroups created by test"},
|
| D | tst_cgroup02.c | 12 {"v", &only_mount_v1, "-v\tOnly try to mount CGroups V1"}, 13 {"n", &no_cleanup, "-n\tLeave CGroups created by test"},
|
| /external/AFLplusplus/utils/asan_cgroups/ |
| D | limit_memory.sh | 3 # american fuzzy lop++ - limit memory using cgroups 21 # to be limited on Linux systems using cgroups, instead of the traditional 78 This tool configures cgroups-based memory limits for a fuzzing job to simplify
|
| /external/ltp/testcases/kernel/controllers/cgroup/ |
| D | cgroup_regression_test.sh | 19 if [ ! -f /proc/cgroups ]; then 162 if ! grep -q -w "cpu" /proc/cgroups; then 201 lines=`cat /proc/cgroups | wc -l` 329 grep -q -w "cpu" /proc/cgroups 345 local lines=`cat /proc/cgroups | wc -l` 355 subsys=`tail -n 1 /proc/cgroups | awk '{ print $1 }'`
|
| /external/rust/crates/num_cpus/src/ |
| D | linux.rs | 103 /// Cached CPUs calculated from cgroups. 356 static FIXTURES_PROC: &'static str = "fixtures/cgroups/proc/cgroups"; 358 static FIXTURES_CGROUPS: &'static str = "fixtures/cgroups/cgroups"; 481 static FIXTURES_PROC: &'static str = "fixtures/cgroups2/proc/cgroups"; 483 static FIXTURES_CGROUPS: &'static str = "fixtures/cgroups2/cgroups";
|
| /external/bcc/man/man8/ |
| D | capable.8 | 34 Trace cgroups in this BPF map only (filtered in-kernel). 51 Trace capability checks in a set of cgroups only (see special_filtering.md
|
| D | tcptracer.8 | 33 Trace cgroups in this BPF map only (filtered in-kernel). 61 Trace a set of cgroups only (see special_filtering.md from bcc sources for more details):
|
| D | tcpaccept.8 | 44 Trace cgroups in this BPF map only (filtered in-kernel). 74 Trace a set of cgroups only (see special_filtering.md from bcc sources for more details):
|
| D | opensnoop.8 | 60 Trace cgroups in this BPF map only (filtered in-kernel). 106 Trace a set of cgroups only (see special_filtering.md from bcc sources for more details):
|
| /external/rust/crates/num_cpus/ |
| D | CHANGELOG.md | 11 - add support for cgroups v2 24 - add Linux cgroups support when calling `get()`.
|