Home
last modified time | relevance | path

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

12345678910>>...121

/linux/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/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
526 struct pid *pid; in pidfd_get_pid() local
562 struct pid *pid; in pidfd_get_task() local
[all …]
/linux/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()
703 unsigned long pid; in radix__local_flush_tlb_mm() local
716 unsigned long pid; in radix__local_flush_all_mm() local
735 unsigned long pid; in radix__local_flush_tlb_page_psize() local
936 unsigned long pid; in radix__flush_tlb_mm() local
[all …]
/linux/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;
287 __entry->pid = p->pid;
312 __entry->pid = p->pid;
346 TP_PROTO(struct pid *pid),
358 __entry->pid = pid_nr(pid);
412 __entry->pid = p->pid;
447 __entry->pid = tsk->pid;
506 __entry->pid = tsk->pid;
540 __entry->pid = tsk->pid;
[all …]
/linux/arch/x86/um/os-Linux/
A Dregisters.c23 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
41 return save_i387_registers(pid, fp_regs); in save_fp_registers()
63 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
85 return save_fpx_registers(pid, regs); in get_fp_registers()
87 return save_fp_registers(pid, regs); in get_fp_registers()
93 return restore_fpx_registers(pid, regs); in put_fp_registers()
95 return restore_fp_registers(pid, regs); in put_fp_registers()
98 void arch_init_registers(int pid) in arch_init_registers() argument
117 return save_fp_registers(pid, regs); in get_fp_registers()
122 return restore_fp_registers(pid, regs); in put_fp_registers()
[all …]
/linux/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
358 int pid; in os_early_checks() local
[all …]
A Dhelper.c46 int pid, fds[2], ret, n; in run_helper() local
75 if (pid < 0) { in run_helper()
91 ret = pid; in run_helper()
117 int pid, status, err; in run_helper_thread() local
125 if (pid < 0) { in run_helper_thread()
132 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); in run_helper_thread()
133 if (pid < 0) { in run_helper_thread()
137 pid = err; in run_helper_thread()
145 return pid; in run_helper_thread()
148 int helper_wait(int pid) in helper_wait() argument
[all …]
/linux/arch/um/os-Linux/skas/
A Dprocess.c28 return pid == getpgrp(); in is_skas_winch()
106 void wait_stub_done(int pid) in wait_stub_done() argument
158 wait_stub_done(pid); in get_skas_faultinfo()
336 if (pid < 0) { in start_userspace()
375 return pid; in start_userspace()
581 wait_stub_done(pid); in copy_context_skas0()
583 pid = data->parent_err; in copy_context_skas0()
584 if (pid < 0) { in copy_context_skas0()
587 return pid; in copy_context_skas0()
594 wait_stub_done(pid); in copy_context_skas0()
[all …]
/linux/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/tools/testing/selftests/cgroup/
A Dcgroup_util.c324 return pid; in cg_run()
344 pid_t pid; in clone_into_cgroup() local
361 return pid; in clone_into_cgroup()
419 pid_t pid; in clone_into_cgroup_run_nowait() local
430 return pid; in clone_into_cgroup_run_nowait()
437 int pid; in cg_run_nowait() local
440 if (pid > 0) in cg_run_nowait()
441 return pid; in cg_run_nowait()
457 return pid; in cg_run_nowait()
542 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/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/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/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 …]
A Dvmaccess.c26 int f, pid = fork(); in TEST() local
29 if (!pid) { in TEST()
38 sprintf(mm, "/proc/%d/mem", pid); in TEST()
42 f = kill(pid, SIGCONT); in TEST()
48 int s, k, pid = fork(); in TEST() local
50 if (!pid) { in TEST()
59 k = ptrace(PTRACE_ATTACH, pid, 0L, 0L); in TEST()
65 ASSERT_NE(k, pid); in TEST()
69 k = ptrace(PTRACE_ATTACH, pid, 0L, 0L); in TEST()
72 ASSERT_EQ(k, pid); in TEST()
[all …]
/linux/arch/um/include/shared/
A Dregisters.h12 extern int save_i387_registers(int pid, unsigned long *fp_regs);
13 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
14 extern int save_fp_registers(int pid, unsigned long *fp_regs);
15 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
16 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
18 extern int save_registers(int pid, struct uml_pt_regs *regs);
19 extern int restore_registers(int pid, struct uml_pt_regs *regs);
20 extern int init_registers(int pid);
23 extern int get_fp_registers(int pid, unsigned long *regs);
[all …]
/linux/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/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/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/kernel/bpf/
A Dbpf_task_storage.c121 struct pid *pid; in bpf_pid_task_storage_lookup_elem() local
126 if (IS_ERR(pid)) in bpf_pid_task_storage_lookup_elem()
142 put_pid(pid); in bpf_pid_task_storage_lookup_elem()
145 put_pid(pid); in bpf_pid_task_storage_lookup_elem()
155 struct pid *pid; in bpf_pid_task_storage_update_elem() local
160 if (IS_ERR(pid)) in bpf_pid_task_storage_update_elem()
161 return PTR_ERR(pid); in bpf_pid_task_storage_update_elem()
180 put_pid(pid); in bpf_pid_task_storage_update_elem()
201 struct pid *pid; in bpf_pid_task_storage_delete_elem() local
206 if (IS_ERR(pid)) in bpf_pid_task_storage_delete_elem()
[all …]
/linux/tools/perf/scripts/python/
A Dnetdev-times.py327 (name, context, cpu, time, pid, comm, vec) = event_info
341 (name, context, cpu, time, pid, comm, vec) = event_info
345 (name, context, cpu, time, pid, comm, vec) = event_info
363 (name, context, cpu, time, pid, comm, napi, dev_name,
373 (name, context, cpu, time, pid, comm,
391 (name, context, cpu, time, pid, comm,
406 (name, context, cpu, time, pid, comm,
417 (name, context, cpu, time, pid, comm,
432 (name, context, cpu, time, pid, comm,
450 'comm':comm, 'pid':pid, 'comm_t':time})
[all …]
/linux/tools/testing/selftests/clone3/
A Dclone3_set_tid.c47 pid_t pid = -1; in call_clone3_set_tid() local
57 if (pid < 0) { in call_clone3_set_tid()
63 if (pid == 0) { in call_clone3_set_tid()
257 pid = fork(); in main()
258 if (pid == 0) { in main()
266 set_tid[0] = pid; in main()
278 set_tid[1] = pid; in main()
286 set_tid[0] = pid; in main()
303 set_tid[1] = pid; in main()
312 set_tid[2] = pid; in main()
[all …]
/linux/tools/testing/selftests/pidfd/
A Dpidfd_wait.c51 pid_t pid; in TEST() local
60 ASSERT_NE(pid, 0); in TEST()
68 ASSERT_NE(pid, 0); in TEST()
73 ASSERT_GE(pid, 0); in TEST()
75 if (pid == 0) in TEST()
79 ASSERT_GE(pid, 0); in TEST()
100 pid_t pid; in TEST() local
106 ASSERT_GE(pid, 0); in TEST()
108 if (pid == 0) { in TEST()
152 pid_t pid; in TEST() local
[all …]
/linux/tools/perf/util/
A Dthread_map.c41 sprintf(name, "/proc/%d/task", pid); in thread_map__new_by_pid()
172 if (pid != -1) in thread_map__new()
173 return thread_map__new_by_pid(pid); in thread_map__new()
188 pid_t pid, prev_pid = INT_MAX; in thread_map__new_by_pid_str() local
198 pid = strtol(pos->s, &end_ptr, 10); in thread_map__new_by_pid_str()
200 if (pid == INT_MIN || pid == INT_MAX || in thread_map__new_by_pid_str()
204 if (pid == prev_pid) in thread_map__new_by_pid_str()
295 if (pid) in thread_map__new_str()
348 if (pid == -1) { in comm_init()
357 if (get_comm(&comm, pid)) in comm_init()
[all …]

Completed in 57 milliseconds

12345678910>>...121