Searched refs:pid_max (Results 1 - 9 of 9) sorted by relevance

/linux-master/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c151 int pid_max = 0; local
164 f = fopen("/proc/sys/kernel/pid_max", "r");
167 "%s - Could not open /proc/sys/kernel/pid_max\n",
169 fscanf(f, "%d", &pid_max);
171 ksft_print_msg("/proc/sys/kernel/pid_max %d\n", pid_max);
236 /* pid_max should fail everywhere */
237 set_tid[0] = pid_max;
/linux-master/kernel/
H A Dpid.c63 int pid_max = PID_MAX_DEFAULT; variable
75 * first use and are never deallocated. This way a low pid_max
201 if (tid < 1 || tid >= pid_max)
241 pid_max, GFP_ATOMIC);
655 /* bump default and minimum pid_max based on number of cpus */
656 pid_max = min(pid_max_max, max_t(int, pid_max,
660 pr_info("pid_max: default: %u minimum: %u\n", pid_max, pid_max_min);
H A Dpid_namespace.c300 extern int pid_max;
308 .extra2 = &pid_max,
H A Dsysctl.c1813 .procname = "pid_max",
1814 .data = &pid_max,
/linux-master/include/linux/
H A Dpid.h109 extern int pid_max;
/linux-master/kernel/trace/
H A Dpid_list.c417 WARN_ON_ONCE(pid_max > (1 << 30));
H A Dtrace_sched_switch.c445 tgid_map_max = pid_max;
H A Dtrace.h706 extern int pid_max;
/linux-master/tools/perf/
H A Dbuiltin-sched.c434 static int pid_max; local
437 if (sysctl__read_int("kernel/pid_max", &pid_max) < 0)
438 pid_max = MAX_PID;
439 BUG_ON((sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *))) == NULL);
441 if (pid >= (unsigned long)pid_max) {
444 while (pid >= (unsigned long)pid_max)
445 sched->pid_to_task[pid_max++] = NULL;

Completed in 266 milliseconds