Home
last modified time | relevance | path

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

12345678910>>...78

/openbmc/linux/include/linux/
H A Dpid.h59 struct pid struct
85 static inline struct pid *get_pid(struct pid *pid) in get_pid() argument
87 if (pid) in get_pid()
92 extern void put_pid(struct pid *pid);
108 struct pid *pid);
139 extern void free_pid(struct pid *pid);
155 if (pid) in ns_of_pid()
156 ns = pid->numbers[pid->level].ns; in ns_of_pid()
168 return pid->numbers[pid->level].nr == 1; in is_child_reaper()
182 static inline pid_t pid_nr(struct pid *pid) in pid_nr() argument
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c89 err = ptrace_getregs(pid, &regs); in ptrace_getreg_pc()
103 err = ptrace_getregs(pid, &regs); in ptrace_setreg_pc()
109 err = ptrace_setregs(pid, &regs); in ptrace_setreg_pc()
194 *pid = fork(); in ptrace_fork_child()
196 if (*pid < 0) in ptrace_fork_child()
199 if (!*pid) { in ptrace_fork_child()
237 err = ptrace_fork_child(&pid); in same_watch_addr_test()
241 if (!pid) { in same_watch_addr_test()
246 err = check_watchpoints(pid); in same_watch_addr_test()
400 if (!pid) { in perf_then_ptrace_test()
[all …]
/openbmc/linux/kernel/
H A Dpid.c108 void put_pid(struct pid *pid) in put_pid() argument
125 struct pid *pid = container_of(rhp, struct pid, rcu); in delayed_put_pid() local
129 void free_pid(struct pid *pid) in free_pid() argument
165 struct pid *pid; in alloc_pid() local
344 struct pid *pid; in __change_pid() local
365 struct pid *pid) in change_pid() argument
443 struct pid *pid; in get_task_pid() local
465 struct pid *pid; in find_get_pid() local
530 struct pid *pid; in pidfd_get_pid() local
566 struct pid *pid; in pidfd_get_task() local
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/signal/
H 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 …]
/openbmc/linux/arch/x86/um/os-Linux/
H 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 …]
/openbmc/linux/include/trace/events/
H 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 …]
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dradix_tlb.c29 unsigned int pid, in tlbiel_radix_set_isa300() argument
352 unsigned long pid; member
372 struct tlbiel_pid t = { .pid = pid, .ric = ric }; in _tlbiel_pid_multicast()
488 unsigned long pid; member
518 unsigned long pid; member
563 .pid = pid, .page_size = page_size, in _tlbiel_va_range_multicast()
836 unsigned long pid; in radix__flush_tlb_mm() local
877 unsigned long pid; in __flush_all_mm() local
917 unsigned long pid; in radix__flush_tlb_page_psize() local
1021 unsigned long pid; in __radix__flush_tlb_range() local
[all …]
/openbmc/linux/tools/testing/selftests/rlimits/
H 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 …]
/openbmc/linux/arch/um/os-Linux/
H 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 …]
/openbmc/phosphor-pid-control/test/
H A Dmeson.build45 'pid_json_unittest': ['../pid/buildjson.cpp',
47 'pid_fancontroller_unittest': ['../pid/ec/pid.cpp',
48 '../pid/ec/logging.cpp',
51 '../pid/tuning.cpp',
52 '../pid/util.cpp'],
57 'pid_thermalcontroller_unittest': ['../pid/ec/pid.cpp',
63 'pid_zone_unittest': ['../pid/ec/pid.cpp',
64 '../pid/ec/logging.cpp',
65 '../pid/pidcontroller.cpp',
66 '../pid/tuning.cpp',
[all …]
/openbmc/linux/arch/um/os-Linux/skas/
H 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 …]
/openbmc/linux/tools/perf/scripts/perl/
H 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 …]
/openbmc/linux/arch/powerpc/mm/nohash/
H A Dtlb.c137 unsigned int pid; in local_flush_tlb_mm() local
140 pid = mm->context.id; in local_flush_tlb_mm()
142 _tlbil_pid(pid); in local_flush_tlb_mm()
150 unsigned int pid; in __local_flush_tlb_page() local
184 unsigned int pid; member
222 unsigned int pid; in flush_tlb_mm() local
225 pid = mm->context.id; in flush_tlb_mm()
229 struct tlb_flush_param p = { .pid = pid }; in flush_tlb_mm()
234 _tlbil_pid(pid); in flush_tlb_mm()
244 unsigned int pid; in __flush_tlb_page() local
[all …]
/openbmc/linux/arch/um/include/shared/
H 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 …]
/openbmc/openbmc/poky/meta-skeleton/recipes-skeleton/service/service/
H A Dskeleton48 PIDFILE=/var/run/$NAME.pid
62 local status pid
65 pid=`pidofproc $NAME` || status=$?
88 local pid status
91 pid=`pidofproc $NAME` || status=$?
116 local pid status
122 pid=`pidofproc $NAME` || status=$?
126 kill -s 1 $pid || exit $?
140 local pid status
144 pid=`pidofproc $NAME` || status=$?
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libusbgx/libusbgx/
H A Dusbgx.initd22 PIDFILE=/var/run/$NAME.pid
36 local status pid
39 pid=`pidofproc $NAME` || status=$?
58 local pid status
61 pid=`pidofproc $NAME` || status=$?
80 local pid status
86 pid=`pidofproc $NAME` || status=$?
90 kill -s 1 $pid || exit $?
104 local pid status
108 pid=`pidofproc $NAME` || status=$?
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-filter/ulogd2/ulogd2/
H A Dulogd.init35 PIDFILE=/var/run/$NAME.pid
49 local status pid
52 pid=`pidofproc $NAME` || status=$?
75 local pid status
78 pid=`pidofproc $NAME` || status=$?
103 local pid status
109 pid=`pidofproc $NAME` || status=$?
113 kill -s 1 $pid || exit $?
127 local pid status
131 pid=`pidofproc $NAME` || status=$?
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/vblade/files/
H A Dvblade.init25 PID_FILE=/var/run/$prog/${ID}.pid
27 pid=$!
29 echo $pid > $PID_FILE
30 echo -n $"$4 (e$2.$3@$1) [pid $pid]"
84 local pid_file=${2:-/var/run/$base.pid}
86 pid=
94 [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
98 if [ -n "$pid" ]; then
111 local base pid lock_file= pid_file=
132 pid="$(__pids_pidof "$1")"
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd/
H A Dgpsd.init26 PIDFILE=/var/run/$NAME.pid
50 local status pid
53 pid=`pidofproc $NAME` || status=$?
72 local pid status
75 pid=`pidofproc $NAME` || status=$?
94 local pid status
100 pid=`pidofproc $NAME` || status=$?
104 kill -s 1 $pid || exit $?
118 local pid status
122 pid=`pidofproc $NAME` || status=$?
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H 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()
258 "%lld -%d @%lx(%x) %c\n", ktime_to_ns(ts), pid, in kfd_smi_event_page_fault_start()
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 …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtask_kfunc_common.h25 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
31 s32 pid; in tasks_kfunc_map_value_lookup() local
34 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid); in tasks_kfunc_map_value_lookup()
38 return bpf_map_lookup_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_value_lookup()
46 s32 pid; in tasks_kfunc_map_insert() local
48 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid); in tasks_kfunc_map_insert()
53 status = bpf_map_update_elem(&__tasks_kfunc_map, &pid, &local, BPF_NOEXIST); in tasks_kfunc_map_insert()
57 v = bpf_map_lookup_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_insert()
59 bpf_map_delete_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_insert()
/openbmc/linux/arch/powerpc/mm/
H 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 …]
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dcgroup_util.c333 return pid; in cg_run()
353 pid_t pid; in clone_into_cgroup() local
370 return pid; in clone_into_cgroup()
428 pid_t pid; in clone_into_cgroup_run_nowait() local
439 return pid; in clone_into_cgroup_run_nowait()
446 int pid; in cg_run_nowait() local
449 if (pid > 0) in cg_run_nowait()
450 return pid; in cg_run_nowait()
466 return pid; in cg_run_nowait()
564 if (!pid) in proc_read_text()
[all …]
/openbmc/linux/tools/testing/selftests/proc/
H A Dproc-empty-vm.c138 pid_t pid; in vsyscall() local
141 pid = fork(); in vsyscall()
142 if (pid < 0) { in vsyscall()
146 if (pid == 0) { in vsyscall()
171 waitpid(pid, &wstatus, 0); in vsyscall()
331 pid_t pid = fork(); in main() local
332 if (pid == -1) { in main()
335 } else if (pid == 0) { in main()
381 rv = test_proc_pid_maps(pid); in main()
387 rv = test_proc_pid_smaps(pid); in main()
[all …]
/openbmc/linux/Documentation/translations/zh_CN/accounting/
H 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 …]

12345678910>>...78