Home
last modified time | relevance | path

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

/linux/tools/sched_ext/
H A Dscx_userland.c98 static int pid_max; variable
117 int pid_max; in get_pid_max() local
124 if (fscanf(fp, "%d", &pid_max) != 1) { in get_pid_max()
131 return pid_max; in get_pid_max()
136 pid_max = get_pid_max(); in init_tasks()
137 if (pid_max < 0) in init_tasks()
138 return pid_max; in init_tasks()
140 tasks = calloc(pid_max, sizeof(*tasks)); in init_tasks()
170 if (pid >= pid_max) in get_enqueued_task()
383 memset(tasks, 0, pid_max * sizeof(*tasks)); in bootstrap()
/linux/kernel/
H A Dpid.c68 * first use and are never deallocated. This way a low pid_max
79 .pid_max = PID_MAX_DEFAULT,
164 int pid_max[MAX_PID_NS_LEVEL + 1] = {}; in alloc_pid()
206 * This stores found pid_max to make sure the used value is the same should in alloc_pid()
210 pid_max[ns->level - i] = READ_ONCE(tmp->pid_max); in alloc_pid()
216 if (tid < 1 || tid >= pid_max[ns->level - i]) in alloc_pid()
266 pid_max[ns->level - i], GFP_ATOMIC); in alloc_pid()
785 .procname = "pid_max", in register_pidns_sysctls()
786 .data = &init_pid_ns.pid_max,
192 int pid_max = READ_ONCE(tmp->pid_max); alloc_pid() local
[all...]
H A Dpid_namespace.c110 ns->pid_max = PID_MAX_LIMIT; in create_pid_namespace()
299 tmp.extra2 = &pid_ns->pid_max; in pid_ns_ctl_handler()
314 .extra2 = &init_pid_ns.pid_max,
/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
/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.c452 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()