Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 1630) sorted by relevance

12345678910>>...66

/linux-6.3-rc2/include/linux/
A Dpid.h59 struct pid struct
84 static inline struct pid *get_pid(struct pid *pid) in get_pid() argument
86 if (pid) in get_pid()
91 extern void put_pid(struct pid *pid);
107 struct pid *pid);
138 extern void free_pid(struct pid *pid);
154 if (pid) in ns_of_pid()
155 ns = pid->numbers[pid->level].ns; in ns_of_pid()
167 return pid->numbers[pid->level].nr == 1; in is_child_reaper()
181 static inline pid_t pid_nr(struct pid *pid) in pid_nr() argument
[all …]
/linux-6.3-rc2/kernel/
A Dpid.c105 void put_pid(struct pid *pid) in put_pid() argument
122 struct pid *pid = container_of(rhp, struct pid, rcu); in delayed_put_pid() local
126 void free_pid(struct pid *pid) in free_pid() argument
162 struct pid *pid; in alloc_pid() local
341 struct pid *pid; in __change_pid() local
362 struct pid *pid) in change_pid() argument
440 struct pid *pid; in get_task_pid() local
462 struct pid *pid; in find_get_pid() local
527 struct pid *pid; in pidfd_get_pid() local
563 struct pid *pid; in pidfd_get_task() local
[all …]
/linux-6.3-rc2/arch/powerpc/mm/book3s64/
A Dradix_tlb.c29 unsigned int pid, in tlbiel_radix_set_isa300() argument
445 unsigned long pid; member
465 struct tlbiel_pid t = { .pid = pid, .ric = ric }; in _tlbiel_pid_multicast()
595 unsigned long pid; member
625 unsigned long pid; member
682 .pid = pid, .page_size = page_size, in _tlbiel_va_range_multicast()
947 unsigned long pid; in radix__flush_tlb_mm() local
987 unsigned long pid; in __flush_all_mm() local
1026 unsigned long pid; in radix__flush_tlb_page_psize() local
1130 unsigned long pid; in __radix__flush_tlb_range() local
[all …]
/linux-6.3-rc2/arch/x86/um/os-Linux/
A Dregisters.c24 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
42 return save_i387_registers(pid, fp_regs); in save_fp_registers()
64 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
86 return save_fpx_registers(pid, regs); in get_fp_registers()
88 return save_fp_registers(pid, regs); in get_fp_registers()
94 return restore_fpx_registers(pid, regs); in put_fp_registers()
96 return restore_fp_registers(pid, regs); in put_fp_registers()
99 void arch_init_registers(int pid) in arch_init_registers() argument
118 return save_fp_registers(pid, regs); in get_fp_registers()
123 return restore_fp_registers(pid, regs); in put_fp_registers()
[all …]
/linux-6.3-rc2/tools/testing/selftests/powerpc/signal/
A Dsigreturn_kernel.c35 pid_t pid; in fork_child() local
37 pid = fork(); in fork_child()
38 if (pid == 0) { in fork_child()
43 return pid; in fork_child()
62 pid_t pid; in test_sigreturn_kernel() local
74 expect_segv(pid); in test_sigreturn_kernel()
79 expect_segv(pid); in test_sigreturn_kernel()
84 expect_segv(pid); in test_sigreturn_kernel()
89 expect_segv(pid); in test_sigreturn_kernel()
94 expect_segv(pid); in test_sigreturn_kernel()
[all …]
/linux-6.3-rc2/include/trace/events/
A Doom.h23 __entry->pid = task->pid;
77 TP_ARGS(pid),
84 __entry->pid = pid;
93 TP_ARGS(pid),
100 __entry->pid = pid;
109 TP_ARGS(pid),
116 __entry->pid = pid;
125 TP_ARGS(pid),
132 __entry->pid = pid;
141 TP_ARGS(pid),
[all …]
A Dsched.h29 __entry->pid = t->pid;
156 __entry->pid = p->pid;
290 __entry->pid = p->pid;
315 __entry->pid = p->pid;
349 TP_PROTO(struct pid *pid),
361 __entry->pid = pid_nr(pid);
415 __entry->pid = p->pid;
450 __entry->pid = tsk->pid;
509 __entry->pid = tsk->pid;
543 __entry->pid = tsk->pid;
[all …]
/linux-6.3-rc2/tools/testing/selftests/rlimits/
A Drlimits-per-userns.c32 pid_t pid = getpid(); in setrlimit_nproc() local
46 pid_t pid = fork(); in fork_child() local
48 if (pid < 0) in fork_child()
51 if (pid > 0) in fork_child()
52 return pid; in fork_child()
54 pid = getpid(); in fork_child()
91 pid_t pid; in main() local
99 pid = getpid(); in main()
101 warnx("(pid=%d) Starting testcase", pid); in main()
155 warnx("(pid=%d): Test failed", pid); in main()
[all …]
/linux-6.3-rc2/arch/um/os-Linux/
A Dstart_up.c38 kill(pid, SIGKILL); in ptrace_child()
40 kill(pid, SIGSTOP); in ptrace_child()
48 if (sc_result == pid) in ptrace_child()
95 int pid, n, status; in start_ptraced_child() local
99 pid = fork(); in start_ptraced_child()
100 if (pid == 0) in start_ptraced_child()
102 else if (pid < 0) in start_ptraced_child()
112 return pid; in start_ptraced_child()
167 int pid, n, status, count=0; in check_sysemu() local
171 pid = start_ptraced_child(); in check_sysemu()
[all …]
A Dhelper.c47 int pid, fds[2], ret, n; in run_helper() local
76 if (pid < 0) { in run_helper()
92 ret = pid; in run_helper()
122 int pid, status, err; in run_helper_thread() local
130 if (pid < 0) { in run_helper_thread()
137 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); in run_helper_thread()
138 if (pid < 0) { in run_helper_thread()
142 pid = err; in run_helper_thread()
150 return pid; in run_helper_thread()
153 int helper_wait(int pid) in helper_wait() argument
[all …]
/linux-6.3-rc2/arch/um/os-Linux/skas/
A Dprocess.c29 return pid == getpgrp(); in is_skas_winch()
158 wait_stub_done(pid); in get_skas_faultinfo()
334 if (pid < 0) { in start_userspace()
373 return pid; in start_userspace()
575 pid, errno); in copy_context_skas0()
579 wait_stub_done(pid); in copy_context_skas0()
581 pid = data->parent_err; in copy_context_skas0()
582 if (pid < 0) { in copy_context_skas0()
585 return pid; in copy_context_skas0()
592 wait_stub_done(pid); in copy_context_skas0()
[all …]
/linux-6.3-rc2/tools/perf/scripts/perl/
A Drw-by-pid.pl84 my $comm = $reads{$pid}{comm} || "";
85 my $total_reads = $reads{$pid}{total_reads} || 0;
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
101 foreach my $pid (keys %reads) {
102 foreach my $error (keys %{$reads{$pid}{errors}}) {
103 my $comm = $reads{$pid}{comm} || "";
125 my $comm = $writes{$pid}{comm} || "";
129 printf("%6s %-20s %10s %10s\n", $pid, $comm,
141 foreach my $pid (keys %writes) {
142 foreach my $error (keys %{$writes{$pid}{errors}}) {
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_smi_events.c42 pid_t pid; member
168 if (pid && client->pid != pid && !(client->suser && (events & all))) in kfd_smi_ev_enabled()
182 if (!kfd_smi_ev_enabled(pid, client, smi_event)) in add_event_to_kfifo()
215 add_event_to_kfifo(pid, dev, event, fifo_in, len); in kfd_smi_event_add()
246 if (!task_info.pid) in kfd_smi_event_update_vmfault()
250 task_info.pid, task_info.task_name); in kfd_smi_event_update_vmfault()
267 pid, address, dev->id, migration ? 'M' : 'U'); in kfd_smi_event_page_fault_end()
303 "%lld -%d %x\n", ktime_get_boottime_ns(), pid, in kfd_smi_event_queue_restore()
319 kfd_smi_event_add(p->lead_thread->pid, pdd->dev, in kfd_smi_event_queue_restore_rescheduled()
322 p->lead_thread->pid, pdd->dev->id, 'R'); in kfd_smi_event_queue_restore_rescheduled()
[all …]
/linux-6.3-rc2/arch/um/include/shared/
A Dregisters.h11 extern int save_i387_registers(int pid, unsigned long *fp_regs);
12 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
13 extern int save_fp_registers(int pid, unsigned long *fp_regs);
14 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
15 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
16 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int save_registers(int pid, struct uml_pt_regs *regs);
18 extern int restore_pid_registers(int pid, struct uml_pt_regs *regs);
19 extern int init_pid_registers(int pid);
21 extern int get_fp_registers(int pid, unsigned long *regs);
[all …]
/linux-6.3-rc2/tools/testing/selftests/cgroup/
A Dcgroup_util.c329 return pid; in cg_run()
349 pid_t pid; in clone_into_cgroup() local
366 return pid; in clone_into_cgroup()
424 pid_t pid; in clone_into_cgroup_run_nowait() local
435 return pid; in clone_into_cgroup_run_nowait()
442 int pid; in cg_run_nowait() local
445 if (pid > 0) in cg_run_nowait()
446 return pid; in cg_run_nowait()
462 return pid; in cg_run_nowait()
560 if (!pid) in proc_read_text()
[all …]
A Dtest_freezer.c403 int pid; in test_cgfreezer_mkdir() local
423 if (pid < 0) in test_cgfreezer_mkdir()
512 int pid; in test_cgfreezer_migrate() local
529 if (pid < 0) in test_cgfreezer_migrate()
588 int pid; in test_cgfreezer_ptrace() local
598 if (pid < 0) in test_cgfreezer_ptrace()
613 waitpid(pid, NULL, 0); in test_cgfreezer_ptrace()
733 waitpid(pid, NULL, 0); in test_cgfreezer_ptraced()
765 int pid = vfork(); in vfork_fn() local
767 if (pid == 0) in vfork_fn()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtask_kfunc_common.h26 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
30 s32 pid; in tasks_kfunc_map_value_lookup() local
33 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid); in tasks_kfunc_map_value_lookup()
37 return bpf_map_lookup_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_value_lookup()
45 s32 pid; in tasks_kfunc_map_insert() local
47 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid); in tasks_kfunc_map_insert()
52 status = bpf_map_update_elem(&__tasks_kfunc_map, &pid, &local, BPF_NOEXIST); in tasks_kfunc_map_insert()
56 v = bpf_map_lookup_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_insert()
58 bpf_map_delete_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_insert()
/linux-6.3-rc2/arch/powerpc/mm/
A Dmmu_decl.h31 static inline void _tlbil_pid(unsigned int pid) in _tlbil_pid() argument
34 trace_tlbia(pid); in _tlbil_pid()
36 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
40 extern void _tlbil_pid(unsigned int pid);
42 extern void _tlbil_pid_noind(unsigned int pid);
44 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
56 trace_tlbie(0, 0, address, pid, 0, 0, 0); in _tlbil_va()
59 extern void _tlbil_va(unsigned long address, unsigned int pid,
62 extern void __tlbil_va(unsigned long address, unsigned int pid);
66 __tlbil_va(address, pid); in _tlbil_va()
[all …]
/linux-6.3-rc2/tools/testing/selftests/proc/
A Dproc-empty-vm.c132 pid_t pid; in vsyscall() local
135 pid = fork(); in vsyscall()
136 if (pid < 0) { in vsyscall()
140 if (pid == 0) { in vsyscall()
165 waitpid(pid, &wstatus, 0); in vsyscall()
321 pid_t pid = fork(); in main() local
322 if (pid == -1) { in main()
325 } else if (pid == 0) { in main()
363 rv = test_proc_pid_maps(pid); in main()
369 rv = test_proc_pid_smaps(pid); in main()
[all …]
/linux-6.3-rc2/Documentation/translations/zh_CN/accounting/
A Dtaskstats.rst23pid”、“tid”、“任务”互换使用,用于描述由struct task_struct定义的标准
24 Linux任务。“每pid的统计数据”等价于“每任务的统计数据”。
35 (NETLINK_GENERIC族)然后发送指定pid或tgid的命令。响应消息中包含单个
36 任务的统计信息(若指定了pid)或进程所有任务汇总的统计信息(若指定了tgid)。
39 cpu掩码内的cpu上有任务退出时,每pid的统计信息将发送给注册成功的监听者。使用
44 记录也将发送给用户空间。后者包含线程组中所有线程(包括过去和现在)的每pid统计
71 1. 命令:由用户发送给内核。获取指定pid/tgid数据的命令包含一个类型为
73 pid/tgid指示用户空间要统计的任务/进程。
94 a) TASKSTATS_TYPE_AGGR_PID:指示其后两个属性为pid+stats。
95 b) TASKSTATS_TYPE_PID:包含退出任务的pid
[all …]
/linux-6.3-rc2/tools/testing/selftests/ptrace/
A Dget_syscall_info.c17 kill_tracee(pid_t pid) in kill_tracee() argument
19 if (!pid) in kill_tracee()
24 int rc = kill(pid, SIGKILL); in kill_tracee()
38 kill_tracee(pid); \
77 pid_t pid = fork(); in TEST() local
79 ASSERT_LE(0, pid) { in TEST()
83 if (pid == 0) { in TEST()
85 pid = getpid(); in TEST()
107 { 0, pid } /* gettid */ in TEST()
156 pid, size, in TEST()
[all …]
/linux-6.3-rc2/scripts/
A Dbootgraph.pl86 my $pid = $2;
88 if (!defined($pidctr{$pid})) {
90 $pidctr{$pid} = 1;
92 $pidctr{$pid} = $pidctr{$pid} + 1;
93 $func = "wait_" . $pid . "_" . $pidctr{$pid};
102 $pids{$func} = $pid;
114 my $pid = $2;
115 my $func = "wait_" . $pid . "_" . $pidctr{$pid};
178 my $pid = $pids{$key};
181 $rows{$pid} = $rowscount;
[all …]
/linux-6.3-rc2/drivers/media/common/b2c2/
A Dflexcop-hw-filter.c47 u16 pid, u16 mask) in flexcop_pid_group_filter() argument
75 u16 pid, int onoff) in flexcop_pid_Stream1_PID_ctrl() argument
82 u16 pid, int onoff) in flexcop_pid_Stream2_PID_ctrl() argument
89 u16 pid, int onoff) in flexcop_pid_PCR_PID_ctrl() argument
95 u16 pid, int onoff) in flexcop_pid_PMT_PID_ctrl() argument
101 u16 pid, int onoff) in flexcop_pid_EMM_PID_ctrl() argument
107 u16 pid, int onoff) in flexcop_pid_ECM_PID_ctrl() argument
113 int index, u16 pid, int onoff) in flexcop_pid_control() argument
115 if (pid == 0x2000) in flexcop_pid_control()
119 pid, pid, index, onoff ? "on" : "off"); in flexcop_pid_control()
[all …]
/linux-6.3-rc2/drivers/net/wan/
A Dhdlc_ppp.c66 u16 pid; /* protocol ID */ member
114 switch (pid) { in get_proto()
128 switch (pid) { in proto_name()
343 if (pid == PID_LCP) { in ppp_cp_event()
354 if (pid == PID_LCP) { in ppp_cp_event()
387 if (pid == PID_LCP) in ppp_cp_parse_cr()
442 u16 pid; in ppp_rx() local
457 pid = ntohs(hdr->protocol); in ppp_rx()
490 if (pid == PID_LCP) in ppp_rx()
494 if (pid == PID_LCP || pid == PID_IPCP || in ppp_rx()
[all …]
/linux-6.3-rc2/kernel/bpf/
A Dtask_iter.c22 u32 pid; member
39 struct pid *pid; in task_group_seq_get_next() local
44 pid = find_pid_ns(common->pid, common->ns); in task_group_seq_get_next()
45 if (!pid) in task_group_seq_get_next()
70 if (!pid) in task_group_seq_get_next()
114 struct pid *pid; in task_seq_get_next() local
120 pid = find_pid_ns(common->pid, common->ns); in task_seq_get_next()
231 struct pid *pid; in bpf_iter_attach_task() local
244 aux->task.pid = linfo->task.pid; in bpf_iter_attach_task()
416 common->pid = aux->task.pid; in init_seq_pidns()
[all …]

Completed in 59 milliseconds

12345678910>>...66