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.c99 static int pid_max; variable
118 int pid_max; in get_pid_max() local
125 if (fscanf(fp, "%d", &pid_max) != 1) { in get_pid_max()
132 return pid_max; in get_pid_max()
137 pid_max = get_pid_max(); in init_tasks()
138 if (pid_max < 0) in init_tasks()
139 return pid_max; in init_tasks()
141 tasks = calloc(pid_max, sizeof(*tasks)); in init_tasks()
171 if (pid >= pid_max) in get_enqueued_task()
384 memset(tasks, 0, pid_max * sizeof(*tasks)); in bootstrap()
/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()
772 .data = &init_pid_ns.pid_max,
792 tbl->data = &pidns->pid_max; in register_pidns_sysctls()
793 pidns->pid_max = min(pid_max_max, max_t(int, pidns->pid_max, in register_pidns_sysctls()
825 init_pid_ns.pid_max = min(pid_max_max, max_t(int, init_pid_ns.pid_max, in pid_idr_init()
829 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.c607 static int pid_max; in get_cpu_usage_nsec_self()
616 if (sysctl__read_int("kernel/pid_max", &pid_max) < 0)
617 pid_max = MAX_PID;
618 sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *));
622 if (pid >= (unsigned long)pid_max) { in thread_func()
628 while (pid >= (unsigned long)pid_max) in thread_func()
629 sched->pid_to_task[pid_max++] = NULL; in thread_func()
452 static int pid_max; register_pid() local