Searched refs:pid_max (Results 1 – 9 of 9) sorted by relevance
| /linux/tools/sched_ext/ |
| H A D | scx_userland.c | 39 "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/tools/testing/selftests/clone3/ |
| H A D | clone3_set_tid.c | 148 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 | .gitignore | 1 pid_max
|
| H A D | Makefile | 4 TEST_GEN_PROGS = regression_enomem pid_max pidns_init_via_setns
|
| /linux/tools/testing/kunit/test_data/ |
| H A D | test_is_test_passed-no_tests_run_no_header.log | 19 pid_max: default: 32768 minimum: 301
|
| H A D | test_output_isolated_correctly.log | 44 pid_max: default: 32768 minimum: 301
|
| /linux/kernel/trace/ |
| H A D | pid_list.c | 424 WARN_ON_ONCE(init_pid_ns.pid_max > (1 << 30)); in trace_pid_list_alloc()
|
| H A D | trace_sched_switch.c | 446 tgid_map_max = init_pid_ns.pid_max; in trace_alloc_tgid_map()
|
| /linux/tools/perf/ |
| H A D | builtin-sched.c | 452 static int pid_max; in register_pid() local 455 if (sysctl__read_int("kernel/pid_max", &pid_max) < 0) in register_pid() 456 pid_max = MAX_PID; in register_pid() 457 BUG_ON((sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *))) == NULL); in register_pid() 459 if (pid >= (unsigned long)pid_max) { in register_pid() 462 while (pid >= (unsigned long)pid_max) in register_pid() 463 sched->pid_to_task[pid_max++] = NULL; in register_pid()
|