Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/kernel/
H A Dpid.c62 int pid_max = PID_MAX_DEFAULT; variable
71 * first use and are never deallocated. This way a low pid_max
194 if (tid < 1 || tid >= pid_max) in alloc_pid()
234 pid_max, GFP_ATOMIC); in alloc_pid()
613 /* bump default and minimum pid_max based on number of cpus */ in pid_idr_init()
614 pid_max = min(pid_max_max, max_t(int, pid_max, in pid_idr_init()
618 pr_info("pid_max: default: %u minimum: %u\n", pid_max, pid_max_min); in pid_idr_init()
H A Dpid_namespace.c309 extern int pid_max;
317 .extra2 = &pid_max,
H A Dsysctl.c2314 .procname = "pid_max",
2315 .data = &pid_max,
/kernel/linux/linux-6.6/kernel/
H A Dpid.c62 int pid_max = PID_MAX_DEFAULT; variable
71 * first use and are never deallocated. This way a low pid_max
197 if (tid < 1 || tid >= pid_max) in alloc_pid()
237 pid_max, GFP_ATOMIC); in alloc_pid()
653 /* bump default and minimum pid_max based on number of cpus */ in pid_idr_init()
654 pid_max = min(pid_max_max, max_t(int, pid_max, in pid_idr_init()
658 pr_info("pid_max: default: %u minimum: %u\n", pid_max, pid_max_min); in pid_idr_init()
H A Dpid_namespace.c305 extern int pid_max;
313 .extra2 = &pid_max,
H A Dsysctl.c1865 .procname = "pid_max",
1866 .data = &pid_max,
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c153 int pid_max = 0; in main() local
166 f = fopen("/proc/sys/kernel/pid_max", "r"); in main()
169 "%s - Could not open /proc/sys/kernel/pid_max\n", in main()
171 fscanf(f, "%d", &pid_max); in main()
173 ksft_print_msg("/proc/sys/kernel/pid_max %d\n", pid_max); in main()
238 /* pid_max should fail everywhere */ in main()
239 set_tid[0] = pid_max; in main()
/kernel/linux/linux-6.6/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c153 int pid_max = 0; in main() local
166 f = fopen("/proc/sys/kernel/pid_max", "r"); in main()
169 "%s - Could not open /proc/sys/kernel/pid_max\n", in main()
171 fscanf(f, "%d", &pid_max); in main()
173 ksft_print_msg("/proc/sys/kernel/pid_max %d\n", pid_max); in main()
238 /* pid_max should fail everywhere */ in main()
239 set_tid[0] = pid_max; in main()
/kernel/linux/linux-5.10/include/linux/
H A Dpid.h113 extern int pid_max;
/kernel/linux/linux-6.6/include/linux/
H A Dpid.h116 extern int pid_max;
/kernel/linux/linux-6.6/kernel/trace/
H A Dpid_list.c417 WARN_ON_ONCE(pid_max > (1 << 30)); in trace_pid_list_alloc()
H A Dtrace.h699 extern int pid_max;
H A Dtrace.c5464 tgid_map_max = pid_max; in set_tracer_flag()
/kernel/linux/linux-5.10/kernel/trace/
H A Dtrace.c526 * If pid_max changed after filtered_pids was created, we in trace_find_filtered_pid()
527 * by default ignore all pids greater than the previous pid_max. in trace_find_filtered_pid()
529 if (search_pid >= filtered_pids->pid_max) in trace_find_filtered_pid()
588 /* Sorry, but we don't support pid_max changing after setting */ in trace_filter_add_remove_task()
589 if (task->pid >= pid_list->pid_max) in trace_filter_add_remove_task()
618 pid = find_next_bit(pid_list->pids, pid_list->pid_max, pid); in trace_pid_next()
621 if (pid < pid_list->pid_max) in trace_pid_next()
643 pid = find_first_bit(pid_list->pids, pid_list->pid_max); in trace_pid_start()
644 if (pid >= pid_list->pid_max) in trace_pid_start()
701 pid_list->pid_max in trace_pid_write()
[all...]
H A Dtrace.h210 int pid_max; member
816 extern int pid_max;
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-sched.c450 static int pid_max; in register_pid() local
453 if (sysctl__read_int("kernel/pid_max", &pid_max) < 0) in register_pid()
454 pid_max = MAX_PID; in register_pid()
455 BUG_ON((sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *))) == NULL); in register_pid()
457 if (pid >= (unsigned long)pid_max) { in register_pid()
460 while (pid >= (unsigned long)pid_max) in register_pid()
461 sched->pid_to_task[pid_max++] = NULL; in register_pid()
/kernel/linux/linux-6.6/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()

Completed in 46 milliseconds