Home
last modified time | relevance | path

Searched refs:pid_max (Results 1 – 10 of 10) sorted by relevance

/linux/tools/sched_ext/
H A Dscx_userland.c39 "Try to reduce `sysctl kernel.pid_max` if this program triggers OOMs.\n"
91 * initialization, based on /proc/sys/kernel/pid_max, to avoid having to
98 static int pid_max; variable
117 int pid_max; in get_pid_max() local
119 fp = fopen("/proc/sys/kernel/pid_max", "r"); in get_pid_max()
121 fprintf(stderr, "Error opening /proc/sys/kernel/pid_max\n"); in get_pid_max()
124 if (fscanf(fp, "%d", &pid_max) != 1) { in get_pid_max()
125 fprintf(stderr, "Error reading from /proc/sys/kernel/pid_max\n"); in get_pid_max()
131 return pid_max; in get_pid_max()
136 pid_max in init_tasks()
[all...]
/linux/kernel/
H A Dpid.c79 .pid_max = PID_MAX_DEFAULT,
163 int pid_max[MAX_PID_NS_LEVEL + 1] = {}; in alloc_pid() local
209 pid_max[ns->level - i] = READ_ONCE(tmp->pid_max); in alloc_pid()
215 if (tid < 1 || tid >= pid_max[ns->level - i]) in alloc_pid()
263 pid_max[ns->level - i], GFP_ATOMIC); in alloc_pid()
793 .data = &init_pid_ns.pid_max,
821 tbl->data = &pidns->pid_max; in register_pidns_sysctls()
822 pidns->pid_max = min(pid_max_max, max_t(int, pidns->pid_max, in register_pidns_sysctls()
854 init_pid_ns.pid_max = min(pid_max_max, max_t(int, init_pid_ns.pid_max, in pid_idr_init()
858 pr_info("pid_max: default: %u minimum: %u\n", init_pid_ns.pid_max, pid_max_min); in pid_idr_init()
/linux/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c148 int pid_max = 0; in main() local
166 fscanf(f, "%d", &pid_max); in main()
168 ksft_print_msg("/proc/sys/kernel/pid_max %d\n", pid_max); in main()
250 set_tid[0] = pid_max; in main()
/linux/tools/testing/selftests/pid_namespace/
H A D.gitignore1 pid_max
H A DMakefile4 TEST_GEN_PROGS = regression_enomem pid_max pidns_init_via_setns
/linux/tools/testing/kunit/test_data/
H A Dtest_is_test_passed-no_tests_run_no_header.log19 pid_max: default: 32768 minimum: 301
H A Dtest_output_isolated_correctly.log44 pid_max: default: 32768 minimum: 301
/linux/kernel/trace/
H A Dpid_list.c424 WARN_ON_ONCE(init_pid_ns.pid_max > (1 << 30)); in trace_pid_list_alloc()
H A Dtrace_sched_switch.c446 tgid_map_max = init_pid_ns.pid_max; in trace_alloc_tgid_map()
/linux/tools/perf/
H A Dbuiltin-sched.c476 static int pid_max; in register_pid()
485 if (sysctl__read_int("kernel/pid_max", &pid_max) < 0) in register_pid()
486 pid_max = MAX_PID; in register_pid()
487 sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *)); in register_pid()
491 if (pid >= (unsigned long)pid_max) { in register_pid()
497 while (pid >= (unsigned long)pid_max) in print_task_traces()
498 sched->pid_to_task[pid_max++] = NULL; in print_task_traces()
452 static int pid_max; register_pid() local