Home
last modified time | relevance | path

Searched refs:shares (Results 1 - 2 of 2) sorted by relevance

/third_party/ltp/testcases/kernel/controllers/cpuctl_fj/
H A Drun_cpuctl_test_fj.sh120 [ -f "$CPUCTL/cpu.shares" ] || {
121 tst_resm TFAIL "Err: No cpu.shares."
125 shares=`cat $CPUCTL/cpu.shares`
126 if [ $shares -ne 1024 ]
160 [ -f "$CPUCTL/tmp/cpu.shares" ] || return 1
162 shares=`cat $CPUCTL/tmp/cpu.shares`
163 if [ $shares -ne 1024 ]
192 [ -f "$CPUCTL/tmp/tmp1/cpu.shares" ] || retur
[all...]
/third_party/ltp/testcases/kernel/controllers/libcontrollers/
H A Dlibcontrollers.c51 * This function scans all the shares files under the mountpoint
52 * of the controller and returns the total added shares of all
72 * exclude the shares of default group. FLAG to ensure dir_pointer is non NULL in scan_shares_files()
75 && (strcmp(fullpath, "/dev/cpuctl/cpu.shares") != 0) in scan_shares_files()
76 && (strcmp(dir_pointer->d_name, "cpu.shares") == 0)) { in scan_shares_files()
96 * search all groups recursively and get total shares in scan_shares_files()
179 * Reads shares value from a given shares file and writes them to
186 unsigned int shares; in read_shares_file() local
192 fscanf(fp, "%u", &shares); in read_shares_file()
[all...]

Completed in 1 milliseconds