Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 200 of 982) sorted by relevance

12345

/linux-4.1.27/include/linux/
Dpid.h57 struct pid struct
67 extern struct pid init_struct_pid; argument
72 struct pid *pid; member
75 static inline struct pid *get_pid(struct pid *pid) in get_pid() argument
77 if (pid) in get_pid()
78 atomic_inc(&pid->count); in get_pid()
79 return pid; in get_pid()
82 extern void put_pid(struct pid *pid);
83 extern struct task_struct *pid_task(struct pid *pid, enum pid_type);
84 extern struct task_struct *get_pid_task(struct pid *pid, enum pid_type);
[all …]
Drtnetlink.h10 extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo);
11 extern int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid);
12 extern void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid,
123 extern int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
Dsyscalls.h231 asmlinkage long sys_getpgid(pid_t pid);
233 asmlinkage long sys_getsid(pid_t pid);
244 asmlinkage long sys_setpgid(pid_t pid, pid_t pgid);
288 asmlinkage long sys_sched_setscheduler(pid_t pid, int policy,
290 asmlinkage long sys_sched_setparam(pid_t pid,
292 asmlinkage long sys_sched_setattr(pid_t pid,
295 asmlinkage long sys_sched_getscheduler(pid_t pid);
296 asmlinkage long sys_sched_getparam(pid_t pid,
298 asmlinkage long sys_sched_getattr(pid_t pid,
302 asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len,
[all …]
Dagpgart.h66 pid_t pid; /* pid of process */ member
94 pid_t pid; member
102 pid_t pid; member
Dsched.h657 struct pid *leader_pid;
678 struct pid *tty_old_pgrp;
1394 pid_t pid; member
1768 static inline struct pid *task_pid(struct task_struct *task) in task_pid()
1770 return task->pids[PIDTYPE_PID].pid; in task_pid()
1773 static inline struct pid *task_tgid(struct task_struct *task) in task_tgid()
1775 return task->group_leader->pids[PIDTYPE_PID].pid; in task_tgid()
1783 static inline struct pid *task_pgrp(struct task_struct *task) in task_pgrp()
1785 return task->group_leader->pids[PIDTYPE_PGID].pid; in task_pgrp()
1788 static inline struct pid *task_session(struct task_struct *task) in task_session()
[all …]
Dposix-timers.h53 #define MAKE_PROCESS_CPUCLOCK(pid, clock) \ argument
54 ((~(clockid_t) (pid) << 3) | (clockid_t) (clock))
75 struct pid *it_pid; /* pid of process to send signal to */
/linux-4.1.27/kernel/
Dpid.c46 struct pid init_struct_pid = INIT_STRUCT_PID;
144 static void set_last_pid(struct pid_namespace *pid_ns, int base, int pid) in set_last_pid() argument
150 last_write = cmpxchg(&pid_ns->last_pid, prev, pid); in set_last_pid()
151 } while ((prev != last_write) && (pid_before(base, last_write, pid))); in set_last_pid()
156 int i, offset, max_scan, pid, last = pid_ns->last_pid; in alloc_pidmap() local
159 pid = last + 1; in alloc_pidmap()
160 if (pid >= pid_max) in alloc_pidmap()
161 pid = RESERVED_PIDS; in alloc_pidmap()
162 offset = pid & BITS_PER_PAGE_MASK; in alloc_pidmap()
163 map = &pid_ns->pidmap[pid/BITS_PER_PAGE]; in alloc_pidmap()
[all …]
Dcapability.c117 static inline int cap_get_target_pid(pid_t pid, kernel_cap_t *pEp, in cap_get_target_pid() argument
122 if (pid && (pid != task_pid_vnr(current))) { in cap_get_target_pid()
127 target = find_task_by_vpid(pid); in cap_get_target_pid()
152 pid_t pid; in SYSCALL_DEFINE2() local
160 if (get_user(pid, &header->pid)) in SYSCALL_DEFINE2()
163 if (pid < 0) in SYSCALL_DEFINE2()
166 ret = cap_get_target_pid(pid, &pE, &pI, &pP); in SYSCALL_DEFINE2()
230 pid_t pid; in SYSCALL_DEFINE2() local
236 if (get_user(pid, &header->pid)) in SYSCALL_DEFINE2()
240 if (pid != 0 && pid != task_pid_vnr(current)) in SYSCALL_DEFINE2()
Dexit.c222 static int will_become_orphaned_pgrp(struct pid *pgrp, in will_become_orphaned_pgrp()
252 static bool has_stopped_jobs(struct pid *pgrp) in has_stopped_jobs()
272 struct pid *pgrp = task_pgrp(tsk); in kill_orphaned_pgrp()
665 if (unlikely(!tsk->pid)) in do_exit()
893 struct pid *wo_pid;
904 struct pid *task_pid_type(struct task_struct *task, enum pid_type type) in task_pid_type()
908 return task->pids[type].pid; in task_pid_type()
945 pid_t pid, uid_t uid, int why, int status) in wait_noreap_copyout() argument
961 retval = put_user(pid, &infop->si_pid); in wait_noreap_copyout()
968 retval = pid; in wait_noreap_copyout()
[all …]
Dtaskstats.c63 pid_t pid; member
143 rc = genlmsg_unicast(&init_net, skb_cur, s->pid); in send_cpu_listeners()
193 static int fill_stats_for_pid(pid_t pid, struct taskstats *stats) in fill_stats_for_pid() argument
198 tsk = find_task_by_vpid(pid); in fill_stats_for_pid()
279 static int add_del_listener(pid_t pid, const struct cpumask *mask, int isadd) in add_del_listener() argument
303 s->pid = pid; in add_del_listener()
309 if (s2->pid == pid && s2->valid) in add_del_listener()
327 if (s->pid == pid) { in add_del_listener()
364 static struct taskstats *mk_reply(struct sk_buff *skb, int type, u32 pid) in mk_reply() argument
400 if (nla_put(skb, type, sizeof(pid), &pid) < 0) { in mk_reply()
[all …]
Dkmod.c273 pid_t pid; in wait_for_helper() local
277 pid = kernel_thread(____call_usermodehelper, sub_info, SIGCHLD); in wait_for_helper()
278 if (pid < 0) { in wait_for_helper()
279 sub_info->retval = pid; in wait_for_helper()
291 sys_wait4(pid, (int __user *)&ret, 0, NULL); in wait_for_helper()
311 pid_t pid; in __call_usermodehelper() local
314 pid = kernel_thread(wait_for_helper, sub_info, in __call_usermodehelper()
317 pid = kernel_thread(____call_usermodehelper, sub_info, in __call_usermodehelper()
320 if (pid < 0) { in __call_usermodehelper()
321 sub_info->retval = pid; in __call_usermodehelper()
Dsignal.c228 current->comm, current->pid, sig); in print_dropped_signal()
767 struct pid *sid; in check_kill_permission()
1324 int __kill_pgrp_info(int sig, struct siginfo *info, struct pid *pgrp) in __kill_pgrp_info()
1339 int kill_pid_info(int sig, struct siginfo *info, struct pid *pid) in kill_pid_info() argument
1346 p = pid_task(pid, PIDTYPE_PID); in kill_pid_info()
1361 int kill_proc_info(int sig, struct siginfo *info, pid_t pid) in kill_proc_info() argument
1365 error = kill_pid_info(sig, info, find_vpid(pid)); in kill_proc_info()
1381 int kill_pid_info_as_cred(int sig, struct siginfo *info, struct pid *pid, in kill_pid_info_as_cred() argument
1392 p = pid_task(pid, PIDTYPE_PID); in kill_pid_info_as_cred()
1425 static int kill_something_info(int sig, struct siginfo *info, pid_t pid) in kill_something_info() argument
[all …]
Dfork.c1226 init_task_pid(struct task_struct *task, enum pid_type type, struct pid *pid) in init_task_pid() argument
1228 task->pids[type].pid = pid; in init_task_pid()
1243 struct pid *pid, in copy_process() argument
1454 if (pid != &init_struct_pid) { in copy_process()
1455 pid = alloc_pid(p->nsproxy->pid_ns_for_children); in copy_process()
1456 if (IS_ERR(pid)) { in copy_process()
1457 retval = PTR_ERR(pid); in copy_process()
1496 p->pid = pid_nr(pid); in copy_process()
1507 p->tgid = p->pid; in copy_process()
1557 if (likely(p->pid)) { in copy_process()
[all …]
Dsys.c181 struct pid *pgrp; in SYSCALL_DEFINE3()
251 struct pid *pgrp; in SYSCALL_DEFINE2()
849 int pid; in SYSCALL_DEFINE0() local
852 pid = task_tgid_vnr(rcu_dereference(current->real_parent)); in SYSCALL_DEFINE0()
855 return pid; in SYSCALL_DEFINE0()
919 SYSCALL_DEFINE2(setpgid, pid_t, pid, pid_t, pgid) in SYSCALL_DEFINE2() argument
923 struct pid *pgrp; in SYSCALL_DEFINE2()
926 if (!pid) in SYSCALL_DEFINE2()
927 pid = task_pid_vnr(group_leader); in SYSCALL_DEFINE2()
929 pgid = pid; in SYSCALL_DEFINE2()
[all …]
/linux-4.1.27/arch/x86/um/os-Linux/
Dregisters.c15 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
17 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_fp_registers()
22 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
24 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_fp_registers()
31 int save_fpx_registers(int pid, unsigned long *fp_regs) in save_fpx_registers() argument
33 if (ptrace(PTRACE_GETFPXREGS, pid, 0, fp_regs) < 0) in save_fpx_registers()
38 int restore_fpx_registers(int pid, unsigned long *fp_regs) in restore_fpx_registers() argument
40 if (ptrace(PTRACE_SETFPXREGS, pid, 0, fp_regs) < 0) in restore_fpx_registers()
45 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
48 return save_fpx_registers(pid, regs); in get_fp_registers()
[all …]
Dtls.c47 int os_set_thread_area(user_desc_t *info, int pid) in os_set_thread_area() argument
51 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area()
58 int os_get_thread_area(user_desc_t *info, int pid) in os_get_thread_area() argument
62 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()
Dprctl.c9 int os_arch_prctl(int pid, int code, unsigned long *addr) in os_arch_prctl() argument
11 return ptrace(PTRACE_ARCH_PRCTL, pid, (unsigned long) addr, code); in os_arch_prctl()
/linux-4.1.27/arch/um/os-Linux/
Dstart_up.c32 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local
38 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()
105 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in start_ptraced_child()
112 return pid; in start_ptraced_child()
[all …]
Dhelper.c46 int pid, fds[2], ret, n; in run_helper() local
74 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); in run_helper()
75 if (pid < 0) { in run_helper()
91 ret = pid; in run_helper()
99 CATCH_EINTR(waitpid(pid, NULL, __WCLONE)); in run_helper()
117 int pid, status, err; in run_helper_thread() local
124 pid = clone(proc, (void *) sp, flags, arg); in run_helper_thread()
125 if (pid < 0) { in run_helper_thread()
132 CATCH_EINTR(pid = waitpid(pid, &status, __WCLONE)); in run_helper_thread()
133 if (pid < 0) { in run_helper_thread()
[all …]
Dregisters.c14 int save_registers(int pid, struct uml_pt_regs *regs) in save_registers() argument
18 err = ptrace(PTRACE_GETREGS, pid, 0, regs->gp); in save_registers()
24 int restore_registers(int pid, struct uml_pt_regs *regs) in restore_registers() argument
28 err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp); in restore_registers()
39 int init_registers(int pid) in init_registers() argument
43 err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); in init_registers()
47 arch_init_registers(pid); in init_registers()
48 get_fp_registers(pid, exec_fp_regs); in init_registers()
Dprocess.c26 unsigned long os_process_pc(int pid) in os_process_pc() argument
32 sprintf(proc_stat, "/proc/%d/stat", pid); in os_process_pc()
58 int os_process_parent(int pid) in os_process_parent() argument
64 if (pid == -1) in os_process_parent()
67 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); in os_process_parent()
92 void os_stop_process(int pid) in os_stop_process() argument
94 kill(pid, SIGSTOP); in os_stop_process()
97 void os_kill_process(int pid, int reap_child) in os_kill_process() argument
99 kill(pid, SIGKILL); in os_kill_process()
101 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_process()
[all …]
Dumid.c136 char pid[sizeof("nnnnn\0")], *end; in is_umdir_used() local
158 n = read(fd, pid, sizeof(pid)); in is_umdir_used()
169 p = strtoul(pid, &end, 0); in is_umdir_used()
170 if (end == pid) { in is_umdir_used()
211 char pid[sizeof("nnnnn\0")]; in create_pid_file() local
224 snprintf(pid, sizeof(pid), "%d\n", getpid()); in create_pid_file()
225 n = write(fd, pid, strlen(pid)); in create_pid_file()
226 if (n != strlen(pid)) in create_pid_file()
Dutil.c109 int pid; in os_dump_core() local
145 while ((pid = waitpid(-1, NULL, WNOHANG | __WALL)) > 0) in os_dump_core()
146 os_kill_ptraced_process(pid, 0); in os_dump_core()
/linux-4.1.27/arch/um/os-Linux/skas/
Dprocess.c24 int is_skas_winch(int pid, int fd, void *data) in is_skas_winch() argument
26 return pid == getpgrp(); in is_skas_winch()
29 static int ptrace_dump_regs(int pid) in ptrace_dump_regs() argument
34 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) in ptrace_dump_regs()
53 void wait_stub_done(int pid) in wait_stub_done() argument
58 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED | __WALL)); in wait_stub_done()
65 err = ptrace(PTRACE_CONT, pid, 0, 0); in wait_stub_done()
77 err = ptrace_dump_regs(pid); in wait_stub_done()
82 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done()
89 static void get_skas_faultinfo(int pid, struct faultinfo *fi) in get_skas_faultinfo() argument
[all …]
Dmem.c23 extern void wait_stub_done(int pid);
54 int err, pid = mm_idp->u.pid; in do_syscall_stub() local
56 n = ptrace_setregs(pid, syscall_regs); in do_syscall_stub()
65 err = ptrace(PTRACE_CONT, pid, 0, 0); in do_syscall_stub()
67 panic("Failed to continue stub, pid = %d, errno = %d\n", pid, in do_syscall_stub()
70 wait_stub_done(pid); in do_syscall_stub()
/linux-4.1.27/tools/perf/scripts/perl/
Drw-by-pid.pl82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
84 my $comm = $reads{$pid}{comm} || "";
85 my $total_reads = $reads{$pid}{total_reads} || 0;
86 my $bytes_requested = $reads{$pid}{bytes_requested} || 0;
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
89 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm,
101 foreach my $pid (keys %reads) {
102 foreach my $error (keys %{$reads{$pid}{errors}}) {
103 my $comm = $reads{$pid}{comm} || "";
104 my $errcount = $reads{$pid}{errors}{$error} || 0;
[all …]
Drwtop.pl136 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
138 my $comm = $reads{$pid}{comm} || "";
139 my $total_reads = $reads{$pid}{total_reads} || 0;
140 my $bytes_requested = $reads{$pid}{bytes_requested} || 0;
141 my $bytes_read = $reads{$pid}{bytes_read} || 0;
143 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm,
160 foreach my $pid (sort { ($writes{$b}{bytes_written} || 0) <=>
162 my $comm = $writes{$pid}{comm} || "";
163 my $total_writes = $writes{$pid}{total_writes} || 0;
164 my $bytes_written = $writes{$pid}{bytes_written} || 0;
[all …]
/linux-4.1.27/fs/f2fs/
Dtrace.c30 last_io.pid, "----------------", in __print_last_io()
37 static int __file_type(struct inode *inode, pid_t pid) in __file_type() argument
49 else if (pid) in __file_type()
58 pid_t pid = task_pid_nr(current); in f2fs_trace_pid() local
61 page->private = pid; in f2fs_trace_pid()
67 p = radix_tree_lookup(&pids, pid); in f2fs_trace_pid()
71 radix_tree_delete(&pids, pid); in f2fs_trace_pid()
73 f2fs_radix_tree_insert(&pids, pid, current); in f2fs_trace_pid()
77 pid, current->comm); in f2fs_trace_pid()
86 pid_t pid; in f2fs_trace_ios() local
[all …]
/linux-4.1.27/include/trace/events/
Dsched.h22 __field( pid_t, pid )
27 __entry->pid = t->pid;
30 TP_printk("comm=%s pid=%d", __entry->comm, __entry->pid)
64 __field( pid_t, pid )
72 __entry->pid = p->pid;
79 __entry->comm, __entry->pid, __entry->prio,
136 __entry->prev_pid = prev->pid;
140 __entry->next_pid = next->pid;
166 __field( pid_t, pid )
174 __entry->pid = p->pid;
[all …]
Dtask.h15 __field( pid_t, pid)
22 __entry->pid = task->pid;
29 __entry->pid, __entry->comm,
40 __field( pid_t, pid)
47 __entry->pid = task->pid;
54 __entry->pid, __entry->oldcomm,
Doom.h15 __field( pid_t, pid)
21 __entry->pid = task->pid;
27 __entry->pid, __entry->comm, __entry->oom_score_adj)
Drcu.h225 TP_PROTO(const char *rcuname, int pid, unsigned long gpnum),
227 TP_ARGS(rcuname, pid, gpnum),
232 __field(int, pid)
238 __entry->pid = pid;
242 __entry->rcuname, __entry->gpnum, __entry->pid)
252 TP_PROTO(const char *rcuname, unsigned long gpnum, int pid),
254 TP_ARGS(rcuname, gpnum, pid),
259 __field(int, pid)
265 __entry->pid = pid;
268 TP_printk("%s %lu %d", __entry->rcuname, __entry->gpnum, __entry->pid)
[all …]
Dtimer.h306 TP_PROTO(int which, struct pid *pid, cputime_t now),
308 TP_ARGS(which, pid, now),
312 __field( pid_t, pid )
319 __entry->pid = pid_nr(pid);
323 (int) __entry->pid, (unsigned long long)__entry->now)
Dmigrate.h81 __field( pid_t, pid)
88 __entry->pid = p->pid;
95 __entry->pid,
Dsignal.h62 __field( pid_t, pid )
71 __entry->pid = task->pid;
78 __entry->comm, __entry->pid, __entry->group,
Dsunrpc.h533 __field(int, pid)
540 __entry->pid = rqst? rqst->rq_task->pid : 0;
546 __entry->pid, show_svc_xprt_flags(__entry->flags))
572 TP_PROTO(int pid),
574 TP_ARGS(pid),
577 __field(int, pid)
581 __entry->pid = pid;
584 TP_printk("pid=%d", __entry->pid)
/linux-4.1.27/arch/powerpc/mm/
Dmmu_decl.h35 static inline void _tlbil_pid(unsigned int pid) in _tlbil_pid() argument
39 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
43 extern void _tlbil_pid(unsigned int pid);
45 extern void _tlbil_pid_noind(unsigned int pid);
47 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
55 static inline void _tlbil_va(unsigned long address, unsigned int pid, in _tlbil_va() argument
61 extern void _tlbil_va(unsigned long address, unsigned int pid,
64 extern void __tlbil_va(unsigned long address, unsigned int pid);
65 static inline void _tlbil_va(unsigned long address, unsigned int pid, in _tlbil_va() argument
68 __tlbil_va(address, pid); in _tlbil_va()
[all …]
Dtlb_nohash.c181 unsigned int pid; in local_flush_tlb_mm() local
184 pid = mm->context.id; in local_flush_tlb_mm()
185 if (pid != MMU_NO_CONTEXT) in local_flush_tlb_mm()
186 _tlbil_pid(pid); in local_flush_tlb_mm()
194 unsigned int pid; in __local_flush_tlb_page() local
197 pid = mm ? mm->context.id : 0; in __local_flush_tlb_page()
198 if (pid != MMU_NO_CONTEXT) in __local_flush_tlb_page()
199 _tlbil_va(vmaddr, pid, tsize, ind); in __local_flush_tlb_page()
225 unsigned int pid; member
234 _tlbil_pid(p ? p->pid : 0); in do_flush_tlb_mm_ipi()
[all …]
Dicswx_pid.c60 int pid; in get_cop_pid() local
63 pid = new_cop_pid(&cop_ida, COP_PID_MIN, COP_PID_MAX, in get_cop_pid()
65 if (pid >= 0) in get_cop_pid()
66 mm->context.cop_pid = pid; in get_cop_pid()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_trace.h27 TP_PROTO(pid_t pid, int crtc, unsigned int seq),
28 TP_ARGS(pid, crtc, seq),
30 __field(pid_t, pid)
35 __entry->pid = pid;
39 TP_printk("pid=%d, crtc=%d, seq=%u", __entry->pid, __entry->crtc, \
44 TP_PROTO(pid_t pid, int crtc, unsigned int seq),
45 TP_ARGS(pid, crtc, seq),
47 __field(pid_t, pid)
52 __entry->pid = pid;
56 TP_printk("pid=%d, crtc=%d, seq=%u", __entry->pid, __entry->crtc, \
Ddrm_pci.c334 const struct pci_device_id *pid; in drm_pci_init() local
345 pid = &pdriver->id_table[i]; in drm_pci_init()
355 pci_get_subsys(pid->vendor, pid->device, pid->subvendor, in drm_pci_init()
356 pid->subdevice, pdev)) != NULL) { in drm_pci_init()
357 if ((pdev->class & pid->class_mask) != pid->class) in drm_pci_init()
362 drm_get_pci_dev(pdev, pid, driver); in drm_pci_init()
/linux-4.1.27/scripts/
Dbootgraph.pl100 my $pid = $2;
102 if (!defined($pidctr{$pid})) {
103 $func = "wait_" . $pid . "_1";
104 $pidctr{$pid} = 1;
106 $pidctr{$pid} = $pidctr{$pid} + 1;
107 $func = "wait_" . $pid . "_" . $pidctr{$pid};
116 $pids{$func} = $pid;
128 my $pid = $2;
129 my $func = "wait_" . $pid . "_" . $pidctr{$pid};
192 my $pid = $pids{$key};
[all …]
/linux-4.1.27/arch/um/include/shared/
Dregisters.h12 extern int save_fp_registers(int pid, unsigned long *fp_regs);
13 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
14 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
15 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
16 extern int save_registers(int pid, struct uml_pt_regs *regs);
17 extern int restore_registers(int pid, struct uml_pt_regs *regs);
18 extern int init_registers(int pid);
21 extern int get_fp_registers(int pid, unsigned long *regs);
22 extern int put_fp_registers(int pid, unsigned long *regs);
Dos.h184 extern unsigned long os_process_pc(int pid);
185 extern int os_process_parent(int pid);
186 extern void os_stop_process(int pid);
187 extern void os_kill_process(int pid, int reap_child);
188 extern void os_kill_ptraced_process(int pid, int reap_child);
211 extern int helper_wait(int pid);
264 extern int is_skas_winch(int pid, int fd, void *data);
266 extern int copy_context_skas0(unsigned long stack, int pid);
296 extern int os_arch_prctl(int pid, int code, unsigned long *addr);
Dptrace_user.h12 extern int ptrace_getregs(long pid, unsigned long *regs_out);
13 extern int ptrace_setregs(long pid, unsigned long *regs_in);
/linux-4.1.27/drivers/net/wan/
Dhdlc_ppp.c69 u16 pid; /* protocol ID */ member
112 static inline struct proto* get_proto(struct net_device *dev, u16 pid) in get_proto() argument
116 switch (pid) { in get_proto()
128 static inline const char* proto_name(u16 pid) in proto_name() argument
130 switch (pid) { in proto_name()
207 static void ppp_tx_cp(struct net_device *dev, u16 pid, u8 code, in ppp_tx_cp() argument
220 if (pid == PID_LCP && (code == LCP_ECHO_REQ || code == LCP_ECHO_REPLY)) in ppp_tx_cp()
250 proto_name(pid), code_names[code], id, debug_buffer); in ppp_tx_cp()
253 ppp_hard_header(skb, dev, pid, NULL, NULL, 0); in ppp_tx_cp()
304 static void ppp_cp_event(struct net_device *dev, u16 pid, u16 event, u8 code, in ppp_cp_event() argument
[all …]
/linux-4.1.27/drivers/media/common/b2c2/
Dflexcop-hw-filter.c46 u16 pid, u16 mask) in flexcop_pid_group_filter() argument
50 v30c.pid_filter_30c_ext_ind_0_7.Group_PID = pid; in flexcop_pid_group_filter()
67 vpid.vregname.field = onoff ? pid : 0x1fff; \
74 u16 pid, int onoff) in flexcop_pid_Stream1_PID_ctrl() argument
81 u16 pid, int onoff) in flexcop_pid_Stream2_PID_ctrl() argument
88 u16 pid, int onoff) in flexcop_pid_PCR_PID_ctrl() argument
94 u16 pid, int onoff) in flexcop_pid_PMT_PID_ctrl() argument
100 u16 pid, int onoff) in flexcop_pid_EMM_PID_ctrl() argument
106 u16 pid, int onoff) in flexcop_pid_ECM_PID_ctrl() argument
112 int index, u16 pid, int onoff) in flexcop_pid_control() argument
[all …]
/linux-4.1.27/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.h37 u8 pid; member
40 int (*mpp_get)(unsigned pid, unsigned long *config);
41 int (*mpp_set)(unsigned pid, unsigned long config);
42 int (*mpp_gpio_req)(unsigned pid);
43 int (*mpp_gpio_dir)(unsigned pid, bool input);
88 u8 pid; member
119 .pid = _idl, \
131 .pid = _idl, \
162 .pid = _id, \
180 static inline int default_mpp_ctrl_get(void __iomem *base, unsigned int pid, in default_mpp_ctrl_get() argument
[all …]
Dpinctrl-dove.c69 static int dove_mpp_ctrl_get(unsigned pid, unsigned long *config) in dove_mpp_ctrl_get() argument
71 return default_mpp_ctrl_get(mpp_base, pid, config); in dove_mpp_ctrl_get()
74 static int dove_mpp_ctrl_set(unsigned pid, unsigned long config) in dove_mpp_ctrl_set() argument
76 return default_mpp_ctrl_set(mpp_base, pid, config); in dove_mpp_ctrl_set()
79 static int dove_pmu_mpp_ctrl_get(unsigned pid, unsigned long *config) in dove_pmu_mpp_ctrl_get() argument
81 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in dove_pmu_mpp_ctrl_get()
82 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in dove_pmu_mpp_ctrl_get()
86 if ((pmu & BIT(pid)) == 0) in dove_pmu_mpp_ctrl_get()
87 return default_mpp_ctrl_get(mpp_base, pid, config); in dove_pmu_mpp_ctrl_get()
96 static int dove_pmu_mpp_ctrl_set(unsigned pid, unsigned long config) in dove_pmu_mpp_ctrl_set() argument
[all …]
Dpinctrl-orion.c35 static int orion_mpp_ctrl_get(unsigned pid, unsigned long *config) in orion_mpp_ctrl_get() argument
37 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_get()
39 if (pid < 16) { in orion_mpp_ctrl_get()
40 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_get()
50 static int orion_mpp_ctrl_set(unsigned pid, unsigned long config) in orion_mpp_ctrl_set() argument
52 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_set()
54 if (pid < 16) { in orion_mpp_ctrl_set()
55 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_set()
/linux-4.1.27/tools/perf/scripts/python/
Dnetdev-times.py227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
230 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
233 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
236 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
239 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
242 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
245 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument
247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
251 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument
252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret)
[all …]
Dsched-migration.py31 def thread_name(pid): argument
32 return "%s:%d" % (threads[pid], pid)
208 def wake_up(self, ts_list, pid, cpu, fork): argument
211 new_rq = old_rq.wake_up_new(pid)
213 new_rq = old_rq.wake_up(pid)
349 def migrate(self, headers, pid, prio, orig_cpu, dest_cpu): argument
351 ts.migrate(self.timeslices, pid, orig_cpu, dest_cpu)
353 def wake_up(self, headers, comm, pid, success, target_cpu, fork): argument
357 ts.wake_up(self.timeslices, pid, target_cpu, fork)
372 common_callchain, comm, pid, runtime, vruntime): argument
[all …]
Dfailed-syscalls-by-pid.py71 for pid in pid_keys:
72 print "\n%s [%d]\n" % (comm, pid),
73 id_keys = syscalls[comm][pid].keys()
76 ret_keys = syscalls[comm][pid][id].keys()
77 …for ret, val in sorted(syscalls[comm][pid][id].iteritems(), key = lambda(k, v): (v, k), reverse =…
Dsyscall-counts-by-pid.py69 for pid in pid_keys:
70 print "\n%s [%d]\n" % (comm, pid),
71 id_keys = syscalls[comm][pid].keys()
72 for id, val in sorted(syscalls[comm][pid].iteritems(), \
/linux-4.1.27/fs/
Dfcntl.c83 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, in f_modown() argument
87 if (force || !filp->f_owner.pid) { in f_modown()
88 put_pid(filp->f_owner.pid); in f_modown()
89 filp->f_owner.pid = get_pid(pid); in f_modown()
92 if (pid) { in f_modown()
101 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument
105 f_modown(filp, pid, type, force); in __f_setown()
112 struct pid *pid; in f_setown() local
120 pid = find_vpid(who); in f_setown()
121 __f_setown(filp, pid, type, force); in f_setown()
[all …]
/linux-4.1.27/arch/um/drivers/
Dslirp_user.c40 int pid; in slirp_tramp() local
44 pid = run_helper(slirp_pre_exec, &pe_data, argv); in slirp_tramp()
46 return pid; in slirp_tramp()
52 int fds[2], pid, err; in slirp_open() local
63 pid = err; in slirp_open()
68 pri->pid = err; in slirp_open()
87 if (pri->pid<1) { in slirp_close()
94 if (kill(pri->pid, SIGHUP)<0) { in slirp_close()
96 "(%d)\n", pri->pid, errno); in slirp_close()
99 err = helper_wait(pri->pid); in slirp_close()
[all …]
Dxterm.c19 int pid; member
34 *data = ((struct xterm_chan) { .pid = -1, in xterm_init()
88 int pid, fd, new, err; in xterm_open() local
137 pid = run_helper(NULL, NULL, argv); in xterm_open()
138 if (pid < 0) { in xterm_open()
139 err = pid; in xterm_open()
182 data->pid = pid; in xterm_open()
190 os_kill_process(pid, 1); in xterm_open()
201 if (data->pid != -1) in xterm_close()
202 os_kill_process(data->pid, 1); in xterm_close()
[all …]
Dharddog_user.c33 int in_fds[2], out_fds[2], pid, n, err; in start_watchdog() local
67 pid = run_helper(pre_exec, &data, args); in start_watchdog()
72 if (pid < 0) { in start_watchdog()
73 err = -pid; in start_watchdog()
81 helper_wait(pid); in start_watchdog()
88 helper_wait(pid); in start_watchdog()
Dnet_user.c182 int pid, fds[2], err; in change_tramp() local
193 pid = run_helper(change_pre_exec, &pe_data, argv); in change_tramp()
195 if (pid > 0) /* Avoid hang as we won't get data in failure case. */ in change_tramp()
201 if (pid > 0) in change_tramp()
202 helper_wait(pid); in change_tramp()
203 return pid; in change_tramp()
215 int output_len, pid; in change() local
228 pid = change_tramp(argv, output, output_len); in change()
229 if (pid < 0) { in change()
Dubd_user.c26 int pid, fds[2], err; in start_io_thread() local
43 pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); in start_io_thread()
44 if(pid < 0){ in start_io_thread()
50 return(pid); in start_io_thread()
Dxterm_kern.c16 int pid; member
25 fd = os_rcv_fd(xterm->fd, &xterm->pid); in xterm_interrupt()
48 .pid = -1, in xterm_fd()
70 *pid_out = data->pid; in xterm_fd()
Dchan_user.c277 int pid, thread, count, thread_fd = -1; in register_winch() local
283 pid = tcgetpgrp(fd); in register_winch()
284 if (is_skas_winch(pid, fd, port)) { in register_winch()
289 if (pid == -1) { in register_winch()
Dslip_user.c78 int pid, fds[2], err, output_len; in slip_tramp() local
94 pid = err; in slip_tramp()
101 os_kill_process(pid, 1); in slip_tramp()
110 err = helper_wait(pid); in slip_tramp()
/linux-4.1.27/tools/perf/tests/
Dhists_link.c14 u32 pid; member
24 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, },
26 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, },
28 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, },
30 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, },
32 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, },
38 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_RUN_COMMAND, },
40 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, },
42 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_PAGE_FAULT, },
44 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_SYS_PERF_EVENT_OPEN, },
[all …]
Dhists_filter.c14 u32 pid; member
24 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, },
26 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, },
28 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, },
30 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, }, /* will be merged */
32 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, },
34 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, },
36 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, },
38 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, },
40 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, },
[all …]
Dperf-record.c8 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) in sched__get_first_possible_cpu() argument
14 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { in sched__get_first_possible_cpu()
102 err = sched__get_first_possible_cpu(evlist->workload.pid, &cpu_mask); in test__PERF_RECORD()
114 if (sched_setaffinity(evlist->workload.pid, cpu_mask_size, &cpu_mask) < 0) { in test__PERF_RECORD()
195 if ((pid_t)sample.pid != evlist->workload.pid) { in test__PERF_RECORD()
197 name, evlist->workload.pid, sample.pid); in test__PERF_RECORD()
201 if ((pid_t)sample.tid != evlist->workload.pid) { in test__PERF_RECORD()
203 name, evlist->workload.pid, sample.tid); in test__PERF_RECORD()
212 (pid_t)event->comm.pid != evlist->workload.pid) { in test__PERF_RECORD()
220 event->comm.pid != event->comm.tid) { in test__PERF_RECORD()
Dhists_cumulate.c14 u32 pid; member
24 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, },
26 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, },
28 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_CMD_RECORD, },
30 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, },
32 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_FREE, },
34 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, },
36 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, },
38 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, },
40 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, },
[all …]
Dhists_common.c12 u32 pid; member
21 u32 pid; member
93 thread = machine__findnew_thread(machine, fake_threads[i].pid, in setup_fake_machine()
94 fake_threads[i].pid); in setup_fake_machine()
105 .pid = fake_mmap_info[i].pid, in setup_fake_machine()
106 .tid = fake_mmap_info[i].pid, in setup_fake_machine()
Dattr.c60 static int store_event(struct perf_event_attr *attr, pid_t pid, int cpu, in store_event() argument
86 __WRITE_ASS(pid, "d", pid); in store_event()
130 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, in test_attr__open() argument
135 if (store_event(attr, pid, cpu, fd, group_fd, flags)) in test_attr__open()
Drdpmc.c158 int pid; in test__rdpmc() local
160 pid = fork(); in test__rdpmc()
161 if (pid < 0) in test__rdpmc()
164 if (!pid) { in test__rdpmc()
170 wret = waitpid(pid, &status, 0); in test__rdpmc()
Dhists_output.c15 u32 pid; member
25 { .cpu = 0, .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, },
27 { .cpu = 1, .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, },
29 { .cpu = 1, .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_CMD_RECORD, },
31 { .cpu = 1, .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, },
33 { .cpu = 2, .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_FREE, },
35 { .cpu = 2, .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, },
37 { .cpu = 2, .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, },
39 { .cpu = 3, .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, },
41 { .cpu = 0, .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, },
[all …]
Ddwarf-unwind.c28 pid_t pid = getpid(); in init_live_machine() local
30 return perf_event__synthesize_mmap_events(NULL, &event, pid, pid, in init_live_machine()
/linux-4.1.27/tools/testing/selftests/powerpc/
Dharness.c30 pid_t pid; in run_test() local
35 pid = fork(); in run_test()
36 if (pid == 0) { in run_test()
39 } else if (pid == -1) { in run_test()
44 setpgid(pid, pid); in run_test()
51 rc = waitpid(pid, &status, 0); in run_test()
60 kill(-pid, SIGKILL); in run_test()
64 kill(-pid, SIGTERM); in run_test()
72 kill(-pid, SIGTERM); in run_test()
/linux-4.1.27/include/net/
Dscm.h16 u32 pid; member
29 struct pid *pid; /* Skb credentials */ member
54 struct pid *pid, kuid_t uid, kgid_t gid) in scm_set_cred() argument
56 scm->pid = get_pid(pid); in scm_set_cred()
57 scm->creds.pid = pid_vnr(pid); in scm_set_cred()
64 put_pid(scm->pid); in scm_destroy_cred()
65 scm->pid = NULL; in scm_destroy_cred()
123 .pid = scm->creds.pid, in scm_recv()
/linux-4.1.27/fs/proc/
Darray.c135 struct pid *pid, struct task_struct *p) in task_state() argument
174 tgid, ngid, pid_nr_ns(pid, ns), ppid, tpid, in task_state()
193 for (g = ns->level; g <= pid->level; g++) in task_state()
195 task_tgid_nr_ns(p, pid->numbers[g].ns)); in task_state()
197 for (g = ns->level; g <= pid->level; g++) in task_state()
199 task_pid_nr_ns(p, pid->numbers[g].ns)); in task_state()
201 for (g = ns->level; g <= pid->level; g++) in task_state()
203 task_pgrp_nr_ns(p, pid->numbers[g].ns)); in task_state()
205 for (g = ns->level; g <= pid->level; g++) in task_state()
207 task_session_nr_ns(p, pid->numbers[g].ns)); in task_state()
[all …]
Dinternal.h57 struct pid_namespace *ns, struct pid *pid,
62 struct pid *pid; member
90 static inline struct pid *proc_pid(struct inode *inode) in proc_pid()
92 return PROC_I(inode)->pid; in proc_pid()
151 struct pid *, struct task_struct *);
153 struct pid *, struct task_struct *);
155 struct pid *, struct task_struct *);
157 struct pid *, struct task_struct *);
Dthread_self.c15 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_readlink() local
17 if (!pid) in proc_thread_self_readlink()
19 sprintf(tmp, "%d/task/%d", tgid, pid); in proc_thread_self_readlink()
27 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_follow_link() local
29 if (pid) { in proc_thread_self_follow_link()
34 sprintf(name, "%d/task/%d", tgid, pid); in proc_thread_self_follow_link()
Dbase.c200 struct pid *pid, struct task_struct *task) in proc_pid_cmdline() argument
212 struct pid *pid, struct task_struct *task) in proc_pid_auxv() argument
234 struct pid *pid, struct task_struct *task) in proc_pid_wchan() argument
273 struct pid *pid, struct task_struct *task) in proc_pid_stack() argument
310 struct pid *pid, struct task_struct *task) in proc_pid_schedstat() argument
382 struct pid *pid, struct task_struct *task) in proc_oom_score() argument
423 struct pid *pid, struct task_struct *task) in proc_pid_limits() argument
465 struct pid *pid, struct task_struct *task) in proc_pid_syscall() argument
533 static bool has_pid_permissions(struct pid_namespace *pid, in has_pid_permissions() argument
537 if (pid->hide_pid < hide_pid_min) in has_pid_permissions()
[all …]
Droot.c51 static int proc_parse_options(char *options, struct pid_namespace *pid) in proc_parse_options() argument
71 pid->pid_gid = make_kgid(current_user_ns(), option); in proc_parse_options()
80 pid->hide_pid = option; in proc_parse_options()
94 struct pid_namespace *pid = sb->s_fs_info; in proc_remount() local
97 return !proc_parse_options(data, pid); in proc_remount()
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dptrace.c29 static int put_debugreg(long pid, unsigned int regno, long data);
30 static long get_debugreg(long pid, unsigned int regno);
32 void deconfigure_bp(long pid);
53 ret = get_debugreg(task->pid, regno); in get_reg()
74 return put_debugreg(task->pid, regno, data); in put_reg()
101 if (!get_debugreg(child->pid, PT_BP_CTRL)) { in user_disable_single_step()
122 deconfigure_bp(child->pid); in ptrace_disable()
337 void deconfigure_bp(long pid) in deconfigure_bp() argument
342 if (bp_owner != pid) in deconfigure_bp()
348 put_debugreg(pid, PT_BP + 3 + (bp * 2), 0); in deconfigure_bp()
[all …]
/linux-4.1.27/drivers/android/
Dbinder.c301 int pid; member
343 int pid; member
450 current->pid, nice, min_nice); in binder_set_nice()
454 binder_user_error("%d RLIMIT_NICE not set\n", current->pid); in binder_set_nice()
481 proc->pid, new_buffer_size, new_buffer); in binder_insert_free_buffer()
558 "%d: %s pages %p-%p\n", proc->pid, in binder_update_page_range()
576 proc->pid); in binder_update_page_range()
586 proc->pid); in binder_update_page_range()
599 proc->pid, page_addr); in binder_update_page_range()
608 proc->pid, page_addr); in binder_update_page_range()
[all …]
/linux-4.1.27/tools/perf/util/
Dvalues.c9 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
12 if (!values->pid || !values->tid || !values->value) in perf_read_values_init()
36 zfree(&values->pid); in perf_read_values_destroy()
47 values->pid = realloc(values->pid, in perf_read_values__enlarge_threads()
48 values->threads_max * sizeof(*values->pid)); in perf_read_values__enlarge_threads()
53 if (!values->pid || !values->tid || !values->value) in perf_read_values__enlarge_threads()
58 u32 pid, u32 tid) in perf_read_values__findnew_thread() argument
63 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread()
70 values->pid[i] = pid; in perf_read_values__findnew_thread()
119 u32 pid, u32 tid, in perf_read_values_add_value() argument
[all …]
Dthread_map.c23 struct thread_map *thread_map__new_by_pid(pid_t pid) in thread_map__new_by_pid() argument
31 sprintf(name, "/proc/%d/task", pid); in thread_map__new_by_pid()
83 pid_t pid = strtol(dirent.d_name, &end, 10); in thread_map__new_by_uid() local
96 snprintf(path, sizeof(path), "/proc/%d/task", pid); in thread_map__new_by_uid()
146 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) in thread_map__new() argument
148 if (pid != -1) in thread_map__new()
149 return thread_map__new_by_pid(pid); in thread_map__new()
164 pid_t pid, prev_pid = INT_MAX; in thread_map__new_by_pid_str() local
173 pid = strtol(pos->s, &end_ptr, 10); in thread_map__new_by_pid_str()
175 if (pid == INT_MIN || pid == INT_MAX || in thread_map__new_by_pid_str()
[all …]
Dcloexec.c31 pid_t pid = -1; in perf_flag_probe() local
44 fd = sys_perf_event_open(&attr, pid, cpu, -1, in perf_flag_probe()
46 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
47 pid = 0; in perf_flag_probe()
65 fd = sys_perf_event_open(&attr, pid, cpu, -1, 0); in perf_flag_probe()
66 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
67 pid = 0; in perf_flag_probe()
Devent.c44 .pid = -1,
56 static int perf_event__get_comm_ids(pid_t pid, char *comm, size_t len, in perf_event__get_comm_ids() argument
68 snprintf(filename, sizeof(filename), "/proc/%d/status", pid); in perf_event__get_comm_ids()
80 pid); in perf_event__get_comm_ids()
105 pr_debug("Name: string not found for pid %d\n", pid); in perf_event__get_comm_ids()
112 pr_debug("Tgid: string not found for pid %d\n", pid); in perf_event__get_comm_ids()
119 pr_debug("PPid: string not found for pid %d\n", pid); in perf_event__get_comm_ids()
125 static int perf_event__prepare_comm(union perf_event *event, pid_t pid, in perf_event__prepare_comm() argument
136 if (perf_event__get_comm_ids(pid, event->comm.comm, in perf_event__prepare_comm()
142 *tgid = machine->pid; in perf_event__prepare_comm()
[all …]
Drecord.c17 static pid_t pid = -1; in perf_do_probe_api() local
29 fd = sys_perf_event_open(&evsel->attr, pid, cpu, -1, flags); in perf_do_probe_api()
31 if (pid == -1 && errno == EACCES) { in perf_do_probe_api()
32 pid = 0; in perf_do_probe_api()
43 fd = sys_perf_event_open(&evsel->attr, pid, cpu, -1, flags); in perf_do_probe_api()
204 pid_t pid = -1; in perf_evlist__can_select_event() local
226 fd = sys_perf_event_open(&evsel->attr, pid, cpu, -1, in perf_evlist__can_select_event()
229 if (pid == -1 && errno == EACCES) { in perf_evlist__can_select_event()
230 pid = 0; in perf_evlist__can_select_event()
Dmachine.c23 int machine__init(struct machine *machine, const char *root_dir, pid_t pid) in machine__init() argument
36 machine->pid = pid; in machine__init()
47 if (pid != HOST_KERNEL_ID) { in machine__init()
49 pid); in machine__init()
55 snprintf(comm, sizeof(comm), "[guest/%d]", pid); in machine__init()
133 struct machine *machines__add(struct machines *machines, pid_t pid, in machines__add() argument
143 if (machine__init(machine, root_dir, pid) != 0) { in machines__add()
153 if (pid < pos->pid) in machines__add()
193 struct machine *machines__find(struct machines *machines, pid_t pid) in machines__find() argument
200 if (pid == HOST_KERNEL_ID) in machines__find()
[all …]
Dmachine.h28 pid_t pid; member
71 struct thread *machine__find_thread(struct machine *machine, pid_t pid,
105 struct machine *machines__add(struct machines *machines, pid_t pid,
108 struct machine *machines__find(struct machines *machines, pid_t pid);
109 struct machine *machines__findnew(struct machines *machines, pid_t pid);
119 int machine__init(struct machine *machine, const char *root_dir, pid_t pid);
142 return machine ? machine->pid == DEFAULT_GUEST_KERNEL_ID : false; in machine__is_default_guest()
147 return machine ? machine->pid == HOST_KERNEL_ID : false; in machine__is_host()
150 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid,
202 int machines__create_kernel_maps(struct machines *machines, pid_t pid);
[all …]
Drun-command.c71 cmd->pid = fork(); in start_command()
72 if (!cmd->pid) { in start_command()
123 if (cmd->pid < 0) { in start_command()
156 static int wait_or_whine(pid_t pid) in wait_or_whine() argument
162 pid_t waiting = waitpid(pid, &status, 0); in wait_or_whine()
171 if (waiting != pid) in wait_or_whine()
192 return wait_or_whine(cmd->pid); in finish_command()
Dthread.c16 pid_t pid = thread->pid_; in thread__init_map_groups() local
18 if (pid == thread->tid || pid == -1) { in thread__init_map_groups()
21 leader = machine__findnew_thread(machine, pid, pid); in thread__init_map_groups()
29 struct thread *thread__new(pid_t pid, pid_t tid) in thread__new() argument
36 thread->pid_ = pid; in thread__new()
Dthread_map.h13 struct thread_map *thread_map__new_by_pid(pid_t pid);
16 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid);
18 struct thread_map *thread_map__new_str(const char *pid,
Dsession.h74 struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid) in perf_session__find_machine() argument
76 return machines__find(&session->machines, pid); in perf_session__find_machine()
80 struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid) in perf_session__findnew_machine() argument
82 return machines__findnew(&session->machines, pid); in perf_session__findnew_machine()
85 struct thread *perf_session__findnew(struct perf_session *session, pid_t pid);
Devent.h14 u32 pid, tid; member
23 u32 pid, tid; member
38 u32 pid, tid; member
44 u32 pid, ppid; member
60 u32 pid, tid; member
174 u32 pid, tid; member
205 pid_t pid; member
381 pid_t pid, pid_t tgid,
Dbuild-id.c32 struct thread *thread = machine__findnew_thread(machine, sample->pid, in build_id__mark_dso_hit()
56 event->fork.pid, in perf_event__exit_del_thread()
59 dump_printf("(%d:%d):(%d:%d)\n", event->fork.pid, event->fork.tid, in perf_event__exit_del_thread()
140 pid_t pid, u16 misc, int fd) in write_buildid() argument
151 b.pid = pid; in write_buildid()
164 pid_t pid, u16 misc, int fd) in __dsos__write_buildid_table() argument
190 pid, misc, fd); in __dsos__write_buildid_table()
210 machine->pid, kmisc, fd); in machine__write_buildid_table()
213 machine, machine->pid, umisc, in machine__write_buildid_table()
Dvalues.h9 u32 *pid, *tid; member
21 u32 pid, u32 tid,
/linux-4.1.27/net/ax25/
Dax25_iface.c58 void ax25_protocol_release(unsigned int pid) in ax25_protocol_release() argument
67 if (protocol->pid == pid) { in ax25_protocol_release()
73 if (protocol->next->pid == pid) { in ax25_protocol_release()
161 int (*ax25_protocol_function(unsigned int pid))(struct sk_buff *, ax25_cb *) in ax25_protocol_function() argument
168 if (protocol->pid == pid) { in ax25_protocol_function()
203 int ax25_protocol_is_registered(unsigned int pid) in ax25_protocol_is_registered() argument
210 if (protocol->pid == pid) { in ax25_protocol_is_registered()
Dax25_in.c106 unsigned char pid; in ax25_rx_iframe() local
113 pid = *skb->data; in ax25_rx_iframe()
115 if (pid == AX25_P_IP) { in ax25_rx_iframe()
135 if (pid == AX25_P_SEGMENT) { in ax25_rx_iframe()
140 if ((func = ax25_protocol_function(pid)) != NULL) { in ax25_rx_iframe()
146 if ((!ax25->pidincl && ax25->sk->sk_protocol == pid) || in ax25_rx_iframe()
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
Dtask_event_vs_ebb_test.c40 pid_t pid; in task_event_vs_ebb() local
46 pid = fork(); in task_event_vs_ebb()
47 if (pid == 0) { in task_event_vs_ebb()
53 rc = setup_child_event(&event, pid); in task_event_vs_ebb()
55 kill_child_and_wait(pid); in task_event_vs_ebb()
69 FAIL_IF(wait_for_child(pid)); in task_event_vs_ebb()
Dtask_event_pinned_vs_ebb_test.c42 pid_t pid; in task_event_pinned_vs_ebb() local
48 pid = fork(); in task_event_pinned_vs_ebb()
49 if (pid == 0) { in task_event_pinned_vs_ebb()
55 rc = setup_child_event(&event, pid); in task_event_pinned_vs_ebb()
57 kill_child_and_wait(pid); in task_event_pinned_vs_ebb()
71 FAIL_IF(wait_for_child(pid) != 2); in task_event_pinned_vs_ebb()
Debb_on_child_test.c48 pid_t pid; in ebb_on_child() local
53 pid = fork(); in ebb_on_child()
54 if (pid == 0) { in ebb_on_child()
70 FAIL_IF(event_open_with_pid(&event, pid)); in ebb_on_child()
76 FAIL_IF(wait_for_child(pid)); in ebb_on_child()
Dcpu_event_vs_ebb_test.c42 pid_t pid; in cpu_event_vs_ebb() local
51 pid = fork(); in cpu_event_vs_ebb()
52 if (pid == 0) { in cpu_event_vs_ebb()
60 kill_child_and_wait(pid); in cpu_event_vs_ebb()
74 FAIL_IF(wait_for_child(pid)); in cpu_event_vs_ebb()
Debb_on_willing_child_test.c55 pid_t pid; in ebb_on_willing_child() local
60 pid = fork(); in ebb_on_willing_child()
61 if (pid == 0) { in ebb_on_willing_child()
78 FAIL_IF(event_open_with_pid(&event, pid)); in ebb_on_willing_child()
82 FAIL_IF(wait_for_child(pid)); in ebb_on_willing_child()
Debb_vs_cpu_event_test.c42 pid_t pid; in ebb_vs_cpu_event() local
51 pid = fork(); in ebb_vs_cpu_event()
52 if (pid == 0) { in ebb_vs_cpu_event()
63 kill_child_and_wait(pid); in ebb_vs_cpu_event()
71 FAIL_IF(wait_for_child(pid)); in ebb_vs_cpu_event()
Dcpu_event_pinned_vs_ebb_test.c44 pid_t pid; in cpu_event_pinned_vs_ebb() local
53 pid = fork(); in cpu_event_pinned_vs_ebb()
54 if (pid == 0) { in cpu_event_pinned_vs_ebb()
62 kill_child_and_wait(pid); in cpu_event_pinned_vs_ebb()
76 FAIL_IF(wait_for_child(pid) != 2); in cpu_event_pinned_vs_ebb()
Dfork_cleanup_test.c45 pid_t pid; in fork_cleanup() local
63 pid = fork(); in fork_cleanup()
64 if (pid == 0) in fork_cleanup()
68 FAIL_IF(wait_for_child(pid)); in fork_cleanup()
/linux-4.1.27/arch/x86/um/
Dsyscalls_64.c16 int pid = task->mm->context.id.u.pid; in arch_prctl() local
34 ret = restore_registers(pid, &current->thread.regs.regs); in arch_prctl()
51 ret = os_arch_prctl(pid, code, ptr); in arch_prctl()
58 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
61 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
Dptrace_user.c9 int ptrace_getregs(long pid, unsigned long *regs_out) in ptrace_getregs() argument
11 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0) in ptrace_getregs()
16 int ptrace_setregs(long pid, unsigned long *regs) in ptrace_setregs() argument
18 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0) in ptrace_setregs()
/linux-4.1.27/tools/testing/selftests/timers/
Dskew_consistency.c57 pid_t pid; in main() local
62 pid = fork(); in main()
63 if (!pid) in main()
69 while (pid != waitpid(pid, &ret, WNOHANG)) { in main()
Dclocksource-switch.c137 pid_t pid; in main() local
163 pid = fork(); in main()
164 if (!pid) in main()
167 while (pid != waitpid(pid, &status, WNOHANG)) in main()
/linux-4.1.27/drivers/scsi/bfa/
Dbfa_fcs_rport.c181 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_uninit()
220 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_plogi_sending()
259 rport->pid = 0; in bfa_fcs_rport_sm_plogi_sending()
281 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_plogiacc_sending()
320 rport->pid = 0; in bfa_fcs_rport_sm_plogiacc_sending()
347 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_plogi_retry()
391 rport->pid = 0; in bfa_fcs_rport_sm_plogi_retry()
417 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_plogi()
449 rport->old_pid = rport->pid; in bfa_fcs_rport_sm_plogi()
450 rport->pid = 0; in bfa_fcs_rport_sm_plogi()
[all …]
/linux-4.1.27/mm/
Dprocess_vm_access.c141 static ssize_t process_vm_rw_core(pid_t pid, struct iov_iter *iter, in process_vm_rw_core() argument
188 task = find_task_by_vpid(pid); in process_vm_rw_core()
247 static ssize_t process_vm_rw(pid_t pid, in process_vm_rw() argument
277 rc = process_vm_rw_core(pid, &iter, iov_r, riovcnt, flags, vm_write); in process_vm_rw()
287 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec, in SYSCALL_DEFINE6() argument
291 return process_vm_rw(pid, lvec, liovcnt, rvec, riovcnt, flags, 0); in SYSCALL_DEFINE6()
294 SYSCALL_DEFINE6(process_vm_writev, pid_t, pid, in SYSCALL_DEFINE6() argument
299 return process_vm_rw(pid, lvec, liovcnt, rvec, riovcnt, flags, 1); in SYSCALL_DEFINE6()
305 compat_process_vm_rw(compat_pid_t pid, in compat_process_vm_rw() argument
334 rc = process_vm_rw_core(pid, &iter, iov_r, riovcnt, flags, vm_write); in compat_process_vm_rw()
[all …]
/linux-4.1.27/Documentation/kdump/
Dgdbmacros.txt23 printf "\npid %d; comm %s:\n", $next_t.pid, $next_t.comm
37 printf "\npid %d; comm %s:\n", $next_t.pid, $next_t.comm
64 printf "\npid %d; comm %s:\n", $next_t.pid, $next_t.comm
80 printf "\npid %d; comm %s:\n", $next_t.pid, $next_t.comm
102 set var $pid = $arg0
112 if ($next_t.pid == $pid)
119 if ($next_th.pid == $pid)
127 printf "\npid %d; comm %s:\n", $pid_task.pid, $pid_task.comm
141 backtrace of pid
146 set var $pid = $arg0
[all …]
/linux-4.1.27/sound/firewire/oxfw/
Doxfw.h81 unsigned int pid, u8 *format, unsigned int len);
83 enum avc_general_plug_dir dir, unsigned int pid,
87 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format_single() argument
90 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); in avc_stream_get_format_single()
94 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format_list() argument
98 return avc_stream_get_format(unit, dir, pid, buf, len, eid); in avc_stream_get_format_list()
107 unsigned short pid);
Doxfw-command.c12 unsigned int pid, u8 *format, unsigned int len) in avc_stream_set_format() argument
28 buf[7] = 0xff & pid; /* Plug ID */ in avc_stream_set_format()
52 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format() argument
70 buf[7] = 0xff & pid; /* Plug ID */ in avc_stream_get_format()
110 unsigned short pid) in avc_general_inquiry_sig_fmt() argument
133 buf[3] = 0xff & pid; /* plug id */ in avc_general_inquiry_sig_fmt()
Doxfw-stream.c486 unsigned int pid, u8 *buf, unsigned int *len, in assume_stream_formats() argument
494 err = avc_stream_get_format_single(oxfw->unit, dir, pid, buf, len); in assume_stream_formats()
499 pid, err); in assume_stream_formats()
523 dir, pid); in assume_stream_formats()
545 unsigned short pid) in fill_stream_formats() argument
567 err = assume_stream_formats(oxfw, dir, pid, buf, &len, in fill_stream_formats()
574 pid, err); in fill_stream_formats()
611 pid, err); in fill_stream_formats()
/linux-4.1.27/net/core/
Dscm.c56 if ((creds->pid == task_tgid_vnr(current) || in scm_check_creds()
176 p->creds.pid = creds.pid; in __scm_send()
177 if (!p->pid || pid_vnr(p->pid) != creds.pid) { in __scm_send()
178 struct pid *pid; in __scm_send() local
180 pid = find_get_pid(creds.pid); in __scm_send()
181 if (!pid) in __scm_send()
183 put_pid(p->pid); in __scm_send()
184 p->pid = pid; in __scm_send()
/linux-4.1.27/tools/testing/selftests/memfd/
Dfuse_test.c203 pid_t pid; in spawn_sealing_thread() local
211 pid = clone(sealing_thread_fn, in spawn_sealing_thread()
215 if (pid < 0) { in spawn_sealing_thread()
220 return pid; in spawn_sealing_thread()
223 static void join_sealing_thread(pid_t pid) in join_sealing_thread() argument
225 waitpid(pid, NULL, 0); in join_sealing_thread()
234 pid_t pid; in main() local
261 pid = spawn_sealing_thread(); in main()
283 join_sealing_thread(pid); in main()
Dmemfd_test.c509 pid_t pid; in spawn_idle_thread() local
517 pid = clone(idle_thread_fn, in spawn_idle_thread()
521 if (pid < 0) { in spawn_idle_thread()
526 return pid; in spawn_idle_thread()
529 static void join_idle_thread(pid_t pid) in join_idle_thread() argument
531 kill(pid, SIGTERM); in join_idle_thread()
532 waitpid(pid, NULL, 0); in join_idle_thread()
846 pid_t pid; in test_share_fork() local
853 pid = spawn_idle_thread(0); in test_share_fork()
860 join_idle_thread(pid); in test_share_fork()
[all …]
/linux-4.1.27/drivers/usb/storage/
Dusual-tables.c73 u16 vid, pid, bcdmin, bcdmax; member
81 .pid = id_product, \
109 unsigned vid, pid, bcd; in usb_usual_ignore_device() local
114 pid = le16_to_cpu(udev->descriptor.idProduct); in usb_usual_ignore_device()
118 if (p->vid == vid && p->pid == pid && in usb_usual_ignore_device()
/linux-4.1.27/arch/um/kernel/skas/
Dmmu.c66 to_mm->id.u.pid = copy_context_skas0(stack, in init_new_context()
67 from_mm->id.u.pid); in init_new_context()
68 else to_mm->id.u.pid = start_userspace(stack); in init_new_context()
70 if (to_mm->id.u.pid < 0) { in init_new_context()
71 ret = to_mm->id.u.pid; in init_new_context()
147 if (mmu->id.u.pid < 2) { in destroy_context()
149 mmu->id.u.pid); in destroy_context()
152 os_kill_ptraced_process(mmu->id.u.pid, 1); in destroy_context()
Dprocess.c17 int pid; in start_kernel_proc() local
20 pid = os_getpid(); in start_kernel_proc()
22 cpu_tasks[0].pid = pid; in start_kernel_proc()
/linux-4.1.27/tools/testing/selftests/powerpc/tm/
Dtm-syscall.c49 pid_t pid; in getppid_tm() local
53 pid = getppid_tm_suspended(); in getppid_tm()
55 pid = getppid_tm_active(); in getppid_tm()
57 if (pid >= 0) in getppid_tm()
58 return pid; in getppid_tm()
/linux-4.1.27/Documentation/trace/postprocess/
Dtrace-pagealloc-postprocess.pl137 my $pid = $_[0];
140 if (open(STAT, "/proc/$pid/stat")) {
153 my $pid = $_[0];
156 if ($pid == 0) {
163 return "$1-$pid";
167 my $pid = $_[0];
171 if ($pid == 0) {
203 my $pid = $2;
205 $statline = read_statline($pid);
208 $process_pid = guess_process_pid($pid, $statline);
[all …]
Dtrace-vmscan-postprocess.pl229 my $pid = $_[0];
232 if (open(STAT, "/proc/$pid/stat")) {
245 my $pid = $_[0];
248 if ($pid == 0) {
255 return "$1-$pid";
285 my $pid = $2;
288 $process = $last_procmap{$pid};
289 $process_pid = "$process-$pid";
291 $last_procmap{$pid} = $process;
294 $statline = read_statline($pid);
[all …]
/linux-4.1.27/arch/um/kernel/
Dreboot.c19 int pid; in kill_off_processes() local
28 pid = t->mm->context.id.u.pid; in kill_off_processes()
30 os_kill_ptraced_process(pid, 1); in kill_off_processes()
/linux-4.1.27/arch/mips/mm/
Dtlb-r3k.c131 int pid = read_c0_entryhi(); in local_flush_tlb_kernel_range() local
150 write_c0_entryhi(pid); in local_flush_tlb_kernel_range()
191 int idx, pid; in __update_tlb() local
199 pid = read_c0_entryhi() & ASID_MASK; in __update_tlb()
202 if ((pid != (cpu_context(cpu, vma->vm_mm) & ASID_MASK)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb()
204 (cpu_context(cpu, vma->vm_mm)), pid); in __update_tlb()
210 write_c0_entryhi(address | pid); in __update_tlb()
215 write_c0_entryhi(address | pid); in __update_tlb()
221 write_c0_entryhi(pid); in __update_tlb()
Dtlb-r8k.c189 int pid; in __update_tlb() local
197 pid = read_c0_entryhi() & ASID_MASK; in __update_tlb()
202 write_c0_entryhi(pid); in __update_tlb()
211 write_c0_entryhi(pid); in __update_tlb()
/linux-4.1.27/arch/mips/kernel/
Dmips-mt-fpaff.c38 static inline struct task_struct *find_process_by_pid(pid_t pid) in find_process_by_pid() argument
40 return pid ? find_task_by_vpid(pid) : current; in find_process_by_pid()
62 asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_setaffinity() argument
79 p = find_process_by_pid(pid); in mipsmt_sys_sched_setaffinity()
153 asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_getaffinity() argument
169 p = find_process_by_pid(pid); in mipsmt_sys_sched_getaffinity()
/linux-4.1.27/scripts/gdb/linux/
Dtasks.py41 def get_task_by_pid(pid): argument
43 if int(task['pid']) == pid:
57 def invoke(self, pid): argument
58 task = get_task_by_pid(pid)
62 raise gdb.GdbError("No task of PID " + str(pid))
/linux-4.1.27/drivers/cpufreq/
Dintel_pstate.c107 struct _pid pid; member
169 static inline void pid_reset(struct _pid *pid, int setpoint, int busy, in pid_reset() argument
171 pid->setpoint = setpoint; in pid_reset()
172 pid->deadband = deadband; in pid_reset()
173 pid->integral = int_tofp(integral); in pid_reset()
174 pid->last_err = int_tofp(setpoint) - int_tofp(busy); in pid_reset()
177 static inline void pid_p_gain_set(struct _pid *pid, int percent) in pid_p_gain_set() argument
179 pid->p_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_p_gain_set()
182 static inline void pid_i_gain_set(struct _pid *pid, int percent) in pid_i_gain_set() argument
184 pid->i_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_i_gain_set()
[all …]
/linux-4.1.27/include/uapi/linux/
Dif_pppol2tp.h25 __kernel_pid_t pid; /* pid that owns the fd. member
39 __kernel_pid_t pid; /* pid that owns the fd. member
53 __kernel_pid_t pid; /* pid that owns the fd. member
64 __kernel_pid_t pid; /* pid that owns the fd. member
/linux-4.1.27/arch/nios2/mm/
Dtlb.c30 static void get_misc_and_pid(unsigned long *misc, unsigned long *pid) in get_misc_and_pid() argument
34 *pid = *misc & TLBMISC_PID; in get_misc_and_pid()
68 unsigned long pid; in flush_tlb_one_pid() local
74 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in flush_tlb_one_pid()
76 pid == mmu_pid) { in flush_tlb_one_pid()
206 void flush_tlb_pid(unsigned long pid) in flush_tlb_pid() argument
231 == pid) { in flush_tlb_pid()
271 void set_mmu_pid(unsigned long pid) in set_mmu_pid() argument
274 ((pid & TLBMISC_PID_MASK) << TLBMISC_PID_SHIFT)); in set_mmu_pid()
/linux-4.1.27/tools/testing/selftests/mount/
Dunprivileged-remount-test.c192 pid_t pid; in test_unpriv_remount() local
194 pid = waitpid(child, &status, 0); in test_unpriv_remount()
195 if (pid == -1) { in test_unpriv_remount()
199 if (pid != child) { in test_unpriv_remount()
201 child, pid); in test_unpriv_remount()
270 pid_t pid; in test_priv_mount_unpriv_remount() local
272 pid = waitpid(child, &status, 0); in test_priv_mount_unpriv_remount()
273 if (pid == -1) { in test_priv_mount_unpriv_remount()
277 if (pid != child) { in test_priv_mount_unpriv_remount()
279 child, pid); in test_priv_mount_unpriv_remount()
/linux-4.1.27/arch/sh/mm/
Dasids-debugfs.c34 int pid = p->pid; in asids_seq_show() local
36 if (unlikely(!pid)) in asids_seq_show()
40 seq_printf(file, "%5d : %04lx\n", pid, in asids_seq_show()
/linux-4.1.27/tools/perf/bench/
Dsched-pipe.c93 pid_t pid, retpid __maybe_unused; in bench_sched_pipe() local
134 pid = fork(); in bench_sched_pipe()
135 assert(pid >= 0); in bench_sched_pipe()
137 if (!pid) { in bench_sched_pipe()
144 retpid = waitpid(pid, &wait_stat, 0); in bench_sched_pipe()
145 assert((retpid == pid) && WIFEXITED(wait_stat)); in bench_sched_pipe()
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/
Devent.c16 int perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, in perf_event_open() argument
19 return syscall(__NR_perf_event_open, attr, pid, cpu, in perf_event_open()
52 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) in event_open_with_options() argument
54 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); in event_open_with_options()
68 int event_open_with_pid(struct event *e, pid_t pid) in event_open_with_pid() argument
70 return event_open_with_options(e, pid, PERF_NO_CPU, PERF_NO_GROUP); in event_open_with_pid()
Dlib.c146 pid_t pid; in eat_cpu() local
158 pid = fork(); in eat_cpu()
159 if (pid == 0) in eat_cpu()
171 kill(pid, SIGKILL); in eat_cpu()
Devent.h30 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd);
32 int event_open_with_pid(struct event *e, pid_t pid);
/linux-4.1.27/Documentation/block/
Dioprio.txt45 # ionice -c<class> -n<level> -p<pid>
47 If pid isn't given, the current process is assumed. IO priority settings
54 For a running process, you can give the pid instead:
58 will change pid 100 to run at the realtime scheduling class, at priority 2.
119 int c, pid = 0;
132 pid = strtol(optarg, NULL, 10);
153 if (!pid && argv[optind])
154 pid = strtol(argv[optind], NULL, 10);
156 ioprio = ioprio_get(IOPRIO_WHO_PROCESS, pid);
158 printf("pid=%d, %d\n", pid, ioprio);
[all …]
/linux-4.1.27/kernel/time/
Dtimer_stats.c65 pid_t pid; member
132 (unsigned long)(entry)->pid ) & TSTAT_HASH_MASK)
159 entry1->pid == entry2->pid; in match_entries()
234 void timer_stats_update_stats(void *timer, pid_t pid, void *startf, in timer_stats_update_stats() argument
253 input.pid = pid; in timer_stats_update_stats()
311 entry->count, entry->pid, entry->comm); in tstats_show()
314 entry->count, entry->pid, entry->comm); in tstats_show()
/linux-4.1.27/arch/score/mm/
Dtlb-score.c131 int pid = pevn_get(); in local_flush_tlb_kernel_range() local
151 pevn_set(pid); in local_flush_tlb_kernel_range()
216 int idx, pid; in __update_tlb() local
224 pid = pevn_get() & ASID_MASK; in __update_tlb()
228 pevn_set(address | pid); in __update_tlb()
233 pevn_set(address | pid); in __update_tlb()
239 pevn_set(pid); in __update_tlb()
/linux-4.1.27/drivers/staging/gdm72xx/
Dusb_ids.h34 #define USB_DEVICE_BOOTLOADER(vid, pid) \ argument
35 {USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD)}, \
36 {USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD|B_DIFF_DL_DRV)}
38 #define USB_DEVICE_CDC_DATA(vid, pid) \ argument
39 {USB_DEVICE_INTF((vid), (pid), USB_CLASS_CDC_DATA)}
/linux-4.1.27/drivers/macintosh/
Dwindfarm_pm91.c103 struct wf_cpu_pid_state pid; member
118 struct wf_pid_state pid; member
131 struct wf_pid_state pid; member
199 wf_cpu_pid_init(&wf_smu_cpu_fans->pid, &pid_param); in wf_smu_create_cpu_fans()
253 if (temp > st->pid.param.tmax) in wf_smu_cpu_fans_tick()
256 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); in wf_smu_cpu_fans_tick()
315 wf_pid_init(&wf_smu_drive_fans->pid, &param); in wf_smu_create_drive_fans()
337 st->ticks = st->pid.param.interval; in wf_smu_drive_fans_tick()
350 if (temp > (st->pid.param.itarget + 0x50000)) in wf_smu_drive_fans_tick()
353 new_setpoint = wf_pid_run(&st->pid, temp); in wf_smu_drive_fans_tick()
[all …]
Dwindfarm_pm81.c187 struct wf_pid_state pid; member
253 struct wf_cpu_pid_state pid; member
314 wf_pid_init(&wf_smu_sys_fans->pid, &pid_param); in wf_smu_create_sys_fans()
352 if (temp > (st->pid.param.itarget + 0x50000)) in wf_smu_sys_fans_tick()
355 new_setpoint = wf_pid_run(&st->pid, temp); in wf_smu_sys_fans_tick()
363 cputarget = wf_smu_cpu_fans ? wf_smu_cpu_fans->pid.target : 0; in wf_smu_sys_fans_tick()
366 scaled = max(scaled, st->pid.param.min); in wf_smu_sys_fans_tick()
367 scaled = min(scaled, st->pid.param.max); in wf_smu_sys_fans_tick()
454 wf_cpu_pid_init(&wf_smu_cpu_fans->pid, &pid_param); in wf_smu_create_cpu_fans()
508 if (temp > st->pid.param.tmax) in wf_smu_cpu_fans_tick()
[all …]
Dwindfarm_pm112.c131 struct wf_cpu_pid_param pid; in create_cpu_loop() local
164 pid.interval = 1; /* seconds */ in create_cpu_loop()
165 pid.history_len = piddata->history_len; in create_cpu_loop()
166 pid.gd = piddata->gd; in create_cpu_loop()
167 pid.gp = piddata->gp; in create_cpu_loop()
168 pid.gr = piddata->gr / piddata->history_len; in create_cpu_loop()
169 pid.pmaxadj = (piddata->max_power << 16) - (piddata->power_adj << 8); in create_cpu_loop()
170 pid.ttarget = tmax - (piddata->target_temp_delta << 16); in create_cpu_loop()
171 pid.tmax = tmax; in create_cpu_loop()
172 pid.min = main_fan->ops->get_min(main_fan); in create_cpu_loop()
[all …]
Dwindfarm_rm31.c296 struct wf_cpu_pid_param pid; in cpu_setup_pid() local
323 pid.interval = 1; /* seconds */ in cpu_setup_pid()
324 pid.history_len = hsize; in cpu_setup_pid()
325 pid.gd = mpu->pid_gd; in cpu_setup_pid()
326 pid.gp = mpu->pid_gp; in cpu_setup_pid()
327 pid.gr = mpu->pid_gr; in cpu_setup_pid()
328 pid.tmax = tmax; in cpu_setup_pid()
329 pid.ttarget = ttarget; in cpu_setup_pid()
330 pid.pmaxadj = ptarget; in cpu_setup_pid()
331 pid.min = fmin; in cpu_setup_pid()
[all …]
Dwindfarm_pm121.c443 struct wf_pid_state pid; member
460 struct wf_cpu_pid_state pid; member
571 wf_pid_init(&pm121_sys_state[loop_id]->pid, &pid_param); in pm121_create_sys_fans()
623 new_setpoint = wf_pid_run(&st->pid, temp); in pm121_sys_fans_tick()
628 st->pid.param.min); in pm121_sys_fans_tick()
709 wf_cpu_pid_init(&pm121_cpu_state->pid, &pid_param); in pm121_create_cpu_fans()
762 if (temp > st->pid.param.tmax) in pm121_cpu_fans_tick()
765 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); in pm121_cpu_fans_tick()
770 st->pid.param.min); in pm121_cpu_fans_tick()
818 for (i = 0; i < pm121_cpu_state->pid.param.history_len; i++) in pm121_tick()
[all …]
Dwindfarm_pm72.c395 struct wf_cpu_pid_param pid; in cpu_setup_pid() local
422 pid.interval = 1; /* seconds */ in cpu_setup_pid()
423 pid.history_len = hsize; in cpu_setup_pid()
424 pid.gd = mpu->pid_gd; in cpu_setup_pid()
425 pid.gp = mpu->pid_gp; in cpu_setup_pid()
426 pid.gr = mpu->pid_gr; in cpu_setup_pid()
427 pid.tmax = tmax; in cpu_setup_pid()
428 pid.ttarget = ttarget; in cpu_setup_pid()
429 pid.pmaxadj = ptarget; in cpu_setup_pid()
430 pid.min = fmin; in cpu_setup_pid()
[all …]
/linux-4.1.27/arch/powerpc/kvm/
De500.c165 int as, int pid, int pr) in kvmppc_e500_id_table_reset_one() argument
170 BUG_ON(pid >= NUM_TIDS); in kvmppc_e500_id_table_reset_one()
173 idt->id[as][pid][pr].val = 0; in kvmppc_e500_id_table_reset_one()
174 idt->id[as][pid][pr].pentry = NULL; in kvmppc_e500_id_table_reset_one()
225 void kvmppc_set_pid(struct kvm_vcpu *vcpu, u32 pid) in kvmppc_set_pid() argument
229 if (vcpu->arch.pid != pid) { in kvmppc_set_pid()
230 vcpu_e500->pid[0] = vcpu->arch.pid = pid; in kvmppc_set_pid()
240 unsigned int pr, tid, ts, pid; in kvmppc_e500_tlbil_one() local
260 pid = local_sid_lookup(&idt->id[ts][tid][pr]); in kvmppc_e500_tlbil_one()
261 if (pid <= 0) { in kvmppc_e500_tlbil_one()
[all …]
De500_mmu.c84 gva_t eaddr, int tlbsel, unsigned int pid, int as) in kvmppc_e500_tlb_index() argument
114 if (tid && (tid != pid)) in kvmppc_e500_tlb_index()
279 int pid, int type) in tlbilx_all() argument
288 if (type == 0 || tid == pid) { in tlbilx_all()
295 static void tlbilx_one(struct kvmppc_vcpu_e500 *vcpu_e500, int pid, in tlbilx_one() argument
301 esel = kvmppc_e500_tlb_index(vcpu_e500, ea, tlbsel, pid, -1); in tlbilx_one()
313 int pid = get_cur_spid(vcpu); in kvmppc_e500_emul_tlbilx() local
316 tlbilx_all(vcpu_e500, 0, pid, type); in kvmppc_e500_emul_tlbilx()
317 tlbilx_all(vcpu_e500, 1, pid, type); in kvmppc_e500_emul_tlbilx()
319 tlbilx_one(vcpu_e500, pid, ea); in kvmppc_e500_emul_tlbilx()
[all …]
/linux-4.1.27/fs/btrfs/
Dlocking.c42 if (eb->lock_nested && current->pid == eb->lock_owner) in btrfs_set_lock_blocking_rw()
74 if (eb->lock_nested && current->pid == eb->lock_owner) in btrfs_clear_lock_blocking_rw()
104 current->pid == eb->lock_owner); in btrfs_tree_read_lock()
108 current->pid == eb->lock_owner) { in btrfs_tree_read_lock()
189 eb->lock_owner = current->pid; in btrfs_try_tree_write_lock()
204 if (eb->lock_nested && current->pid == eb->lock_owner) { in btrfs_tree_read_unlock()
226 if (eb->lock_nested && current->pid == eb->lock_owner) { in btrfs_tree_read_unlock_blocking()
263 eb->lock_owner = current->pid; in btrfs_tree_lock()
/linux-4.1.27/drivers/misc/cxl/
Dfault.c197 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { in cxl_handle_fault()
199 pid_nr(ctx->pid)); in cxl_handle_fault()
205 pid_nr(ctx->pid)); in cxl_handle_fault()
228 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { in cxl_prefault_one()
230 pid_nr(ctx->pid)); in cxl_prefault_one()
235 pid_nr(ctx->pid)); in cxl_prefault_one()
265 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { in cxl_prefault_vma()
267 pid_nr(ctx->pid)); in cxl_prefault_vma()
272 pid_nr(ctx->pid)); in cxl_prefault_vma()
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_demux.c398 u16 pid = ts_pid(buf); in dvb_dmx_swfilter_packet() local
437 pid, buf[1]); in dvb_dmx_swfilter_packet()
445 if (pid < MAX_PID) { in dvb_dmx_swfilter_packet()
447 demux->cnt_storage[pid] = in dvb_dmx_swfilter_packet()
448 (demux->cnt_storage[pid] + 1) & 0xf; in dvb_dmx_swfilter_packet()
450 if ((buf[3] & 0xf) != demux->cnt_storage[pid]) { in dvb_dmx_swfilter_packet()
452 pid, demux->cnt_storage[pid], in dvb_dmx_swfilter_packet()
454 demux->cnt_storage[pid] = buf[3] & 0xf; in dvb_dmx_swfilter_packet()
461 if ((feed->pid != pid) && (feed->pid != 0x2000)) in dvb_dmx_swfilter_packet()
469 if (feed->pid == pid) in dvb_dmx_swfilter_packet()
[all …]
/linux-4.1.27/drivers/char/agp/
Dcompat_ioctl.c75 kreserve.pid = ureserve.pid; in compat_agpioc_reserve_wrap()
78 client = agp_find_client_by_pid(kreserve.pid); in compat_agpioc_reserve_wrap()
82 client_priv = agp_find_private(kreserve.pid); in compat_agpioc_reserve_wrap()
92 return agp_remove_client(kreserve.pid); in compat_agpioc_reserve_wrap()
129 client = agp_create_client(kreserve.pid); in compat_agpioc_reserve_wrap()
135 client_priv = agp_find_private(kreserve.pid); in compat_agpioc_reserve_wrap()
231 if (agp_fe.current_controller->pid != curr_priv->my_pid) { in compat_agp_ioctl()
Dfrontend.c215 struct agp_file_private *agp_find_private(pid_t pid) in agp_find_private() argument
222 if (curr->my_pid == pid) in agp_find_private()
300 if (controller->pid == id) in agp_find_controller_by_pid()
316 controller->pid = id; in agp_create_controller()
347 priv = agp_find_private(temp->pid); in agp_remove_all_clients()
413 priv = agp_find_private(clients->pid); in agp_controller_make_current()
436 priv = agp_find_private(clients->pid); in agp_controller_release_current()
465 if (client->pid == id) in agp_find_client_in_controller()
521 new_client->pid = id; in agp_create_client()
592 client = agp_find_client_by_pid(current->pid); in agp_mmap()
[all …]
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-driver-wacom1 What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/speed
6 The /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/speed file
12 What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/led
23 What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status0_luminance
32 What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status1_luminance
40 What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status_led0_select
49 What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status_led1_select
57 What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/buttons_luminance
64 What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/button<n>_rawimg
/linux-4.1.27/tools/perf/
Dbuiltin-timechart.c90 int pid; member
190 int pid; member
197 static struct per_pid *find_create_pid(struct timechart *tchart, int pid) in find_create_pid() argument
202 if (cursor->pid == pid) in find_create_pid()
208 cursor->pid = pid; in find_create_pid()
214 static void pid_set_comm(struct timechart *tchart, int pid, char *comm) in pid_set_comm() argument
218 p = find_create_pid(tchart, pid); in pid_set_comm()
240 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument
243 p = find_create_pid(tchart, pid); in pid_fork()
247 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork()
[all …]
Dperf-sys.h175 pid_t pid, int cpu, int group_fd, in sys_perf_event_open() argument
180 fd = syscall(__NR_perf_event_open, attr, pid, cpu, in sys_perf_event_open()
185 test_attr__open(attr, pid, cpu, fd, group_fd, flags); in sys_perf_event_open()
Dbuiltin-script.c357 printf("%5d/%-5d ", sample->pid, sample->tid); in print_sample_start()
359 printf("%5d ", sample->pid); in print_sample_start()
627 thread = machine__findnew_thread(machine, event->comm.pid, event->comm.tid); in process_comm_event()
640 sample->pid = event->comm.pid; in process_comm_event()
663 thread = machine__findnew_thread(machine, event->fork.pid, event->fork.tid); in process_fork_event()
673 sample->pid = event->fork.pid; in process_fork_event()
690 thread = machine__findnew_thread(machine, event->fork.pid, event->fork.tid); in process_exit_event()
700 sample->pid = event->comm.pid; in process_exit_event()
724 thread = machine__findnew_thread(machine, event->mmap.pid, event->mmap.tid); in process_mmap_event()
734 sample->pid = event->mmap.pid; in process_mmap_event()
[all …]
/linux-4.1.27/drivers/tty/
Dn_r3964.c121 static int enable_signals(struct r3964_info *pInfo, struct pid *pid, int arg);
122 static int read_telegram(struct r3964_info *pInfo, struct pid *pid,
738 struct pid *pid) in findClient() argument
743 if (pClient->pid == pid) { in findClient()
750 static int enable_signals(struct r3964_info *pInfo, struct pid *pid, int arg) in enable_signals() argument
762 if (pClient->pid == pid) { in enable_signals()
764 pid_nr(pid)); in enable_signals()
774 put_pid(pClient->pid); in enable_signals()
782 pClient = findClient(pInfo, pid); in enable_signals()
794 TRACE_PS("add client %d to client list", pid_nr(pid)); in enable_signals()
[all …]
/linux-4.1.27/kernel/debug/kdb/
Dkdb_bt.c89 kdb_printf("Stack traceback for pid %d\n", p->pid); in kdb_bt1()
141 unsigned long pid; in kdb_bt() local
144 diag = kdbgetularg((char *)argv[1], &pid); in kdb_bt()
147 p = find_task_by_pid_ns(pid, &init_pid_ns); in kdb_bt()
152 kdb_printf("No process with pid == %ld found\n", pid); in kdb_bt()
/linux-4.1.27/Documentation/accounting/
Dtaskstats.txt17 "pid", "tid" and "task" are used interchangeably and refer to the standard
18 Linux task defined by struct task_struct. per-pid stats are the same as
30 socket (NETLINK_GENERIC family) and sends commands specifying a pid or a tgid.
31 The response contains statistics for a task (if pid is specified) or the sum of
36 one of the cpus in the cpumask, its per-pid statistics are sent to the
43 The latter contains the sum of per-pid stats for all threads in the thread
61 struct taskstats is the common accounting structure for both per-pid and
78 a pid/tgid consist of one attribute, of type TASKSTATS_CMD_ATTR_PID/TGID,
79 containing a u32 pid or tgid in the attribute payload. The pid/tgid denotes
96 a pid/tgid will be followed by some stats.
[all …]
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dmlx5_core.h44 (dev)->priv.name, __func__, __LINE__, current->pid, \
55 (dev)->priv.name, __func__, __LINE__, current->pid, \
60 (dev)->priv.name, __func__, __LINE__, current->pid, \
/linux-4.1.27/arch/s390/kernel/
Dcompat_wrapper.c74 COMPAT_SYSCALL_WRAP2(kill, int, pid, int, sig);
84 COMPAT_SYSCALL_WRAP2(setpgid, pid_t, pid, pid_t, pgid);
108 COMPAT_SYSCALL_WRAP1(getpgid, pid_t, pid);
116 COMPAT_SYSCALL_WRAP1(getsid, pid_t, pid);
121 COMPAT_SYSCALL_WRAP2(sched_setparam, pid_t, pid, struct sched_param __user *, param);
122 COMPAT_SYSCALL_WRAP2(sched_getparam, pid_t, pid, struct sched_param __user *, param);
123 COMPAT_SYSCALL_WRAP3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, para…
124 COMPAT_SYSCALL_WRAP1(sched_getscheduler, pid_t, pid);
202 COMPAT_SYSCALL_WRAP2(tkill, int, pid, int, sig);
203 COMPAT_SYSCALL_WRAP3(tgkill, int, tgid, int, pid, int, sig);
[all …]
/linux-4.1.27/drivers/media/usb/as102/
Das102_drv.c104 int index, u16 pid, int onoff) { in as10x_pid_filter() argument
117 ret = as10x_cmd_del_PID_filter(bus_adap, (uint16_t) pid); in as10x_pid_filter()
120 index, pid, ret); in as10x_pid_filter()
128 filter.pid = pid; in as10x_pid_filter()
133 index, filter.idx, filter.pid, ret); in as10x_pid_filter()
153 dvbdmxfeed->pid, 1); in as102_dvb_dmx_start_feed()
175 dvbdmxfeed->pid, 0); in as102_dvb_dmx_stop_feed()
/linux-4.1.27/drivers/connector/
Dcn_proc.c85 ev->event_data.fork.parent_pid = parent->pid; in proc_fork_connector()
88 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
114 ev->event_data.exec.process_pid = task->pid; in proc_exec_connector()
138 ev->event_data.id.process_pid = task->pid; in proc_id_connector()
178 ev->event_data.sid.process_pid = task->pid; in proc_sid_connector()
203 ev->event_data.ptrace.process_pid = task->pid; in proc_ptrace_connector()
206 ev->event_data.ptrace.tracer_pid = current->pid; in proc_ptrace_connector()
236 ev->event_data.comm.process_pid = task->pid; in proc_comm_connector()
262 ev->event_data.coredump.process_pid = task->pid; in proc_coredump_connector()
287 ev->event_data.exit.process_pid = task->pid; in proc_exit_connector()
/linux-4.1.27/arch/alpha/kernel/
Dsys_marvel.c43 unsigned int pid; in io7_device_interrupt() local
60 pid = vector >> 16; in io7_device_interrupt()
65 irq |= pid << MARVEL_IRQ_VEC_PE_SHIFT; /* merge the pid */ in io7_device_interrupt()
74 unsigned int pid; in io7_get_irq_ctl() local
77 pid = irq >> MARVEL_IRQ_VEC_PE_SHIFT; in io7_get_irq_ctl()
79 if (!(io7 = marvel_find_io7(pid))) { in io7_get_irq_ctl()
82 __func__, irq, pid); in io7_get_irq_ctl()
92 __func__, pid, irq); in io7_get_irq_ctl()
/linux-4.1.27/drivers/net/wireless/orinoco/
Dhermes_dld.c315 #define DEFINE_DEFAULT_PDR(pid, length, data) \ argument
320 } __packed default_pdr_data_##pid = { \
321 cpu_to_le16((sizeof(default_pdr_data_##pid)/ \
323 cpu_to_le16(pid), \
327 #define DEFAULT_PDR(pid) default_pdr_data_##pid argument
/linux-4.1.27/arch/um/os-Linux/drivers/
Dtuntap_user.c73 int pid, n, err; in tuntap_open_tramp() local
80 pid = run_helper(tuntap_pre_exec, &data, argv); in tuntap_open_tramp()
82 if (pid < 0) in tuntap_open_tramp()
83 return -pid; in tuntap_open_tramp()
109 helper_wait(pid); in tuntap_open_tramp()
Dethertap_user.c95 int pid, err, n; in etap_tramp() local
117 pid = run_helper(etap_pre_exec, &pe_data, args); in etap_tramp()
119 if (pid < 0) in etap_tramp()
120 err = pid; in etap_tramp()
132 err = helper_wait(pid); in etap_tramp()
/linux-4.1.27/kernel/trace/
Dtrace_functions_graph.c497 static void print_graph_proc(struct trace_seq *s, pid_t pid) in print_graph_proc() argument
506 trace_find_cmdline(pid, comm); in print_graph_proc()
508 sprintf(pid_str, "%d", pid); in print_graph_proc()
536 verif_pid(struct trace_seq *s, pid_t pid, int cpu, struct fgraph_data *data) in verif_pid() argument
546 if (*last_pid == pid) in verif_pid()
550 *last_pid = pid; in verif_pid()
566 print_graph_proc(s, pid); in verif_pid()
630 if (curr->ent.pid != next->ent.pid || in get_return_for_leaf()
654 enum trace_type type, int cpu, pid_t pid, u32 flags) in print_graph_irq() argument
674 print_graph_proc(s, pid); in print_graph_irq()
[all …]
Dblktrace.c68 static void trace_note(struct blk_trace *bt, pid_t pid, int action, in trace_note() argument
100 t->pid = pid; in trace_note()
122 trace_note(bt, tsk->pid, BLK_TN_PROCESS, tsk->comm, in trace_note_tsk()
173 pid_t pid) in act_log_check() argument
179 if (bt->pid && pid != bt->pid) in act_log_check()
210 pid_t pid; in __blk_add_trace() local
225 pid = tsk->pid; in __blk_add_trace()
226 if (act_log_check(bt, what, sector, pid)) in __blk_add_trace()
268 t->pid = pid; in __blk_add_trace()
520 bt->pid = buts->pid; in do_blk_trace_setup()
[all …]
/linux-4.1.27/fs/autofs4/
Dautofs_i.h44 current->pid, __func__, ##__VA_ARGS__)
48 current->pid, __func__, ##__VA_ARGS__)
52 current->pid, __func__, ##__VA_ARGS__)
98 pid_t pid; member
111 struct pid *oz_pgrp;
/linux-4.1.27/arch/tile/include/asm/
Dhardwall.h26 int proc_pid_hardwall(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_st…
Dswitch_to.h60 ((prev)->pid << _SIM_CONTROL_OPERATOR_BITS)); \
62 (current->pid << _SIM_CONTROL_OPERATOR_BITS)); \
/linux-4.1.27/samples/bpf/
Dtest_maps.c188 pid_t pid[tasks]; in run_parallel() local
192 pid[i] = fork(); in run_parallel()
193 if (pid[i] == 0) { in run_parallel()
196 } else if (pid[i] == -1) { in run_parallel()
204 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_parallel()
/linux-4.1.27/tools/lib/lockdep/
Dcommon.c26 if (current_obj.pid == 0) { in __curr()
29 current_obj.pid = syscall(__NR_gettid); in __curr()
/linux-4.1.27/arch/x86/um/shared/sysdep/
Dtls.h31 extern int os_set_thread_area(user_desc_t *info, int pid);
32 extern int os_get_thread_area(user_desc_t *info, int pid);
/linux-4.1.27/include/uapi/linux/dvb/
Dnet.h30 __u16 pid; member
45 __u16 pid; member
/linux-4.1.27/security/keys/
Drequest_key_auth.c77 seq_printf(m, " pid:%d ci:%zu", rka->pid, rka->callout_len); in request_key_auth_describe()
184 rka->pid = irka->pid; in request_key_auth_new()
191 rka->pid = current->pid; in request_key_auth_new()
/linux-4.1.27/arch/avr32/include/asm/
Dswitch_to.h20 ocd_write(PID, prev->pid); \
21 ocd_write(PID, current->pid); \
/linux-4.1.27/security/tomoyo/
Dmemory.c20 const pid_t pid = current->pid; in tomoyo_warn_oom() local
21 if (tomoyo_last_pid != pid) { in tomoyo_warn_oom()
24 tomoyo_last_pid = pid; in tomoyo_warn_oom()
/linux-4.1.27/fs/gfs2/
Dglock.h141 struct pid *pid; in gfs2_glock_is_locked_by_me() local
145 pid = task_pid(current); in gfs2_glock_is_locked_by_me()
149 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me()
/linux-4.1.27/drivers/media/usb/dvb-usb/
Ddtt200u.c45 static int dtt200u_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, int onoff) in dtt200u_pid_filter() argument
48 pid = onoff ? pid : 0; in dtt200u_pid_filter()
52 b_pid[2] = pid & 0xff; in dtt200u_pid_filter()
53 b_pid[3] = (pid >> 8) & 0x1f; in dtt200u_pid_filter()
/linux-4.1.27/sound/isa/
Dals100.c188 const struct pnp_card_device_id *pid) in snd_card_als100_probe() argument
203 if ((error = snd_card_als100_pnp(dev, acard, pcard, pid))) { in snd_card_als100_probe()
208 if (pid->driver_data == SB_HW_DT019X) in snd_card_als100_probe()
214 pid->driver_data, in snd_card_als100_probe()
222 if (pid->driver_data == SB_HW_DT019X) { in snd_card_als100_probe()
252 if (pid->driver_data == SB_HW_DT019X) in snd_card_als100_probe()
/linux-4.1.27/tools/lib/lockdep/uinclude/linux/
Dlockdep.h24 int pid; member
33 #define task_pid_nr(tsk) ((tsk)->pid)
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Devents.c450 peer->pid = LUSTRE_SRV_LNET_PID; in ptlrpc_uuid_to_peer()
526 lnet_pid_t pid; in ptl_get_pid() local
528 pid = LUSTRE_SRV_LNET_PID; in ptl_get_pid()
529 return pid; in ptl_get_pid()
535 lnet_pid_t pid; in ptlrpc_ni_init() local
537 pid = ptl_get_pid(); in ptlrpc_ni_init()
538 CDEBUG(D_NET, "My pid is: %x\n", pid); in ptlrpc_ni_init()
541 rc = LNetNIInit(pid); in ptlrpc_ni_init()
/linux-4.1.27/arch/blackfin/mm/
Dsram-alloc.c30 pid_t pid; member
87 per_cpu(free_l1_ssram_head, cpu).next->pid = 0; in l1sram_init()
117 per_cpu(free_l1_data_A_sram_head, cpu).next->pid = 0; in l1_data_sram_init()
140 per_cpu(free_l1_data_B_sram_head, cpu).next->pid = 0; in l1_data_sram_init()
174 per_cpu(free_l1_inst_sram_head, cpu).next->pid = 0; in l1_inst_sram_init()
239 free_l2_sram_head.next->pid = 0; in l2_sram_init()
308 pavail->pid = current->pid; in _sram_alloc()
377 pavail->pid = 0; in _sram_free()
821 pslot->size, pslot->pid, "ALLOCATED"); in _sram_proc_show()
831 pslot->size, pslot->pid, "FREE"); in _sram_proc_show()
/linux-4.1.27/drivers/media/pci/cx23885/
Daltera-ci.c520 u16 pid, int onoff) in altera_pid_control() argument
526 if ((pid == 0x2000) || (pid < 0x20)) in altera_pid_control()
531 netup_fpga_op_rw(inter, NETUP_CI_PID_ADDR0, (pid >> 3) & 0xff, 0); in altera_pid_control()
533 ((pid >> 11) & 0x03) | (pid_filt->nr << 2), 0); in altera_pid_control()
538 store |= (1 << (pid & 7)); in altera_pid_control()
540 store &= ~(1 << (pid & 7)); in altera_pid_control()
547 pid_filt->nr, pid, pid, onoff ? "off" : "on"); in altera_pid_control()
587 altera_pid_control(pid_filt, feed->pid, onoff ? 0 : 1); in altera_pid_feed_control()
594 if (feed->pid == 0x2000) in altera_pid_feed_control()
/linux-4.1.27/drivers/usb/host/
Dohci-dbg.c265 const char *toggle, *pid; in ohci_dump_td() local
275 case TD_DP_SETUP: pid = "SETUP"; break; in ohci_dump_td()
276 case TD_DP_IN: pid = "IN"; break; in ohci_dump_td()
277 case TD_DP_OUT: pid = "OUT"; break; in ohci_dump_td()
278 default: pid = "(bad pid)"; break; in ohci_dump_td()
282 (tmp & TD_DI) >> 21, pid, in ohci_dump_td()
442 ({ char *pid; in show_list()
444 case TD_DP_SETUP: pid = "setup"; break; in show_list()
445 case TD_DP_IN: pid = "in"; break; in show_list()
446 case TD_DP_OUT: pid = "out"; break; in show_list()
[all …]
/linux-4.1.27/fs/jffs2/
Dbackground.c53 jffs2_dbg(1, "Garbage collect thread is pid %d\n", tsk->pid); in jffs2_start_garbage_collect_thread()
55 ret = tsk->pid; in jffs2_start_garbage_collect_thread()
66 jffs2_dbg(1, "Killing GC task %d\n", c->gc_task->pid); in jffs2_stop_garbage_collect_thread()
/linux-4.1.27/arch/m32r/kernel/
Dprocess.c110 DPRINTK("pid = %d\n", current->pid); in exit_thread()
115 DPRINTK("pid = %d\n", current->pid); in flush_thread()
122 DPRINTK("pid = %d\n", dead_task->pid); in release_thread()
/linux-4.1.27/arch/frv/kernel/
Dsysctl.c128 pid_t pid; in procctl_frv_pin_cxnr() local
147 pid = simple_strtoul(buff, &p, 10); in procctl_frv_pin_cxnr()
151 return cxn_pin_by_pid(pid); in procctl_frv_pin_cxnr()
/linux-4.1.27/sound/firewire/bebob/
Dbebob.h168 unsigned int pid) in avc_bridgeco_fill_unit_addr() argument
174 buf[4] = 0xff & pid; in avc_bridgeco_fill_unit_addr()
180 unsigned int pid) in avc_bridgeco_fill_msu_addr() argument
185 buf[3] = 0xff & pid; in avc_bridgeco_fill_msu_addr()
/linux-4.1.27/security/yama/
Dyama_lsm.c226 while (walker->pid > 0) { in task_is_descendant()
324 child->pid, current->comm, current->pid); in yama_ptrace_access_check()
361 current->pid, parent->comm, parent->pid); in yama_ptrace_traceme()
/linux-4.1.27/drivers/usb/renesas_usbhs/
Dpipe.c287 u16 pid = usbhsp_pipectrl_get(pipe); in __usbhsp_pid_try_nak_if_stall() local
289 pid &= PID_MASK; in __usbhsp_pid_try_nak_if_stall()
295 switch (pid) { in __usbhsp_pid_try_nak_if_stall()
334 u16 pid = usbhsp_pipectrl_get(pipe); in usbhs_pipe_stall() local
336 pid &= PID_MASK; in usbhs_pipe_stall()
342 switch (pid) { in usbhs_pipe_stall()
354 u16 pid = usbhsp_pipectrl_get(pipe) & PID_MASK; in usbhs_pipe_is_stall() local
356 return (int)(pid == PID_STALL10 || pid == PID_STALL11); in usbhs_pipe_is_stall()
/linux-4.1.27/drivers/media/usb/ttusb-dec/
Dttusb_dec.c109 u16 pid[DMX_PES_OTHER]; member
401 __be16 pcr = htons(dec->pid[DMX_PES_PCR]); in ttusb_dec_set_pids()
402 __be16 audio = htons(dec->pid[DMX_PES_AUDIO]); in ttusb_dec_set_pids()
403 __be16 video = htons(dec->pid[DMX_PES_VIDEO]); in ttusb_dec_set_pids()
413 dvb_filter_pes2ts_init(&dec->a_pes2ts, dec->pid[DMX_PES_AUDIO], in ttusb_dec_set_pids()
415 dvb_filter_pes2ts_init(&dec->v_pes2ts, dec->pid[DMX_PES_VIDEO], in ttusb_dec_set_pids()
956 dec->pid[DMX_PES_PCR] = dvbdmxfeed->pid; in ttusb_dec_start_ts_feed()
957 dec->pid[DMX_PES_VIDEO] = dvbdmxfeed->pid; in ttusb_dec_start_ts_feed()
964 dec->pid[DMX_PES_AUDIO] = dvbdmxfeed->pid; in ttusb_dec_start_ts_feed()
970 dec->pid[DMX_PES_TELETEXT] = dvbdmxfeed->pid; in ttusb_dec_start_ts_feed()
[all …]
/linux-4.1.27/arch/tile/kernel/
Dsmpboot.c68 rc = sched_setaffinity(current->pid, cpumask_of(boot_cpu)); in smp_prepare_cpus()
128 long rc = sched_setaffinity(current->pid, &init_affinity); in reset_init_affinity()
265 rc = sched_setaffinity(current->pid, cpumask_of(cpu)); in smp_cpus_done()
/linux-4.1.27/fs/cifs/
Dfile.c300 cfile->pid = current->tgid; in cifs_new_fileinfo()
554 cfile->pid); in cifs_open()
817 lock->pid = current->tgid; in cifs_lock_init()
851 if (rw_check != CIFS_LOCK_OP && current->tgid == li->pid && in cifs_find_fid_lock_conflict()
860 current->tgid == li->pid) || type == li->type)) in cifs_find_fid_lock_conflict()
912 flock->fl_pid = conf_lock->pid; in cifs_lock_test()
1084 cur->Pid = cpu_to_le16(li->pid); in cifs_push_mandatory_locks()
1119 __u32 pid; member
1181 lck->pid = flock->fl_pid; in cifs_push_posix_locks()
1192 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
[all …]
/linux-4.1.27/drivers/usb/phy/
Dphy-ulpi.c183 int i, vid, pid, ret; in ulpi_init() local
193 pid = ulpi_id >> 16; in ulpi_init()
195 pr_info("ULPI transceiver vendor/product ID 0x%04x/0x%04x\n", vid, pid); in ulpi_init()
198 if (ulpi_ids[i].id == ULPI_ID(vid, pid)) { in ulpi_init()

12345