Home
last modified time | relevance | path

Searched refs:sys_file (Results 1 – 4 of 4) sorted by relevance

/third_party/ltp/testcases/commands/sysctl/
Dsysctl02.sh25 sys_file="/proc/sys/fs/file-max"
31 orig_value=$(cat "$sys_file")
47 local old_value="$(cat $sys_file)"
51 local new_value="$(cat $sys_file)"
54 tst_res TPASS "$sys_file keeps old value ($old_value)"
56 tst_res TFAIL "$sys_file overflows and is set to $new_value"
69 tst_res TFAIL "$sys_file is set 0 and trigger a KASAN error"
71 tst_res TPASS "$sys_file is set 0 and doesn't trigger a KASAN error"
/third_party/ltp/testcases/kernel/mem/include/
Dmem.h74 void set_sys_tune(char *sys_file, long tune, int check);
75 long get_sys_tune(char *sys_file);
/third_party/ltp/testcases/kernel/mem/lib/
Dmem.c703 void set_sys_tune(char *sys_file, long tune, int check) in set_sys_tune() argument
708 tst_res(TINFO, "set %s to %ld", sys_file, tune); in set_sys_tune()
710 snprintf(path, BUFSIZ, PATH_SYSVM "%s", sys_file); in set_sys_tune()
714 val = get_sys_tune(sys_file); in set_sys_tune()
717 sys_file, val, tune); in set_sys_tune()
721 long get_sys_tune(char *sys_file) in get_sys_tune() argument
726 snprintf(path, BUFSIZ, PATH_SYSVM "%s", sys_file); in get_sys_tune()
/third_party/python/Lib/distutils/
Ddist.py355 sys_file = os.path.join(sys_dir, "distutils.cfg")
356 if os.path.isfile(sys_file):
357 files.append(sys_file)