Home
last modified time | relevance | path

Searched refs:max_pids (Results 1 – 2 of 2) sorted by relevance

/third_party/ltp/lib/
Dtst_pid.c75 int max_pids, ret; in read_session_pids_limit() local
90 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids); in read_session_pids_limit()
91 tst_resm(TINFO, "Found limit of processes %d (from %s=max)", max_pids, path); in read_session_pids_limit()
93 max_pids = SAFE_STRTOL(max_pid_value, 0, INT_MAX); in read_session_pids_limit()
94 tst_resm(TINFO, "Found limit of processes %d (from %s)", max_pids, path); in read_session_pids_limit()
97 return max_pids; in read_session_pids_limit()
102 int max_pids, uid; in get_session_pids_limit() local
105 max_pids = read_session_pids_limit(CGROUPS_V2_SLICE_FMT, uid, cleanup_fn); in get_session_pids_limit()
106 if (max_pids < 0) in get_session_pids_limit()
107 max_pids = read_session_pids_limit(CGROUPS_V1_SLICE_FMT, uid, in get_session_pids_limit()
[all …]
/third_party/ltp/testcases/kernel/mem/mtest01/
Dmtest01.c46 static int max_pids; variable
115 max_pids = total_free * sstats.mem_unit in setup()
117 pid_list = SAFE_MALLOC(max_pids * sizeof(pid_t)); in setup()
196 } while (pid_cntr < max_pids); in mem_test()