/linux-4.4.14/drivers/gpu/drm/ |
H A D | drm_trace.h | 27 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, \
|
/linux-4.4.14/arch/um/include/shared/ |
H A D | registers.h | 12 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);
|
H A D | irq_user.h | 29 extern int activate_ipi(int fd, int pid);
|
H A D | ptrace_user.h | 12 extern int ptrace_getregs(long pid, unsigned long *regs_out); 13 extern int ptrace_setregs(long pid, unsigned long *regs_in);
|
/linux-4.4.14/arch/x86/um/os-Linux/ |
H A D | registers.c | 15 int save_fp_registers(int pid, unsigned long *fp_regs) save_fp_registers() argument 17 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) save_fp_registers() 22 int restore_fp_registers(int pid, unsigned long *fp_regs) restore_fp_registers() argument 24 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) restore_fp_registers() 31 int save_fpx_registers(int pid, unsigned long *fp_regs) save_fpx_registers() argument 33 if (ptrace(PTRACE_GETFPXREGS, pid, 0, fp_regs) < 0) save_fpx_registers() 38 int restore_fpx_registers(int pid, unsigned long *fp_regs) restore_fpx_registers() argument 40 if (ptrace(PTRACE_SETFPXREGS, pid, 0, fp_regs) < 0) restore_fpx_registers() 45 int get_fp_registers(int pid, unsigned long *regs) get_fp_registers() argument 48 return save_fpx_registers(pid, regs); get_fp_registers() 50 return save_fp_registers(pid, regs); get_fp_registers() 53 int put_fp_registers(int pid, unsigned long *regs) put_fp_registers() argument 56 return restore_fpx_registers(pid, regs); put_fp_registers() 58 return restore_fp_registers(pid, regs); put_fp_registers() 61 void arch_init_registers(int pid) arch_init_registers() argument 66 err = ptrace(PTRACE_GETFPXREGS, pid, 0, &fpx_regs); arch_init_registers() 78 int get_fp_registers(int pid, unsigned long *regs) get_fp_registers() argument 80 return save_fp_registers(pid, regs); get_fp_registers() 83 int put_fp_registers(int pid, unsigned long *regs) put_fp_registers() argument 85 return restore_fp_registers(pid, regs); put_fp_registers()
|
H A D | prctl.c | 9 int os_arch_prctl(int pid, int code, unsigned long *addr) os_arch_prctl() argument 11 return ptrace(PTRACE_ARCH_PRCTL, pid, (unsigned long) addr, code); os_arch_prctl()
|
H A D | tls.c | 47 int os_set_thread_area(user_desc_t *info, int pid) os_set_thread_area() argument 51 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, os_set_thread_area() 58 int os_get_thread_area(user_desc_t *info, int pid) os_get_thread_area() argument 62 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, os_get_thread_area()
|
/linux-4.4.14/include/linux/ |
H A D | pid.h | 15 * What is struct pid? 17 * A struct pid is the kernel's internal notion of a process identifier. 19 * there are processes attached to it the struct pid lives in a hash 21 * quickly from the numeric pid value. The attached processes may be 22 * quickly accessed by following pointers from struct pid. 25 * problem. The process originally with that pid may have exited and the 26 * pid allocator wrapped, and another process could have come along 27 * and been assigned that pid. 34 * a struct pid is about 64 bytes. 36 * Holding a reference to struct pid solves both of these problems. 38 * resources, and since a new struct pid is allocated when the numeric pid 45 * struct upid is used to get the id of the struct pid, as it is 46 * seen in particular namespace. Later the struct pid is found with 57 struct pid struct 61 /* lists of tasks that use this pid */ 67 extern struct pid init_struct_pid; 72 struct pid *pid; member in struct:pid_link 75 static inline struct pid *get_pid(struct pid *pid) get_pid() argument 77 if (pid) get_pid() 78 atomic_inc(&pid->count); get_pid() 79 return pid; 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); 86 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type); 94 struct pid *pid); 105 * find_pid_ns() finds the pid in the namespace specified 106 * find_vpid() finds the pid by its virtual id, i.e. in the current namespace 110 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns); 111 extern struct pid *find_vpid(int nr); 116 extern struct pid *find_get_pid(int nr); 117 extern struct pid *find_ge_pid(int nr, struct pid_namespace *); 120 extern struct pid *alloc_pid(struct pid_namespace *ns); 121 extern void free_pid(struct pid *pid); 125 * ns_of_pid() returns the pid namespace in which the specified pid was 130 * an attached 'struct pid' (see attach_pid(), detach_pid()) i.e @pid 131 * is expected to be non-NULL. If @pid is NULL, caller should handle 132 * the resulting NULL pid-ns. 134 static inline struct pid_namespace *ns_of_pid(struct pid *pid) ns_of_pid() argument 137 if (pid) ns_of_pid() 138 ns = pid->numbers[pid->level].ns; ns_of_pid() 143 * is_child_reaper returns true if the pid is the init process 146 * with the pid number. 148 static inline bool is_child_reaper(struct pid *pid) is_child_reaper() argument 150 return pid->numbers[pid->level].nr == 1; is_child_reaper() 154 * the helpers to get the pid's id seen from different namespaces 157 * pid_vnr() : virtual id, i.e. the id seen from the pid namespace of 164 static inline pid_t pid_nr(struct pid *pid) pid_nr() argument 167 if (pid) pid_nr() 168 nr = pid->numbers[0].nr; pid_nr() 172 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns); 173 pid_t pid_vnr(struct pid *pid); 175 #define do_each_pid_task(pid, type, task) \ 177 if ((pid) != NULL) \ 179 &(pid)->tasks[type], pids[type].node) { 183 * the same pid in the middle of de_thread(). 185 #define while_each_pid_task(pid, type, task) \ 191 #define do_each_pid_thread(pid, type, task) \ 192 do_each_pid_task(pid, type, task) { \ 196 #define while_each_pid_thread(pid, type, task) \ 199 } while_each_pid_task(pid, type, task)
|
H A D | threads.h | 25 * This controls the default maximum pid allocated to a process 38 * on original pid max of 32k for 32 cpus. Also, increase the 40 * on similar defaults. See kernel/pid.c:pidmap_init() for details.
|
H A D | msg.h | 26 pid_t q_lspid; /* pid of last msgsnd */ 27 pid_t q_lrpid; /* last receive pid */
|
H A D | posix-timers.h | 31 * The most significant 29 bits hold either a pid or a file descriptor. 53 #define MAKE_PROCESS_CPUCLOCK(pid, clock) \ 54 ((~(clockid_t) (pid) << 3) | (clockid_t) (clock)) 75 struct pid *it_pid; /* pid of process to send signal to */
|
H A D | agpgart.h | 66 pid_t pid; /* pid of process */ member in struct:agp_region 94 pid_t pid; member in struct:agp_client 102 pid_t pid; member in struct:agp_controller
|
H A D | rtnetlink.h | 10 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, 115 extern int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
|
/linux-4.4.14/tools/perf/scripts/perl/ |
H A D | rw-by-pid.pl | 75 printf("read counts by pid:\n\n"); 77 printf("%6s %20s %10s %10s %10s\n", "pid", "comm", 82 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, 93 printf("\nfailed reads by pid:\n\n"); 95 printf("%6s %20s %6s %10s\n", "pid", "comm", "error #", "# errors"); 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; 105 push @errcounts, [$pid, $comm, $error, $errcount]; 116 printf("\nwrite counts by pid:\n\n"); 118 printf("%6s %20s %10s %10s\n", "pid", "comm", 123 foreach my $pid (sort { ($writes{$b}{bytes_written} || 0) <=> 125 my $comm = $writes{$pid}{comm} || ""; 126 my $total_writes = $writes{$pid}{total_writes} || 0; 127 my $bytes_written = $writes{$pid}{bytes_written} || 0; 129 printf("%6s %-20s %10s %10s\n", $pid, $comm, 133 printf("\nfailed writes by pid:\n\n"); 135 printf("%6s %20s %6s %10s\n", "pid", "comm", "error #", "# errors"); 141 foreach my $pid (keys %writes) { 142 foreach my $error (keys %{$writes{$pid}{errors}}) { 143 my $comm = $writes{$pid}{comm} || ""; 144 my $errcount = $writes{$pid}{errors}{$error} || 0; 145 push @errcounts, [$pid, $comm, $error, $errcount];
|
H A D | rwtop.pl | 8 # pid. If an [interval] arg is specified, the display will be 129 printf("\nread counts by pid:\n\n"); 131 printf("%6s %20s %10s %10s %10s\n", "pid", "comm", 136 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, 153 printf("\nwrite counts by pid:\n\n"); 155 printf("%6s %20s %10s %13s\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; 166 printf("%6s %-20s %10s %13s\n", $pid, $comm,
|
H A D | check-perf-trace.pl | 102 my ($event_name, $cpu, $secs, $nsecs, $pid, $comm) = @_; 105 $event_name, $cpu, $secs, $nsecs, $pid, $comm);
|
/linux-4.4.14/arch/x86/um/ |
H A D | ptrace_user.c | 9 int ptrace_getregs(long pid, unsigned long *regs_out) ptrace_getregs() argument 11 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0) ptrace_getregs() 16 int ptrace_setregs(long pid, unsigned long *regs) ptrace_setregs() argument 18 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0) ptrace_setregs()
|
H A D | syscalls_64.c | 17 int pid = task->mm->context.id.u.pid; arch_prctl() local 35 ret = restore_registers(pid, ¤t->thread.regs.regs); arch_prctl() 52 ret = os_arch_prctl(pid, code, ptr); arch_prctl() 59 ret = save_registers(pid, ¤t->thread.regs.regs); arch_prctl() 62 ret = save_registers(pid, ¤t->thread.regs.regs); arch_prctl()
|
/linux-4.4.14/include/trace/events/ |
H A D | task.h | 15 __field( pid_t, pid) 22 __entry->pid = task->pid; 28 TP_printk("pid=%d comm=%s clone_flags=%lx oom_score_adj=%hd", 29 __entry->pid, __entry->comm, 40 __field( pid_t, pid) 47 __entry->pid = task->pid; 53 TP_printk("pid=%d oldcomm=%s newcomm=%s oom_score_adj=%hd", 54 __entry->pid, __entry->oldcomm,
|
H A D | oom.h | 15 __field( pid_t, pid) 21 __entry->pid = task->pid; 26 TP_printk("pid=%d comm=%s oom_score_adj=%hd", 27 __entry->pid, __entry->comm, __entry->oom_score_adj)
|
H A D | sched.h | 22 __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; 78 TP_printk("comm=%s pid=%d prio=%d target_cpu=%03d", 79 __entry->comm, __entry->pid, __entry->prio, 144 __entry->prev_pid = prev->pid; 148 __entry->next_pid = next->pid; 175 __field( pid_t, pid ) 183 __entry->pid = p->pid; 189 TP_printk("comm=%s pid=%d prio=%d orig_cpu=%d dest_cpu=%d", 190 __entry->comm, __entry->pid, __entry->prio, 202 __field( pid_t, pid ) 208 __entry->pid = p->pid; 212 TP_printk("comm=%s pid=%d prio=%d", 213 __entry->comm, __entry->pid, __entry->prio) 243 TP_PROTO(struct pid *pid), 245 TP_ARGS(pid), 249 __field( pid_t, pid ) 255 __entry->pid = pid_nr(pid); 259 TP_printk("comm=%s pid=%d prio=%d", 260 __entry->comm, __entry->pid, __entry->prio) 281 __entry->parent_pid = parent->pid; 283 __entry->child_pid = child->pid; 286 TP_printk("comm=%s pid=%d child_comm=%s child_pid=%d", 303 __field( pid_t, pid ) 309 __entry->pid = p->pid; 313 TP_printk("filename=%s pid=%d old_pid=%d", __get_str(filename), 314 __entry->pid, __entry->old_pid) 329 __field( pid_t, pid ) 335 __entry->pid = tsk->pid; 339 TP_printk("comm=%s pid=%d delay=%Lu [ns]", 340 __entry->comm, __entry->pid, 388 __field( pid_t, pid ) 395 __entry->pid = tsk->pid; 400 TP_printk("comm=%s pid=%d runtime=%Lu [ns] vruntime=%Lu [ns]", 401 __entry->comm, __entry->pid, 422 __field( pid_t, pid ) 429 __entry->pid = tsk->pid; 434 TP_printk("comm=%s pid=%d oldprio=%d newprio=%d", 435 __entry->comm, __entry->pid, 446 __field( pid_t, pid ) 451 __entry->pid = tsk->pid; 454 TP_printk("comm=%s pid=%d", __entry->comm, __entry->pid) 465 __field( pid_t, pid ) 475 __entry->pid = task_pid_nr(tsk); 484 TP_printk("pid=%d tgid=%d ngid=%d src_cpu=%d src_nid=%d dst_cpu=%d dst_nid=%d", 485 __entry->pid, __entry->tgid, __entry->ngid,
|
H A D | migrate.h | 81 __field( pid_t, pid) 88 __entry->pid = p->pid; 93 TP_printk("comm=%s pid=%d dst_nid=%d nr_pages=%lu", 95 __entry->pid,
|
H A D | signal.h | 62 __field( pid_t, pid ) 71 __entry->pid = task->pid; 76 TP_printk("sig=%d errno=%d code=%d comm=%s pid=%d grp=%d res=%d", 78 __entry->comm, __entry->pid, __entry->group,
|
H A D | timer.h | 305 * @pid: pid of the process which owns the timer 310 TP_PROTO(int which, struct pid *pid, cputime_t now), 312 TP_ARGS(which, pid, now), 316 __field( pid_t, pid ) 323 __entry->pid = pid_nr(pid); 326 TP_printk("which=%d pid=%d now=%llu", __entry->which, 327 (int) __entry->pid, (unsigned long long)__entry->now)
|
/linux-4.4.14/kernel/ |
H A D | pid.c | 8 * pid-structures are backing objects for tasks sharing a given ID to chain 46 struct pid init_struct_pid = INIT_STRUCT_PID; 131 * at the pid allocation time (there's also a sysctl for this, but racing 134 * "earlier" value prevails, then a pid may get reused immediately. 140 * we started looking for a pid. 142 * 'pid' is the pid that we eventually found. 144 static void set_last_pid(struct pid_namespace *pid_ns, int base, int pid) set_last_pid() argument 150 last_write = cmpxchg(&pid_ns->last_pid, prev, pid); set_last_pid() 151 } while ((prev != last_write) && (pid_before(base, last_write, pid))); set_last_pid() 156 int i, offset, max_scan, pid, last = pid_ns->last_pid; alloc_pidmap() local 159 pid = last + 1; alloc_pidmap() 160 if (pid >= pid_max) alloc_pidmap() 161 pid = RESERVED_PIDS; alloc_pidmap() 162 offset = pid & BITS_PER_PAGE_MASK; alloc_pidmap() 163 map = &pid_ns->pidmap[pid/BITS_PER_PAGE]; alloc_pidmap() 191 set_last_pid(pid_ns, last, pid); alloc_pidmap() 192 return pid; alloc_pidmap() 197 pid = mk_pid(pid_ns, map, offset); alloc_pidmap() 198 if (pid >= pid_max) alloc_pidmap() 211 pid = mk_pid(pid_ns, map, offset); alloc_pidmap() 237 void put_pid(struct pid *pid) put_pid() argument 241 if (!pid) put_pid() 244 ns = pid->numbers[pid->level].ns; put_pid() 245 if ((atomic_read(&pid->count) == 1) || put_pid() 246 atomic_dec_and_test(&pid->count)) { put_pid() 247 kmem_cache_free(ns->pid_cachep, pid); put_pid() 255 struct pid *pid = container_of(rhp, struct pid, rcu); delayed_put_pid() local 256 put_pid(pid); delayed_put_pid() 259 void free_pid(struct pid *pid) free_pid() argument 266 for (i = 0; i <= pid->level; i++) { free_pid() 267 struct upid *upid = pid->numbers + i; free_pid() 273 /* When all that is left in the pid namespace free_pid() 291 for (i = 0; i <= pid->level; i++) free_pid() 292 free_pidmap(pid->numbers + i); free_pid() 294 call_rcu(&pid->rcu, delayed_put_pid); free_pid() 297 struct pid *alloc_pid(struct pid_namespace *ns) alloc_pid() 299 struct pid *pid; alloc_pid() local 306 pid = kmem_cache_alloc(ns->pid_cachep, GFP_KERNEL); alloc_pid() 307 if (!pid) alloc_pid() 311 pid->level = ns->level; alloc_pid() 319 pid->numbers[i].nr = nr; alloc_pid() 320 pid->numbers[i].ns = tmp; alloc_pid() 324 if (unlikely(is_child_reaper(pid))) { alloc_pid() 330 atomic_set(&pid->count, 1); alloc_pid() 332 INIT_HLIST_HEAD(&pid->tasks[type]); alloc_pid() 334 upid = pid->numbers + ns->level; alloc_pid() 338 for ( ; upid >= pid->numbers; --upid) { alloc_pid() 345 return pid; alloc_pid() 353 free_pidmap(pid->numbers + i); alloc_pid() 355 kmem_cache_free(ns->pid_cachep, pid); alloc_pid() 366 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) find_pid_ns() 373 return container_of(pnr, struct pid, find_pid_ns() 380 struct pid *find_vpid(int nr) find_vpid() 392 hlist_add_head_rcu(&link->node, &link->pid->tasks[type]); attach_pid() 396 struct pid *new) __change_pid() 399 struct pid *pid; __change_pid() local 403 pid = link->pid; __change_pid() 406 link->pid = new; __change_pid() 409 if (!hlist_empty(&pid->tasks[tmp])) __change_pid() 412 free_pid(pid); __change_pid() 421 struct pid *pid) change_pid() 423 __change_pid(task, type, pid); change_pid() 431 new->pids[type].pid = old->pids[type].pid; transfer_pid() 435 struct task_struct *pid_task(struct pid *pid, enum pid_type type) pid_task() argument 438 if (pid) { pid_task() 440 first = rcu_dereference_check(hlist_first_rcu(&pid->tasks[type]), pid_task() 464 struct pid *get_task_pid(struct task_struct *task, enum pid_type type) get_task_pid() 466 struct pid *pid; get_task_pid() local 470 pid = get_pid(rcu_dereference(task->pids[type].pid)); get_task_pid() 472 return pid; get_task_pid() 476 struct task_struct *get_pid_task(struct pid *pid, enum pid_type type) get_pid_task() argument 480 result = pid_task(pid, type); get_pid_task() 488 struct pid *find_get_pid(pid_t nr) find_get_pid() 490 struct pid *pid; find_get_pid() local 493 pid = get_pid(find_vpid(nr)); find_get_pid() 496 return pid; find_get_pid() 500 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) pid_nr_ns() argument 505 if (pid && ns->level <= pid->level) { pid_nr_ns() 506 upid = &pid->numbers[ns->level]; pid_nr_ns() 514 pid_t pid_vnr(struct pid *pid) pid_vnr() argument 516 return pid_nr_ns(pid, task_active_pid_ns(current)); pid_vnr() 531 nr = pid_nr_ns(rcu_dereference(task->pids[type].pid), ns); __task_pid_nr_ns() 552 * Used by proc to find the first pid that is greater than or equal to nr. 554 * If there is a pid at nr this function is exactly the same as find_pid_ns. 556 struct pid *find_ge_pid(int nr, struct pid_namespace *ns) find_ge_pid() 558 struct pid *pid; find_ge_pid() local 561 pid = find_pid_ns(nr, ns); find_ge_pid() 562 if (pid) find_ge_pid() 567 return pid; find_ge_pid() 571 * The pid hash table is scaled according to the amount of memory in the 606 init_pid_ns.pid_cachep = KMEM_CACHE(pid, pidmap_init() 420 change_pid(struct task_struct *task, enum pid_type type, struct pid *pid) change_pid() argument
|
H A D | taskstats.c | 63 pid_t pid; member in struct:listener 108 * Send taskstats data in @skb to listener with nl_pid @pid 143 rc = genlmsg_unicast(&init_net, skb_cur, s->pid); send_cpu_listeners() 193 static int fill_stats_for_pid(pid_t pid, struct taskstats *stats) fill_stats_for_pid() argument 198 tsk = find_task_by_vpid(pid); fill_stats_for_pid() 279 static int add_del_listener(pid_t pid, const struct cpumask *mask, int isadd) add_del_listener() argument 303 s->pid = pid; for_each_cpu() 309 if (s2->pid == pid && s2->valid) for_each_cpu() 327 if (s->pid == pid) { for_each_cpu() 364 static struct taskstats *mk_reply(struct sk_buff *skb, int type, u32 pid) mk_reply() argument 376 * two NLA headers and the pid (each 4 bytes), actually mk_reply() 400 if (nla_put(skb, type, sizeof(pid), &pid) < 0) { mk_reply() 515 u32 pid; cmd_attr_pid() local 525 pid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_PID]); cmd_attr_pid() 526 stats = mk_reply(rep_skb, TASKSTATS_TYPE_PID, pid); cmd_attr_pid() 530 rc = fill_stats_for_pid(pid, stats); cmd_attr_pid() 606 /* Send pid data out on exit */ taskstats_exit()
|
H A D | cgroup_pids.c | 84 * pids_cancel - uncharge the local pid count 85 * @pids: the pid cgroup state 88 * This function will WARN if the pid count goes under 0, because such a case is 101 * pids_uncharge - hierarchically uncharge the pid count 102 * @pids: the pid cgroup state 114 * pids_charge - hierarchically charge the pid count 115 * @pids: the pid cgroup state 118 * This function does *not* follow the pid limit set. It cannot fail and the new 119 * pid count may exceed the limit. This is only used for reverting failed 131 * pids_try_charge - hierarchically try to charge the pid count 132 * @pids: the pid cgroup state
|
H A D | pid_namespace.c | 11 #include <linux/pid.h> 35 * @nr_ids: the number of numerical ids this pid will have to carry 54 sizeof(struct pid) + (nr_ids - 1) * sizeof(struct upid), create_pid_cachep() 79 /* MAX_PID_NS_LEVEL is needed for limiting size of 'struct pid' */ 191 /* Don't allow any more processes into the pid namespace */ zap_pid_ns_processes() 212 * pid namespace has just a few processes. Or we need to zap_pid_ns_processes() 213 * maintain a tasklist for each pid namespace. zap_pid_ns_processes() 251 * us and thus we need to ensure that pid->child_reaper stays valid zap_pid_ns_processes() 370 * Only allow entering the current active pid namespace pidns_install() 371 * or a child of the current active pid namespace. pidns_install() 373 * This is required for fork to return a usable pid value and pidns_install() 375 * children can not escape their current pid namespace. pidns_install() 392 .name = "pid",
|
H A D | capability.c | 117 static inline int cap_get_target_pid(pid_t pid, kernel_cap_t *pEp, cap_get_target_pid() argument 122 if (pid && (pid != task_pid_vnr(current))) { cap_get_target_pid() 127 target = find_task_by_vpid(pid); cap_get_target_pid() 143 * target pid data 152 pid_t pid; SYSCALL_DEFINE2() local 160 if (get_user(pid, &header->pid)) SYSCALL_DEFINE2() 163 if (pid < 0) SYSCALL_DEFINE2() 166 ret = cap_get_target_pid(pid, &pE, &pI, &pP); SYSCALL_DEFINE2() 208 * target pid data 230 pid_t pid; SYSCALL_DEFINE2() local 236 if (get_user(pid, &header->pid)) SYSCALL_DEFINE2() 240 if (pid != 0 && pid != task_pid_vnr(current)) SYSCALL_DEFINE2()
|
/linux-4.4.14/arch/um/os-Linux/ |
H A D | registers.c | 14 int save_registers(int pid, struct uml_pt_regs *regs) save_registers() argument 18 err = ptrace(PTRACE_GETREGS, pid, 0, regs->gp); save_registers() 24 int restore_registers(int pid, struct uml_pt_regs *regs) restore_registers() argument 28 err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp); restore_registers() 39 int init_registers(int pid) init_registers() argument 43 err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); init_registers() 47 arch_init_registers(pid); init_registers() 48 get_fp_registers(pid, exec_fp_regs); init_registers()
|
H A D | helper.c | 41 /* Returns either the pid of the child process we run or -E* on failure. */ run_helper() 46 int pid, fds[2], ret, n; run_helper() local 74 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); run_helper() 75 if (pid < 0) { run_helper() 91 ret = pid; run_helper() 99 CATCH_EINTR(waitpid(pid, NULL, __WALL)); run_helper() 117 int pid, status, err; run_helper_thread() local 124 pid = clone(proc, (void *) sp, flags, arg); run_helper_thread() 125 if (pid < 0) { run_helper_thread() 132 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); run_helper_thread() 133 if (pid < 0) { run_helper_thread() 137 pid = err; run_helper_thread() 145 return pid; run_helper_thread() 148 int helper_wait(int pid) helper_wait() argument 153 CATCH_EINTR(ret = waitpid(pid, &status, wflags)); helper_wait() 156 "errno = %d\n", pid, errno); helper_wait() 160 "status 0x%x\n", pid, status); helper_wait()
|
H A D | start_up.c | 32 int pid = os_getpid(), ppid = getppid(); ptrace_child() local 38 kill(pid, SIGKILL); ptrace_child() 40 kill(pid, SIGSTOP); ptrace_child() 48 if (sc_result == pid) ptrace_child() 95 int pid, n, status; start_ptraced_child() local 99 pid = fork(); start_ptraced_child() 100 if (pid == 0) start_ptraced_child() 102 else if (pid < 0) start_ptraced_child() 105 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); start_ptraced_child() 112 return pid; start_ptraced_child() 121 static int stop_ptraced_child(int pid, int exitcode, int mustexit) stop_ptraced_child() argument 125 if (ptrace(PTRACE_CONT, pid, 0, 0) < 0) { stop_ptraced_child() 129 CATCH_EINTR(n = waitpid(pid, &status, 0)); stop_ptraced_child() 167 int pid, n, status, count=0; check_sysemu() local 171 pid = start_ptraced_child(); check_sysemu() 173 if (ptrace(PTRACE_SYSEMU, pid, 0, 0) < 0) check_sysemu() 176 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); check_sysemu() 183 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) check_sysemu() 191 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_RET_OFFSET, os_getpid()); check_sysemu() 198 if (stop_ptraced_child(pid, 0, 0) < 0) check_sysemu() 206 pid = start_ptraced_child(); check_sysemu() 208 if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0, check_sysemu() 214 if (ptrace(PTRACE_SYSEMU_SINGLESTEP, pid, 0, 0) < 0) check_sysemu() 216 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); check_sysemu() 227 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_RET_OFFSET, check_sysemu() 243 if (stop_ptraced_child(pid, 0, 0) < 0) check_sysemu() 254 stop_ptraced_child(pid, 1, 0); check_sysemu() 261 int pid, syscall, n, status; check_ptrace() local 264 pid = start_ptraced_child(); check_ptrace() 266 if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0, check_ptrace() 271 if (ptrace(PTRACE_SYSCALL, pid, 0, 0) < 0) check_ptrace() 274 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); check_ptrace() 283 syscall = ptrace(PTRACE_PEEKUSER, pid, PT_SYSCALL_NR_OFFSET, check_ptrace() 286 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_NR_OFFSET, check_ptrace() 294 stop_ptraced_child(pid, 0, 1); check_ptrace() 324 int pid; os_early_checks() local 336 pid = start_ptraced_child(); os_early_checks() 337 if (init_registers(pid)) os_early_checks() 339 stop_ptraced_child(pid, 1, 1); os_early_checks()
|
H A D | process.c | 27 unsigned long os_process_pc(int pid) os_process_pc() argument 33 sprintf(proc_stat, "/proc/%d/stat", pid); os_process_pc() 59 int os_process_parent(int pid) os_process_parent() argument 65 if (pid == -1) os_process_parent() 68 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); os_process_parent() 93 void os_alarm_process(int pid) os_alarm_process() argument 95 kill(pid, SIGALRM); os_alarm_process() 98 void os_stop_process(int pid) os_stop_process() argument 100 kill(pid, SIGSTOP); os_stop_process() 103 void os_kill_process(int pid, int reap_child) os_kill_process() argument 105 kill(pid, SIGKILL); os_kill_process() 107 CATCH_EINTR(waitpid(pid, NULL, __WALL)); os_kill_process() 115 void os_kill_ptraced_process(int pid, int reap_child) os_kill_ptraced_process() argument 117 kill(pid, SIGKILL); os_kill_ptraced_process() 118 ptrace(PTRACE_KILL, pid); os_kill_ptraced_process() 119 ptrace(PTRACE_CONT, pid); os_kill_ptraced_process() 121 CATCH_EINTR(waitpid(pid, NULL, __WALL)); os_kill_ptraced_process()
|
H A D | umid.c | 135 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; is_umdir_used() 136 char pid[sizeof("nnnnn\0")], *end; is_umdir_used() local 139 n = snprintf(file, sizeof(file), "%s/pid", dir); is_umdir_used() 141 printk(UM_KERN_ERR "is_umdir_used - pid filename too long\n"); is_umdir_used() 151 printk(UM_KERN_ERR "is_umdir_used : couldn't open pid " is_umdir_used() 158 n = read(fd, pid, sizeof(pid)); is_umdir_used() 160 printk(UM_KERN_ERR "is_umdir_used : couldn't read pid file " is_umdir_used() 164 printk(UM_KERN_ERR "is_umdir_used : couldn't read pid file " is_umdir_used() 169 p = strtoul(pid, &end, 0); is_umdir_used() 170 if (end == pid) { is_umdir_used() 171 printk(UM_KERN_ERR "is_umdir_used : couldn't parse pid file " is_umdir_used() 177 printk(UM_KERN_ERR "umid \"%s\" is already in use by pid %d\n", is_umdir_used() 210 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; create_pid_file() 211 char pid[sizeof("nnnnn\0")]; create_pid_file() local 214 if (umid_file_name("pid", file, sizeof(file))) create_pid_file() 219 printk(UM_KERN_ERR "Open of machine pid file \"%s\" failed: " create_pid_file() 224 snprintf(pid, sizeof(pid), "%d\n", getpid()); create_pid_file() 225 n = write(fd, pid, strlen(pid)); create_pid_file() 226 if (n != strlen(pid)) create_pid_file() 227 printk(UM_KERN_ERR "Write of pid file failed - err = %d\n", create_pid_file() 380 " The location to place the pid and umid files.\n\n"
|
/linux-4.4.14/tools/perf/util/ |
H A D | thread_map.h | 9 pid_t pid; member in struct:thread_map_data 20 struct thread_map *thread_map__new_by_pid(pid_t pid); 23 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid); 28 struct thread_map *thread_map__new_str(const char *pid, 40 return map->map[thread].pid; thread_map__pid() 44 thread_map__set_pid(struct thread_map *map, int thread, pid_t pid) thread_map__set_pid() argument 46 map->map[thread].pid = pid; thread_map__set_pid()
|
H A D | cloexec.c | 31 pid_t pid = -1; perf_flag_probe() local 39 * Using -1 for the pid is a workaround to avoid gratuitous jump label perf_flag_probe() 44 fd = sys_perf_event_open(&attr, pid, cpu, -1, perf_flag_probe() 46 if (fd < 0 && pid == -1 && errno == EACCES) { perf_flag_probe() 47 pid = 0; perf_flag_probe() 65 fd = sys_perf_event_open(&attr, pid, cpu, -1, 0); perf_flag_probe() 66 if (fd < 0 && pid == -1 && errno == EACCES) { perf_flag_probe() 67 pid = 0; perf_flag_probe()
|
H A D | values.h | 9 u32 *pid, *tid; member in struct:perf_read_values 21 u32 pid, u32 tid,
|
H A D | values.c | 9 values->pid = malloc(values->threads_max * sizeof(*values->pid)); perf_read_values_init() 12 if (!values->pid || !values->tid || !values->value) perf_read_values_init() 36 zfree(&values->pid); perf_read_values_destroy() 47 values->pid = realloc(values->pid, perf_read_values__enlarge_threads() 48 values->threads_max * sizeof(*values->pid)); perf_read_values__enlarge_threads() 53 if (!values->pid || !values->tid || !values->value) perf_read_values__enlarge_threads() 58 u32 pid, u32 tid) perf_read_values__findnew_thread() 63 if (values->pid[i] == pid && values->tid[i] == tid) perf_read_values__findnew_thread() 70 values->pid[i] = pid; perf_read_values__findnew_thread() 119 u32 pid, u32 tid, perf_read_values_add_value() 124 tindex = perf_read_values__findnew_thread(values, pid, tid); perf_read_values_add_value() 147 width = snprintf(NULL, 0, "%d", values->pid[i]); perf_read_values__display_pretty() 166 fprintf(fp, " %*d %*d", pidwidth, values->pid[i], perf_read_values__display_pretty() 189 width = snprintf(NULL, 0, "%d", values->pid[i]); perf_read_values__display_raw() 219 pidwidth, values->pid[i], perf_read_values__display_raw() 57 perf_read_values__findnew_thread(struct perf_read_values *values, u32 pid, u32 tid) perf_read_values__findnew_thread() argument 118 perf_read_values_add_value(struct perf_read_values *values, u32 pid, u32 tid, u64 rawid, const char *name, u64 value) perf_read_values_add_value() argument
|
H A D | thread_map.c | 50 struct thread_map *thread_map__new_by_pid(pid_t pid) thread_map__new_by_pid() argument 58 sprintf(name, "/proc/%d/task", pid); thread_map__new_by_pid() 113 pid_t pid = strtol(dirent.d_name, &end, 10); thread_map__new_by_uid() local 126 snprintf(path, sizeof(path), "/proc/%d/task", pid); thread_map__new_by_uid() 177 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) thread_map__new() argument 179 if (pid != -1) thread_map__new() 180 return thread_map__new_by_pid(pid); thread_map__new() 195 pid_t pid, prev_pid = INT_MAX; thread_map__new_by_pid_str() local 205 pid = strtol(pos->s, &end_ptr, 10); strlist__for_each() 207 if (pid == INT_MIN || pid == INT_MAX || strlist__for_each() 211 if (pid == prev_pid) strlist__for_each() 214 sprintf(name, "/proc/%d/task", pid); strlist__for_each() 310 struct thread_map *thread_map__new_str(const char *pid, const char *tid, thread_map__new_str() argument 313 if (pid) thread_map__new_str() 314 return thread_map__new_by_pid_str(pid); thread_map__new_str() 359 static int get_comm(char **comm, pid_t pid) get_comm() argument 365 if (asprintf(&path, "%s/%d/comm", procfs__mountpoint(), pid) == -1) get_comm() 385 pid_t pid = thread_map__pid(map, i); comm_init() local 388 /* dummy pid comm initialization */ comm_init() 389 if (pid == -1) { comm_init() 398 if (get_comm(&comm, pid)) comm_init() 399 pr_warning("Couldn't resolve comm name for pid %d\n", pid); comm_init()
|
H A D | record.c | 17 static pid_t pid = -1; perf_do_probe_api() local 29 fd = sys_perf_event_open(&evsel->attr, pid, cpu, -1, flags); perf_do_probe_api() 31 if (pid == -1 && errno == EACCES) { perf_do_probe_api() 32 pid = 0; perf_do_probe_api() 43 fd = sys_perf_event_open(&evsel->attr, pid, cpu, -1, flags); perf_do_probe_api() 247 pid_t pid = -1; perf_evlist__can_select_event() local 269 fd = sys_perf_event_open(&evsel->attr, pid, cpu, -1, perf_evlist__can_select_event() 272 if (pid == -1 && errno == EACCES) { perf_evlist__can_select_event() 273 pid = 0; perf_evlist__can_select_event()
|
H A D | event.c | 52 .pid = -1, 61 * Assumes that the first 4095 bytes of /proc/pid/stat contains 64 static int perf_event__get_comm_ids(pid_t pid, char *comm, size_t len, perf_event__get_comm_ids() argument 77 snprintf(filename, sizeof(filename), "/proc/%d/status", pid); perf_event__get_comm_ids() 88 pr_warning("Couldn't get COMM, tigd and ppid for pid %d\n", perf_event__get_comm_ids() 89 pid); perf_event__get_comm_ids() 114 pr_debug("Name: string not found for pid %d\n", pid); perf_event__get_comm_ids() 121 pr_debug("Tgid: string not found for pid %d\n", pid); perf_event__get_comm_ids() 128 pr_debug("PPid: string not found for pid %d\n", pid); perf_event__get_comm_ids() 134 static int perf_event__prepare_comm(union perf_event *event, pid_t pid, perf_event__prepare_comm() argument 145 if (perf_event__get_comm_ids(pid, event->comm.comm, perf_event__prepare_comm() 151 *tgid = machine->pid; perf_event__prepare_comm() 157 event->comm.pid = *tgid; perf_event__prepare_comm() 166 event->comm.tid = pid; perf_event__prepare_comm() 172 union perf_event *event, pid_t pid, perf_event__synthesize_comm() 178 if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) perf_event__synthesize_comm() 189 pid_t pid, pid_t tgid, pid_t ppid, perf_event__synthesize_fork() 197 * threads set parent pid to main thread. ie., assume main thread perf_event__synthesize_fork() 200 if (tgid == pid) { perf_event__synthesize_fork() 207 event->fork.pid = tgid; perf_event__synthesize_fork() 208 event->fork.tid = pid; perf_event__synthesize_fork() 221 pid_t pid, pid_t tgid, perf_event__synthesize_mmap_events() 238 machine->root_dir, pid); perf_event__synthesize_mmap_events() 336 event->mmap2.pid = tgid; perf_event__synthesize_mmap_events() 337 event->mmap2.tid = pid; perf_event__synthesize_mmap_events() 393 event->mmap.pid = machine->pid; perf_event__synthesize_modules() 410 pid_t pid, int full, __event__synthesize_thread() 423 /* special case: only send one comm event using passed in pid */ __event__synthesize_thread() 425 tgid = perf_event__synthesize_comm(tool, comm_event, pid, __event__synthesize_thread() 431 return perf_event__synthesize_mmap_events(tool, mmap_event, pid, tgid, __event__synthesize_thread() 440 machine->root_dir, pid); __event__synthesize_thread() 471 if (_pid == pid) { __event__synthesize_thread() 473 rc = perf_event__synthesize_mmap_events(tool, mmap_event, pid, tgid, __event__synthesize_thread() 518 * comm.pid is set to thread group id by perf_event__synthesize_thread_map() 521 if ((int) comm_event->comm.pid != thread_map__pid(threads, thread)) { perf_event__synthesize_thread_map() 526 if ((int) comm_event->comm.pid == thread_map__pid(threads, j)) { perf_event__synthesize_thread_map() 536 comm_event->comm.pid, 0, perf_event__synthesize_thread_map() 588 pid_t pid = strtol(dirent.d_name, &end, 10); perf_event__synthesize_threads() local 596 __event__synthesize_thread(comm_event, mmap_event, fork_event, pid, perf_event__synthesize_threads() 694 event->mmap.pid = machine->pid; perf_event__synthesize_kernel_mmap() 711 return fprintf(fp, "%s: %s:%d/%d\n", s, event->comm.comm, event->comm.pid, event->comm.tid); perf_event__fprintf_comm() 765 event->mmap.pid, event->mmap.tid, event->mmap.start, perf_event__fprintf_mmap() 775 event->mmap2.pid, event->mmap2.tid, event->mmap2.start, perf_event__fprintf_mmap2() 805 event->fork.pid, event->fork.tid, perf_event__fprintf_task() 836 return fprintf(fp, " pid: %u tid: %u\n", perf_event__fprintf_itrace_start() 837 event->itrace_start.pid, event->itrace_start.tid); perf_event__fprintf_itrace_start() 848 return fprintf(fp, " %s %s pid/tid: %5u/%-5u\n", perf_event__fprintf_switch() 996 struct thread *thread = machine__findnew_thread(machine, sample->pid, perf_event__preprocess_sample() 171 perf_event__synthesize_comm(struct perf_tool *tool, union perf_event *event, pid_t pid, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_comm() argument 187 perf_event__synthesize_fork(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, pid_t ppid, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_fork() argument 219 perf_event__synthesize_mmap_events(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine, bool mmap_data, unsigned int proc_map_timeout) perf_event__synthesize_mmap_events() argument 407 __event__synthesize_thread(union perf_event *comm_event, union perf_event *mmap_event, union perf_event *fork_event, pid_t pid, int full, perf_event__handler_t process, struct perf_tool *tool, struct machine *machine, bool mmap_data, unsigned int proc_map_timeout) __event__synthesize_thread() argument
|
H A D | machine.h | 18 /* Native host kernel uses -1 as pid index in machine */ 28 pid_t pid; member in struct:machine 78 struct thread *machine__find_thread(struct machine *machine, pid_t pid, 120 struct machine *machines__add(struct machines *machines, pid_t pid, 123 struct machine *machines__find(struct machines *machines, pid_t pid); 124 struct machine *machines__findnew(struct machines *machines, pid_t pid); 134 int machine__init(struct machine *machine, const char *root_dir, pid_t pid); 157 return machine ? machine->pid == DEFAULT_GUEST_KERNEL_ID : false; machine__is_default_guest() 162 return machine ? machine->pid == HOST_KERNEL_ID : false; machine__is_host() 165 struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid); 166 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid); 219 int machines__create_kernel_maps(struct machines *machines, pid_t pid); 247 int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid,
|
H A D | session.h | 80 struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid) perf_session__find_machine() argument 82 return machines__find(&session->machines, pid); perf_session__find_machine() 86 struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid) perf_session__findnew_machine() argument 88 return machines__findnew(&session->machines, pid); perf_session__findnew_machine() 91 struct thread *perf_session__findnew(struct perf_session *session, pid_t pid);
|
H A D | machine.c | 26 int machine__init(struct machine *machine, const char *root_dir, pid_t pid) machine__init() argument 40 machine->pid = pid; machine__init() 51 if (pid != HOST_KERNEL_ID) { machine__init() 53 pid); machine__init() 59 snprintf(comm, sizeof(comm), "[guest/%d]", pid); machine__init() 152 struct machine *machines__add(struct machines *machines, pid_t pid, machines__add() argument 162 if (machine__init(machine, root_dir, pid) != 0) { machines__add() 172 if (pid < pos->pid) machines__add() 212 struct machine *machines__find(struct machines *machines, pid_t pid) machines__find() argument 219 if (pid == HOST_KERNEL_ID) machines__find() 225 if (pid < machine->pid) machines__find() 227 else if (pid > machine->pid) machines__find() 231 if (!machine->pid) machines__find() 238 struct machine *machines__findnew(struct machines *machines, pid_t pid) machines__findnew() argument 242 struct machine *machine = machines__find(machines, pid); machines__findnew() 244 if (machine && (machine->pid == pid)) machines__findnew() 247 if ((pid != HOST_KERNEL_ID) && machines__findnew() 248 (pid != DEFAULT_GUEST_KERNEL_ID) && machines__findnew() 250 sprintf(path, "%s/%d", symbol_conf.guestmount, pid); machines__findnew() 267 machine = machines__add(machines, pid, root_dir); machines__findnew() 291 machine->pid); machine__mmap_name() 313 struct thread *th, pid_t pid) machine__update_thread_pid() 317 if (pid == th->pid_ || pid == -1 || th->pid_ != -1) machine__update_thread_pid() 320 th->pid_ = pid; machine__update_thread_pid() 340 * Maps are created from MMAP events which provide the pid and machine__update_thread_pid() 342 * with an unknown pid. Just print an error if there are. machine__update_thread_pid() 359 pid_t pid, pid_t tid, ____machine__findnew_thread() 374 machine__update_thread_pid(machine, th, pid); ____machine__findnew_thread() 387 machine__update_thread_pid(machine, th, pid); ____machine__findnew_thread() 400 th = thread__new(pid, tid); ____machine__findnew_thread() 429 struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid) __machine__findnew_thread() argument 431 return ____machine__findnew_thread(machine, pid, tid, true); __machine__findnew_thread() 434 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, machine__findnew_thread() argument 440 th = thread__get(__machine__findnew_thread(machine, pid, tid)); machine__findnew_thread() 445 struct thread *machine__find_thread(struct machine *machine, pid_t pid, machine__find_thread() argument 450 th = thread__get(____machine__findnew_thread(machine, pid, tid, false)); machine__find_thread() 468 event->comm.pid, machine__process_comm_event() 801 pid_t pid; machines__create_guest_kernel_maps() local 819 pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10); machines__create_guest_kernel_maps() 835 machines__create_kernel_maps(machines, pid); machines__create_guest_kernel_maps() 859 int machines__create_kernel_maps(struct machines *machines, pid_t pid) machines__create_kernel_maps() argument 861 struct machine *machine = machines__findnew(machines, pid); machines__create_kernel_maps() 1100 "continuing anyway...\n", machine->pid); machine__create_kernel_maps() 1278 thread = machine__findnew_thread(machine, event->mmap2.pid, machine__process_mmap2_event() 1290 event->mmap2.pid, event->mmap2.maj, machine__process_mmap2_event() 1332 thread = machine__findnew_thread(machine, event->mmap.pid, machine__process_mmap_event() 1344 event->mmap.pid, 0, 0, 0, 0, 0, 0, machine__process_mmap_event() 1393 event->fork.pid, machine__process_fork_event() 1424 thread = machine__findnew_thread(machine, event->fork.pid, machine__process_fork_event() 1442 event->fork.pid, machine__process_exit_event() 1963 int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid, machine__set_current_tid() argument 1989 thread = machine__findnew_thread(machine, pid, tid); machine__set_current_tid() 312 machine__update_thread_pid(struct machine *machine, struct thread *th, pid_t pid) machine__update_thread_pid() argument 358 ____machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid, bool create) ____machine__findnew_thread() argument
|
H A D | run-command.c | 71 cmd->pid = fork(); start_command() 72 if (!cmd->pid) { start_command() 123 if (cmd->pid < 0) { start_command() 156 static int wait_or_whine(pid_t pid) wait_or_whine() argument 162 pid_t waiting = waitpid(pid, &status, 0); wait_or_whine() 171 if (waiting != pid) wait_or_whine() 192 return wait_or_whine(cmd->pid); finish_command()
|
H A D | thread.c | 16 pid_t pid = thread->pid_; thread__init_map_groups() local 18 if (pid == thread->tid || pid == -1) { thread__init_map_groups() 21 leader = __machine__findnew_thread(machine, pid, pid); thread__init_map_groups() 29 struct thread *thread__new(pid_t pid, pid_t tid) thread__new() argument 36 thread->pid_ = pid; thread__new()
|
H A D | event.h | 14 u32 pid, tid; member in struct:mmap_event 23 u32 pid, tid; member in struct:mmap2_event 38 u32 pid, tid; member in struct:comm_event 44 u32 pid, ppid; member in struct:fork_event 65 u32 pid, tid; member in struct:read_event 182 u32 pid, tid; member in struct:perf_sample 213 pid_t pid; member in struct:build_id_event 334 u32 pid; member in struct:auxtrace_error_event 350 u32 pid, tid; member in struct:itrace_start_event 483 union perf_event *event, pid_t pid, 489 pid_t pid, pid_t tgid,
|
H A D | target.h | 8 const char *pid; member in struct:target 53 return target->tid || target->pid || target->uid_str; target__has_task()
|
/linux-4.4.14/arch/um/kernel/ |
H A D | reboot.c | 19 int pid; kill_off_processes() local 28 pid = t->mm->context.id.u.pid; for_each_process() 30 os_kill_ptraced_process(pid, 1); for_each_process()
|
H A D | umid.c | 36 " is used for naming the pid file and management console socket.\n\n"
|
/linux-4.4.14/include/uapi/linux/ |
H A D | oom.h | 5 * /proc/<pid>/oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for 6 * pid. 12 * /proc/<pid>/oom_adj set to -17 protects from the oom killer for legacy
|
H A D | if_pppol2tp.h | 25 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tp_addr 39 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpin6_addr 53 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpv3_addr 64 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpv3in6_addr
|
H A D | dlm_plock.h | 34 __u32 pid; member in struct:dlm_plock_info
|
/linux-4.4.14/fs/f2fs/ |
H A D | trace.c | 30 last_io.pid, "----------------", __print_last_io() 37 static int __file_type(struct inode *inode, pid_t pid) __file_type() argument 49 else if (pid) __file_type() 58 pid_t pid = task_pid_nr(current); f2fs_trace_pid() local 61 page->private = pid; f2fs_trace_pid() 67 p = radix_tree_lookup(&pids, pid); f2fs_trace_pid() 71 radix_tree_delete(&pids, pid); f2fs_trace_pid() 73 f2fs_radix_tree_insert(&pids, pid, current); f2fs_trace_pid() 77 pid, current->comm); f2fs_trace_pid() 86 pid_t pid; f2fs_trace_ios() local 95 pid = page_private(fio->page); f2fs_trace_ios() 101 last_io.pid == pid && f2fs_trace_ios() 102 last_io.type == __file_type(inode, pid) && f2fs_trace_ios() 113 last_io.pid = pid; f2fs_trace_ios() 114 last_io.type = __file_type(inode, pid); f2fs_trace_ios() 146 pid_t pid[PIDVEC_SIZE]; f2fs_destroy_trace_ios() local 151 while ((found = gang_lookup_pids(pid, next_pid, PIDVEC_SIZE))) { f2fs_destroy_trace_ios() 154 next_pid = pid[found - 1] + 1; f2fs_destroy_trace_ios() 156 radix_tree_delete(&pids, pid[idx]); f2fs_destroy_trace_ios()
|
H A D | trace.h | 29 pid_t pid; member in struct:last_io_info
|
/linux-4.4.14/tools/perf/scripts/python/ |
H A D | failed-syscalls-by-pid.py | 1 # failed system call counts, by pid 5 # Displays system-wide failed system call totals, broken down by pid. 18 usage = "perf script -s syscall-counts-by-pid.py [comm|pid]\n"; 64 print "%-30s %10s\n" % ("comm [pid]", "count"), 71 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 = True):
|
H A D | syscall-counts-by-pid.py | 1 # system call counts, by pid 17 usage = "perf script -s syscall-counts-by-pid.py [comm]\n"; 60 print "\nsyscall events by comm/pid:\n\n", 62 print "%-40s %10s\n" % ("comm [pid]/syscalls", "count"), 69 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(), \
|
H A D | netdev-times.py | 136 event['pid'], event['comm']) 227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): 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): 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): 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, 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): 252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret) 255 def napi__napi_poll(name, context, cpu, sec, nsec, pid, comm, callchain, napi, dev_name): 256 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 260 def net__netif_receive_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, 262 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 266 def net__netif_rx(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, 268 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 272 def net__net_dev_queue(name, context, cpu, sec, nsec, pid, comm, callchain, 274 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 278 def net__net_dev_xmit(name, context, cpu, sec, nsec, pid, comm, callchain, 280 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 284 def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, 286 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 290 def skb__consume_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr): 291 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 295 def skb__skb_copy_datagram_iovec(name, context, cpu, sec, nsec, pid, comm, callchain, 297 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 302 (name, context, cpu, time, pid, comm, irq, irq_name) = event_info 309 (name, context, cpu, time, pid, comm, irq, ret) = event_info 321 (name, context, cpu, time, pid, comm, vec) = event_info 335 (name, context, cpu, time, pid, comm, vec) = event_info 339 (name, context, cpu, time, pid, comm, vec) = event_info 357 (name, context, cpu, time, pid, comm, napi, dev_name) = event_info 365 (name, context, cpu, time, pid, comm, 383 (name, context, cpu, time, pid, comm, 398 (name, context, cpu, time, pid, comm, 409 (name, context, cpu, time, pid, comm, 424 (name, context, cpu, time, pid, comm, 442 'comm':comm, 'pid':pid, 'comm_t':time}) 447 (name, context, cpu, time, pid, comm, skbaddr) = event_info 457 (name, context, cpu, time, pid, comm, skbaddr, skblen) = event_info 462 'comm':comm, 'pid':pid, 'comm_t':time})
|
H A D | compaction-times.py | 14 usage = "usage: perf script report compaction-times.py -- [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid|pid-range|comm-regex]\n" 32 def filter(self, pid, comm): 41 def filter(self, pid, comm): 42 return not (pid >= self.low and (self.high == 0 or pid <= self.high)) 118 def create_pending(cls, pid, comm, start_secs, start_nsecs): 121 head = cls.heads[pid] 125 filtered = cls.fobj.filter(pid, comm) 126 head = cls.heads[pid] = chead(comm, pid, filtered) 132 def increment_pending(cls, pid, migrated, fscan, mscan): 133 head = cls.heads[pid] 138 sys.stderr.write("missing start compaction event for pid %d\n" % pid) 141 def complete_pending(cls, pid, secs, nsecs): 142 head = cls.heads[pid] 147 sys.stderr.write("missing start compaction event for pid %d\n" % pid) 159 def __init__(self, comm, pid, filtered): 161 self.pid = pid 192 sys.stdout.write("%d[%s].%d: %s\n" % (self.pid, self.comm, i+1, pelem)) 202 sys.stdout.write("%d[%s]: %s\n" % (self.pid, self.comm, self.val))
|
H A D | sched-migration.py | 31 def thread_name(pid): 32 return "%s:%d" % (threads[pid], pid) 208 def wake_up(self, ts_list, pid, cpu, fork): 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): 351 ts.migrate(self.timeslices, pid, orig_cpu, dest_cpu) 353 def wake_up(self, headers, comm, pid, success, target_cpu, fork): 357 ts.wake_up(self.timeslices, pid, target_cpu, fork) 372 common_callchain, comm, pid, runtime, vruntime): 377 common_callchain, comm, pid, delay): 382 common_callchain, comm, pid, delay): 387 common_callchain, comm, pid, delay): 397 common_callchain, comm, pid, prio): 402 common_callchain, comm, pid, prio): 407 common_callchain, comm, pid, prio): 412 common_callchain, comm, pid, prio, orig_cpu, 416 parser.migrate(headers, pid, prio, orig_cpu, dest_cpu) 430 common_callchain, comm, pid, prio, success, 434 parser.wake_up(headers, comm, pid, success, target_cpu, 1) 438 common_callchain, comm, pid, prio, success, 442 parser.wake_up(headers, comm, pid, success, target_cpu, 0) 446 common_callchain, comm, pid, prio): 456 common_callchain, comm, pid):
|
H A D | check-perf-trace.py | 60 def print_header(event_name, cpu, secs, nsecs, pid, comm): 62 (event_name, cpu, secs, nsecs, pid, comm),
|
/linux-4.4.14/arch/um/include/shared/skas/ |
H A D | mm_id.h | 12 int pid; member in union:mm_id::__anon2954
|
/linux-4.4.14/arch/um/kernel/skas/ |
H A D | process.c | 17 int pid; start_kernel_proc() local 20 pid = os_getpid(); start_kernel_proc() 22 cpu_tasks[0].pid = pid; start_kernel_proc()
|
H A D | mmu.c | 67 to_mm->id.u.pid = copy_context_skas0(stack, init_new_context() 68 from_mm->id.u.pid); init_new_context() 69 else to_mm->id.u.pid = start_userspace(stack); init_new_context() 72 if (to_mm->id.u.pid < 0) { init_new_context() 73 ret = to_mm->id.u.pid; init_new_context() 149 if (mmu->id.u.pid < 2) { destroy_context() 150 printk(KERN_ERR "corrupt mm_context - pid = %d\n", destroy_context() 151 mmu->id.u.pid); destroy_context() 154 os_kill_ptraced_process(mmu->id.u.pid, 1); destroy_context()
|
/linux-4.4.14/arch/um/os-Linux/skas/ |
H A D | process.c | 25 int is_skas_winch(int pid, int fd, void *data) is_skas_winch() argument 27 return pid == getpgrp(); is_skas_winch() 30 static int ptrace_dump_regs(int pid) ptrace_dump_regs() argument 35 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) ptrace_dump_regs() 54 void wait_stub_done(int pid) wait_stub_done() argument 59 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED | __WALL)); wait_stub_done() 66 err = ptrace(PTRACE_CONT, pid, 0, 0); wait_stub_done() 78 err = ptrace_dump_regs(pid); wait_stub_done() 83 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, wait_stub_done() 90 static void get_skas_faultinfo(int pid, struct faultinfo *fi) get_skas_faultinfo() argument 95 err = get_fp_registers(pid, fpregs); get_skas_faultinfo() 101 err = ptrace(PTRACE_CONT, pid, 0, SIGSEGV); get_skas_faultinfo() 103 printk(UM_KERN_ERR "Failed to continue stub, pid = %d, " get_skas_faultinfo() 104 "errno = %d\n", pid, errno); get_skas_faultinfo() 107 wait_stub_done(pid); get_skas_faultinfo() 115 err = put_fp_registers(pid, fpregs); get_skas_faultinfo() 123 static void handle_segv(int pid, struct uml_pt_regs * regs) handle_segv() argument 125 get_skas_faultinfo(pid, ®s->faultinfo); handle_segv() 133 static void handle_trap(int pid, struct uml_pt_regs *regs, handle_trap() argument 143 err = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_NR_OFFSET, handle_trap() 151 err = ptrace(PTRACE_SYSCALL, pid, 0, 0); handle_trap() 158 CATCH_EINTR(err = waitpid(pid, &status, WUNTRACED | __WALL)); handle_trap() 161 err = ptrace_dump_regs(pid); handle_trap() 252 int pid, status, n, flags, err; start_userspace() local 268 pid = clone(userspace_tramp, (void *) sp, flags, (void *) stub_stack); start_userspace() 269 if (pid < 0) { start_userspace() 277 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED | __WALL)); start_userspace() 293 if (ptrace(PTRACE_OLDSETOPTIONS, pid, NULL, start_userspace() 308 return pid; start_userspace() 311 os_kill_ptraced_process(pid, 1); start_userspace() 317 int err, status, op, pid = userspace_pid[0]; userspace() local 335 if (ptrace(PTRACE_SETREGS, pid, 0, regs->gp)) userspace() 338 if (put_fp_registers(pid, regs->fp)) userspace() 347 if (ptrace(op, pid, 0, 0)) { userspace() 353 CATCH_EINTR(err = waitpid(pid, &status, WUNTRACED | __WALL)); userspace() 361 if (ptrace(PTRACE_GETREGS, pid, 0, regs->gp)) { userspace() 367 if (get_fp_registers(pid, regs->fp)) { userspace() 378 ptrace(PTRACE_GETSIGINFO, pid, 0, (struct siginfo *)&si); userspace() 383 get_skas_faultinfo(pid, userspace() 388 else handle_segv(pid, regs); userspace() 391 handle_trap(pid, regs, local_using_sysemu); userspace() 412 pid = userspace_pid[0]; userspace() 442 int copy_context_skas0(unsigned long new_stack, int pid) copy_context_skas0() argument 460 err = ptrace_setregs(pid, thread_regs); copy_context_skas0() 464 "failed, pid = %d, errno = %d\n", pid, -err); copy_context_skas0() 468 err = put_fp_registers(pid, thread_fp_regs); copy_context_skas0() 471 "failed, pid = %d, err = %d\n", pid, err); copy_context_skas0() 479 * Wait, until parent has finished its work: read child's pid from copy_context_skas0() 482 err = ptrace(PTRACE_CONT, pid, 0, 0); copy_context_skas0() 485 printk(UM_KERN_ERR "Failed to continue new process, pid = %d, " copy_context_skas0() 486 "errno = %d\n", pid, errno); copy_context_skas0() 490 wait_stub_done(pid); copy_context_skas0() 492 pid = data->err; copy_context_skas0() 493 if (pid < 0) { copy_context_skas0() 495 "error %d\n", -pid); copy_context_skas0() 496 return pid; copy_context_skas0() 503 wait_stub_done(pid); copy_context_skas0() 511 if (ptrace(PTRACE_OLDSETOPTIONS, pid, NULL, copy_context_skas0() 519 return pid; copy_context_skas0() 522 os_kill_ptraced_process(pid, 1); copy_context_skas0() 622 userspace_pid[0] = mm_idp->u.pid; __switch_mm()
|
H A D | mem.c | 23 extern void wait_stub_done(int pid); 54 int err, pid = mm_idp->u.pid; do_syscall_stub() local 56 n = ptrace_setregs(pid, syscall_regs); do_syscall_stub() 65 err = ptrace(PTRACE_CONT, pid, 0, 0); do_syscall_stub() 67 panic("Failed to continue stub, pid = %d, errno = %d\n", pid, do_syscall_stub() 70 wait_stub_done(pid); do_syscall_stub()
|
/linux-4.4.14/tools/perf/tests/ |
H A D | thread-map.c | 11 /* test map on current pid */ test__thread_map() 18 TEST_ASSERT_VAL("wrong pid", test__thread_map() 27 /* test dummy pid */ test__thread_map() 34 TEST_ASSERT_VAL("wrong pid", thread_map__pid(map, 0) == -1); test__thread_map()
|
H A D | hists_link.c | 14 u32 pid; member in struct:sample 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, }, 46 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_FREE, }, 50 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_LIBC_FREE, }, 52 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, }, /* will be merged */ 54 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XFREE, }, 56 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_REALLOC, }, 58 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_KERNEL_PAGE_FAULT, }, 85 sample.pid = fake_common_samples[k].pid; evlist__for_each() 86 sample.tid = fake_common_samples[k].pid; evlist__for_each() 111 sample.pid = fake_samples[i][k].pid; evlist__for_each() 112 sample.tid = fake_samples[i][k].pid; evlist__for_each()
|
H A D | perf-record.c | 8 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) sched__get_first_possible_cpu() argument 14 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { sched__get_first_possible_cpu() 102 err = sched__get_first_possible_cpu(evlist->workload.pid, &cpu_mask); test__PERF_RECORD() 114 if (sched_setaffinity(evlist->workload.pid, cpu_mask_size, &cpu_mask) < 0) { test__PERF_RECORD() 145 * count just on workload.pid, which will start... test__PERF_RECORD() 195 if ((pid_t)sample.pid != evlist->workload.pid) { test__PERF_RECORD() 196 pr_debug("%s with unexpected pid, expected %d, got %d\n", test__PERF_RECORD() 197 name, evlist->workload.pid, sample.pid); test__PERF_RECORD() 201 if ((pid_t)sample.tid != evlist->workload.pid) { test__PERF_RECORD() 203 name, evlist->workload.pid, sample.tid); test__PERF_RECORD() 212 (pid_t)event->comm.pid != evlist->workload.pid) { test__PERF_RECORD() 213 pr_debug("%s with unexpected pid/tid\n", name); test__PERF_RECORD() 220 event->comm.pid != event->comm.tid) { test__PERF_RECORD() 221 pr_debug("%s with different pid/tid!\n", name); test__PERF_RECORD()
|
H A D | bpf.c | 55 char pid[16]; do_test() local 75 snprintf(pid, sizeof(pid), "%d", getpid()); do_test() 76 pid[sizeof(pid) - 1] = '\0'; do_test() 77 opts.target.tid = opts.target.pid = pid; do_test()
|
H A D | hists_common.c | 12 u32 pid; member in struct:__anon15681 21 u32 pid; member in struct:__anon15682 93 thread = machine__findnew_thread(machine, fake_threads[i].pid, setup_fake_machine() 94 fake_threads[i].pid); setup_fake_machine() 106 .pid = fake_mmap_info[i].pid, setup_fake_machine() 107 .tid = fake_mmap_info[i].pid, setup_fake_machine()
|
H A D | hists_filter.c | 14 u32 pid; member in struct:sample 25 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, .socket = 0 }, 27 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, .socket = 0 }, 29 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, .socket = 0 }, 31 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, .socket = 0 }, /* will be merged */ 33 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, .socket = 1 }, 35 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, .socket = 1 }, 37 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, .socket = 2 }, 39 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, .socket = 2 }, 41 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, .socket = 3 }, 43 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_KERNEL_PAGE_FAULT, .socket = 3 }, 79 sample.pid = fake_samples[i].pid; evlist__for_each() 80 sample.tid = fake_samples[i].pid; evlist__for_each()
|
H A D | hists_cumulate.c | 14 u32 pid; member in struct:sample 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, }, 42 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_KERNEL_PAGE_FAULT, }, 100 sample.pid = fake_samples[i].pid; add_hist_entries() 101 sample.tid = fake_samples[i].pid; add_hist_entries()
|
/linux-4.4.14/arch/um/drivers/ |
H A D | slirp_user.c | 40 int pid; slirp_tramp() local 44 pid = run_helper(slirp_pre_exec, &pe_data, argv); slirp_tramp() 46 return pid; slirp_tramp() 52 int fds[2], pid, err; slirp_open() local 63 pid = err; slirp_open() 68 pri->pid = err; slirp_open() 87 if (pri->pid<1) { slirp_close() 94 if (kill(pri->pid, SIGHUP)<0) { slirp_close() 96 "(%d)\n", pri->pid, errno); slirp_close() 99 err = helper_wait(pri->pid); slirp_close() 103 pri->pid = -1; slirp_close()
|
H A D | ubd_user.c | 26 int pid, fds[2], err; start_io_thread() local 43 pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); start_io_thread() 44 if(pid < 0){ start_io_thread() 50 return(pid); start_io_thread()
|
H A D | harddog_user.c | 33 int in_fds[2], out_fds[2], pid, n, err; start_watchdog() local 35 char *pid_args[] = { "/usr/bin/uml_watchdog", "-pid", pid_buf, NULL }; start_watchdog() 67 pid = run_helper(pre_exec, &data, args); start_watchdog() 72 if (pid < 0) { start_watchdog() 73 err = -pid; start_watchdog() 81 helper_wait(pid); start_watchdog() 88 helper_wait(pid); start_watchdog()
|
H A D | xterm.c | 19 int pid; member in struct:xterm_chan 34 *data = ((struct xterm_chan) { .pid = -1, xterm_init() 88 int pid, fd, new, err; xterm_open() local 137 pid = run_helper(NULL, NULL, argv); xterm_open() 138 if (pid < 0) { xterm_open() 139 err = pid; xterm_open() 182 data->pid = pid; xterm_open() 190 os_kill_process(pid, 1); xterm_open() 201 if (data->pid != -1) xterm_close() 202 os_kill_process(data->pid, 1); xterm_close() 203 data->pid = -1; xterm_close()
|
H A D | xterm_kern.c | 16 int pid; member in struct:xterm_wait 25 fd = os_rcv_fd(xterm->fd, &xterm->pid); xterm_interrupt() 48 .pid = -1, xterm_fd() 70 *pid_out = data->pid; xterm_fd()
|
H A D | net_user.c | 182 int pid, fds[2], err; change_tramp() local 193 pid = run_helper(change_pre_exec, &pe_data, argv); change_tramp() 195 if (pid > 0) /* Avoid hang as we won't get data in failure case. */ change_tramp() 201 if (pid > 0) change_tramp() 202 helper_wait(pid); change_tramp() 203 return pid; change_tramp() 215 int output_len, pid; change() local 228 pid = change_tramp(argv, output, output_len); change() 229 if (pid < 0) { change()
|
H A D | slirp.h | 22 int pid; member in struct:slirp_data
|
/linux-4.4.14/samples/bpf/ |
H A D | trace_output_kern.c | 17 u64 pid; bpf_prog1() member in struct:S 21 data.pid = bpf_get_current_pid_tgid(); bpf_prog1()
|
H A D | trace_output_user.c | 134 __u64 pid; print_bpf_output() member in struct:__anon15122 139 printf("BUG pid %llx cookie %llx sized %d\n", print_bpf_output() 140 e->pid, e->cookie, size); print_bpf_output() 162 pmu_fd = perf_event_open(&attr, -1/*pid*/, 0/*cpu*/, -1/*group_fd*/, 0); test_bpf_perf_event()
|
/linux-4.4.14/tools/lib/lockdep/ |
H A D | common.c | 26 if (current_obj.pid == 0) { __curr() 29 current_obj.pid = syscall(__NR_gettid); __curr()
|
/linux-4.4.14/include/net/ |
H A D | scm.h | 7 #include <linux/pid.h> 16 u32 pid; member in struct:scm_creds 29 struct pid *pid; /* Skb credentials */ member in struct:scm_cookie 54 struct pid *pid, kuid_t uid, kgid_t gid) scm_set_cred() 56 scm->pid = get_pid(pid); scm_set_cred() 57 scm->creds.pid = pid_vnr(pid); scm_set_cred() 64 put_pid(scm->pid); scm_destroy_cred() 65 scm->pid = NULL; scm_destroy_cred() 123 .pid = scm->creds.pid, scm_recv() 53 scm_set_cred(struct scm_cookie *scm, struct pid *pid, kuid_t uid, kgid_t gid) scm_set_cred() argument
|
H A D | af_unix.h | 31 struct pid *pid; /* Skb credentials */ member in struct:unix_skb_parms
|
/linux-4.4.14/tools/testing/selftests/powerpc/ |
H A D | harness.c | 30 pid_t pid; run_test() local 35 pid = fork(); run_test() 36 if (pid == 0) { run_test() 39 } else if (pid == -1) { run_test() 44 setpgid(pid, pid); run_test() 51 rc = waitpid(pid, &status, 0); run_test() 60 kill(-pid, SIGKILL); run_test() 64 kill(-pid, SIGTERM); run_test() 72 kill(-pid, SIGTERM); run_test()
|
/linux-4.4.14/scripts/gdb/linux/ |
H A D | tasks.py | 42 def get_task_by_pid(pid): 44 if int(task['pid']) == pid: 58 def invoke(self, pid): 59 task = get_task_by_pid(pid) 63 raise gdb.GdbError("No task of PID " + str(pid)) 77 gdb.write("{address} {pid} {comm}\n".format( 79 pid=task["pid"],
|
/linux-4.4.14/tools/perf/arch/x86/tests/ |
H A D | intel-cqm.c | 14 pid_t pid; spawn() local 16 pid = fork(); spawn() 17 if (pid) spawn() 18 return pid; spawn() 44 pid_t pid; test__intel_cqm_count_nmi_context() local 78 pid = spawn(); test__intel_cqm_count_nmi_context() 80 fd[0] = sys_perf_event_open(&pe, pid, -1, -1, flag); test__intel_cqm_count_nmi_context() 92 fd[1] = sys_perf_event_open(&pe, pid, -1, fd[0], flag); test__intel_cqm_count_nmi_context() 119 kill(pid, SIGKILL); test__intel_cqm_count_nmi_context()
|
H A D | rdpmc.c | 157 int pid; test__rdpmc() local 159 pid = fork(); test__rdpmc() 160 if (pid < 0) test__rdpmc() 163 if (!pid) { test__rdpmc() 169 wret = waitpid(pid, &status, 0); test__rdpmc()
|
/linux-4.4.14/drivers/media/common/b2c2/ |
H A D | flexcop-hw-filter.c | 3 * flexcop-hw-filter.c - pid and mac address filtering and control functions 46 u16 pid, u16 mask) flexcop_pid_group_filter() 50 v30c.pid_filter_30c_ext_ind_0_7.Group_PID = pid; flexcop_pid_group_filter() 67 vpid.vregname.field = onoff ? pid : 0x1fff; \ 74 u16 pid, int onoff) flexcop_pid_Stream1_PID_ctrl() 81 u16 pid, int onoff) flexcop_pid_Stream2_PID_ctrl() 88 u16 pid, int onoff) flexcop_pid_PCR_PID_ctrl() 94 u16 pid, int onoff) flexcop_pid_PMT_PID_ctrl() 100 u16 pid, int onoff) flexcop_pid_EMM_PID_ctrl() 106 u16 pid, int onoff) flexcop_pid_ECM_PID_ctrl() 112 int index, u16 pid, int onoff) flexcop_pid_control() 114 if (pid == 0x2000) flexcop_pid_control() 117 deb_ts("setting pid: %5d %04x at index %d '%s'\n", flexcop_pid_control() 118 pid, pid, index, onoff ? "on" : "off"); flexcop_pid_control() 128 flexcop_pid_Stream1_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 131 flexcop_pid_Stream2_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 134 flexcop_pid_PCR_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 137 flexcop_pid_PMT_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 140 flexcop_pid_EMM_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 143 flexcop_pid_ECM_PID_ctrl(fc, pid, onoff); flexcop_pid_control() 155 vpid.pid_n_reg_314.PID = onoff ? pid : 0x1fff; flexcop_pid_control() 190 * - or the requested pid is 0x2000 */ flexcop_pid_feed_control() 197 (fc, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); flexcop_pid_feed_control() 201 else if (dvbdmxfeed->pid == 0x2000) flexcop_pid_feed_control() 45 flexcop_pid_group_filter(struct flexcop_device *fc, u16 pid, u16 mask) flexcop_pid_group_filter() argument 73 flexcop_pid_Stream1_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_Stream1_PID_ctrl() argument 80 flexcop_pid_Stream2_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_Stream2_PID_ctrl() argument 87 flexcop_pid_PCR_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_PCR_PID_ctrl() argument 93 flexcop_pid_PMT_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_PMT_PID_ctrl() argument 99 flexcop_pid_EMM_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_EMM_PID_ctrl() argument 105 flexcop_pid_ECM_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_ECM_PID_ctrl() argument 111 flexcop_pid_control(struct flexcop_device *fc, int index, u16 pid, int onoff) flexcop_pid_control() argument
|
H A D | flexcop-misc.c | 34 "the additional 32 hardware pid filter.\n"); flexcop_determine_revision() 37 "the 6 basic main hardware pid filter.\n"); flexcop_determine_revision() 38 /* bus parts have to decide if hw pid filtering is used or not. */ flexcop_determine_revision()
|
/linux-4.4.14/fs/proc/ |
H A D | thread_self.c | 14 pid_t pid = task_pid_nr_ns(current, ns); proc_thread_self_readlink() local 16 if (!pid) proc_thread_self_readlink() 18 sprintf(tmp, "%d/task/%d", tgid, pid); proc_thread_self_readlink() 26 pid_t pid = task_pid_nr_ns(current, ns); proc_thread_self_follow_link() local 29 if (!pid) proc_thread_self_follow_link() 34 sprintf(name, "%d/task/%d", tgid, pid); proc_thread_self_follow_link()
|
H A D | array.c | 33 * and /proc/<pid>/cpu extension 143 struct pid *pid, struct task_struct *p) task_state() 182 tgid, ngid, pid_nr_ns(pid, ns), ppid, tpid, task_state() 201 for (g = ns->level; g <= pid->level; g++) task_state() 203 task_tgid_nr_ns(p, pid->numbers[g].ns)); task_state() 205 for (g = ns->level; g <= pid->level; g++) task_state() 207 task_pid_nr_ns(p, pid->numbers[g].ns)); task_state() 209 for (g = ns->level; g <= pid->level; g++) task_state() 211 task_pgrp_nr_ns(p, pid->numbers[g].ns)); task_state() 213 for (g = ns->level; g <= pid->level; g++) task_state() 215 task_session_nr_ns(p, pid->numbers[g].ns)); task_state() 355 struct pid *pid, struct task_struct *task) proc_pid_status() 360 task_state(m, ns, pid, task); proc_pid_status() 376 struct pid *pid, struct task_struct *task, int whole) do_task_stat() 419 struct pid *pgrp = tty_get_pgrp(sig->tty); do_task_stat() 474 seq_printf(m, "%d (%s) %c", pid_nr_ns(pid, ns), tcomm, state); do_task_stat() 556 struct pid *pid, struct task_struct *task) proc_tid_stat() 558 return do_task_stat(m, ns, pid, task, 0); proc_tid_stat() 562 struct pid *pid, struct task_struct *task) proc_tgid_stat() 564 return do_task_stat(m, ns, pid, task, 1); proc_tgid_stat() 568 struct pid *pid, struct task_struct *task) proc_pid_statm() 596 static struct pid * get_children_pid() 597 get_children_pid(struct inode *inode, struct pid *pid_prev, loff_t pos) get_children_pid() 600 struct pid *pid = NULL; get_children_pid() local 620 pid = get_pid(task_pid(task)); get_children_pid() 642 pid = get_pid(task_pid(task)); get_children_pid() 649 return pid; get_children_pid() 655 pid_t pid; children_seq_show() local 657 pid = pid_nr_ns(v, inode->i_sb->s_fs_info); children_seq_show() 658 seq_printf(seq, "%d ", pid); children_seq_show() 670 struct pid *pid; children_seq_next() local 672 pid = get_children_pid(seq->private, v, *pos + 1); children_seq_next() 676 return pid; children_seq_next() 142 task_state(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *p) task_state() argument 354 proc_pid_status(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) proc_pid_status() argument 375 do_task_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task, int whole) do_task_stat() argument 555 proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) proc_tid_stat() argument 561 proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) proc_tgid_stat() argument 567 proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) proc_pid_statm() argument
|
H A D | root.c | 51 static int proc_parse_options(char *options, struct pid_namespace *pid) proc_parse_options() argument 71 pid->pid_gid = make_kgid(current_user_ns(), option); proc_parse_options() 80 pid->hide_pid = option; proc_parse_options() 94 struct pid_namespace *pid = sb->s_fs_info; proc_remount() local 97 return !proc_parse_options(data, pid); proc_remount() 115 /* Does the mounter have privilege over the pid namespace? */ proc_mount() 231 * <pid> directories. Thus we don't use the generic
|
H A D | internal.h | 57 struct pid_namespace *ns, struct pid *pid, 62 struct pid *pid; member in struct:proc_inode 90 static inline struct pid *proc_pid(struct inode *inode) proc_pid() 92 return PROC_I(inode)->pid; 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 *);
|
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | task_event_pinned_vs_ebb_test.c | 42 pid_t pid; task_event_pinned_vs_ebb() local 50 pid = fork(); task_event_pinned_vs_ebb() 51 if (pid == 0) { task_event_pinned_vs_ebb() 57 rc = setup_child_event(&event, pid); task_event_pinned_vs_ebb() 59 kill_child_and_wait(pid); task_event_pinned_vs_ebb() 73 FAIL_IF(wait_for_child(pid) != 2); task_event_pinned_vs_ebb()
|
H A D | task_event_vs_ebb_test.c | 40 pid_t pid; task_event_vs_ebb() local 48 pid = fork(); task_event_vs_ebb() 49 if (pid == 0) { task_event_vs_ebb() 55 rc = setup_child_event(&event, pid); task_event_vs_ebb() 57 kill_child_and_wait(pid); task_event_vs_ebb() 71 FAIL_IF(wait_for_child(pid)); task_event_vs_ebb()
|
H A D | cpu_event_pinned_vs_ebb_test.c | 44 pid_t pid; cpu_event_pinned_vs_ebb() local 55 pid = fork(); cpu_event_pinned_vs_ebb() 56 if (pid == 0) { cpu_event_pinned_vs_ebb() 64 kill_child_and_wait(pid); cpu_event_pinned_vs_ebb() 78 FAIL_IF(wait_for_child(pid) != 2); cpu_event_pinned_vs_ebb()
|
H A D | cpu_event_vs_ebb_test.c | 42 pid_t pid; cpu_event_vs_ebb() local 53 pid = fork(); cpu_event_vs_ebb() 54 if (pid == 0) { cpu_event_vs_ebb() 62 kill_child_and_wait(pid); cpu_event_vs_ebb() 76 FAIL_IF(wait_for_child(pid)); cpu_event_vs_ebb()
|
H A D | ebb_on_child_test.c | 48 pid_t pid; ebb_on_child() local 55 pid = fork(); ebb_on_child() 56 if (pid == 0) { ebb_on_child() 72 FAIL_IF(event_open_with_pid(&event, pid)); ebb_on_child() 78 FAIL_IF(wait_for_child(pid)); ebb_on_child()
|
H A D | ebb_on_willing_child_test.c | 55 pid_t pid; ebb_on_willing_child() local 62 pid = fork(); ebb_on_willing_child() 63 if (pid == 0) { ebb_on_willing_child() 80 FAIL_IF(event_open_with_pid(&event, pid)); ebb_on_willing_child() 84 FAIL_IF(wait_for_child(pid)); ebb_on_willing_child()
|
H A D | ebb_vs_cpu_event_test.c | 42 pid_t pid; ebb_vs_cpu_event() local 53 pid = fork(); ebb_vs_cpu_event() 54 if (pid == 0) { ebb_vs_cpu_event() 65 kill_child_and_wait(pid); ebb_vs_cpu_event() 73 FAIL_IF(wait_for_child(pid)); ebb_vs_cpu_event()
|
H A D | fork_cleanup_test.c | 45 pid_t pid; fork_cleanup() local 65 pid = fork(); fork_cleanup() 66 if (pid == 0) fork_cleanup() 70 FAIL_IF(wait_for_child(pid)); fork_cleanup()
|
/linux-4.4.14/arch/powerpc/mm/ |
H A D | mmu_decl.h | 35 static inline void _tlbil_pid(unsigned int pid) _tlbil_pid() argument 39 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) 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) 55 static inline void _tlbil_va(unsigned long address, unsigned int pid, _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); _tlbil_va() 65 static inline void _tlbil_va(unsigned long address, unsigned int pid, _tlbil_va() argument 68 __tlbil_va(address, pid); _tlbil_va() 73 extern void _tlbivax_bcast(unsigned long address, unsigned int pid, 76 static inline void _tlbivax_bcast(unsigned long address, unsigned int pid, _tlbivax_bcast() argument
|
H A D | icswx_pid.c | 60 int pid; get_cop_pid() local 63 pid = new_cop_pid(&cop_ida, COP_PID_MIN, COP_PID_MAX, get_cop_pid() 65 if (pid >= 0) get_cop_pid() 66 mm->context.cop_pid = pid; get_cop_pid()
|
H A D | tlb_nohash.c | 182 unsigned int pid; local_flush_tlb_mm() local 185 pid = mm->context.id; local_flush_tlb_mm() 186 if (pid != MMU_NO_CONTEXT) local_flush_tlb_mm() 187 _tlbil_pid(pid); local_flush_tlb_mm() 195 unsigned int pid; __local_flush_tlb_page() local 198 pid = mm ? mm->context.id : 0; __local_flush_tlb_page() 199 if (pid != MMU_NO_CONTEXT) __local_flush_tlb_page() 200 _tlbil_va(vmaddr, pid, tsize, ind); __local_flush_tlb_page() 226 unsigned int pid; member in struct:tlb_flush_param 235 _tlbil_pid(p ? p->pid : 0); do_flush_tlb_mm_ipi() 242 _tlbil_va(p->addr, p->pid, p->tsize, p->ind); do_flush_tlb_page_ipi() 264 unsigned int pid; flush_tlb_mm() local 267 pid = mm->context.id; flush_tlb_mm() 268 if (unlikely(pid == MMU_NO_CONTEXT)) flush_tlb_mm() 271 struct tlb_flush_param p = { .pid = pid }; flush_tlb_mm() 276 _tlbil_pid(pid); flush_tlb_mm() 286 unsigned int pid; __flush_tlb_page() local 296 pid = mm->context.id; __flush_tlb_page() 297 if (unlikely(pid == MMU_NO_CONTEXT)) __flush_tlb_page() 306 _tlbivax_bcast(vmaddr, pid, tsize, ind); __flush_tlb_page() 312 .pid = pid, __flush_tlb_page() 322 _tlbil_va(vmaddr, pid, tsize, ind); __flush_tlb_page()
|
/linux-4.4.14/tools/testing/selftests/timers/ |
H A D | skew_consistency.c | 57 pid_t pid; main() local 62 pid = fork(); main() 63 if (!pid) main() 69 while (pid != waitpid(pid, &ret, WNOHANG)) { main()
|
H A D | clocksource-switch.c | 137 pid_t pid; main() local 163 pid = fork(); main() 164 if (!pid) main() 167 while (pid != waitpid(pid, &status, WNOHANG)) main()
|
/linux-4.4.14/drivers/net/wan/ |
H A D | hdlc_ppp.c | 69 u16 pid; /* protocol ID */ member in struct:proto 112 static inline struct proto* get_proto(struct net_device *dev, u16 pid) get_proto() argument 116 switch (pid) { get_proto() 128 static inline const char* proto_name(u16 pid) proto_name() argument 130 switch (pid) { proto_name() 207 static void ppp_tx_cp(struct net_device *dev, u16 pid, u8 code, ppp_tx_cp() argument 220 if (pid == PID_LCP && (code == LCP_ECHO_REQ || code == LCP_ECHO_REPLY)) ppp_tx_cp() 250 proto_name(pid), code_names[code], id, debug_buffer); ppp_tx_cp() 253 ppp_hard_header(skb, dev, pid, NULL, NULL, 0); ppp_tx_cp() 304 static void ppp_cp_event(struct net_device *dev, u16 pid, u16 event, u8 code, ppp_cp_event() argument 309 struct proto *proto = get_proto(dev, pid); ppp_cp_event() 317 proto_name(pid), event_names[event], state_names[proto->state]); ppp_cp_event() 333 ppp_tx_cp(dev, pid, CP_CONF_REQ, proto->cr_id = ++ppp->seq, ppp_cp_event() 336 ppp_tx_cp(dev, pid, CP_CONF_ACK, id, len, data); ppp_cp_event() 338 ppp_tx_cp(dev, pid, code, id, len, data); ppp_cp_event() 340 ppp_tx_cp(dev, pid, CP_TERM_REQ, ++ppp->seq, 0, NULL); ppp_cp_event() 342 ppp_tx_cp(dev, pid, CP_TERM_ACK, id, 0, NULL); ppp_cp_event() 344 ppp_tx_cp(dev, pid, CP_CODE_REJ, ++ppp->seq, len, data); ppp_cp_event() 347 netdev_info(dev, "%s up\n", proto_name(pid)); ppp_cp_event() 348 if (pid == PID_LCP) { ppp_cp_event() 358 netdev_info(dev, "%s down\n", proto_name(pid)); ppp_cp_event() 359 if (pid == PID_LCP) { ppp_cp_event() 370 proto_name(pid), event_names[event], state_names[proto->state]); ppp_cp_event() 375 static void ppp_cp_parse_cr(struct net_device *dev, u16 pid, u8 id, ppp_cp_parse_cr() argument 395 if (pid == PID_LCP) ppp_cp_parse_cr() 423 ppp_cp_event(dev, pid, RCR_BAD, CP_CONF_REJ, id, rej_len, out); ppp_cp_parse_cr() 425 ppp_cp_event(dev, pid, RCR_BAD, CP_CONF_NAK, id, nak_len, out); ppp_cp_parse_cr() 427 ppp_cp_event(dev, pid, RCR_GOOD, CP_CONF_ACK, id, req_len, data); ppp_cp_parse_cr() 441 u16 pid; ppp_rx() local 456 pid = ntohs(hdr->protocol); ppp_rx() 457 proto = get_proto(dev, pid); ppp_rx() 484 printk(KERN_DEBUG "%s: RX %s %s\n", dev->name, proto_name(pid), ppp_rx() 489 if (pid == PID_LCP) ppp_rx() 492 pid = ntohs(*(__be16*)skb->data); ppp_rx() 493 if (pid == PID_LCP || pid == PID_IPCP || ppp_rx() 494 pid == PID_IPV6CP) ppp_rx() 495 ppp_cp_event(dev, pid, RXJ_BAD, 0, 0, ppp_rx() 517 ppp_cp_parse_cr(dev, pid, cp->id, len, skb->data); ppp_rx() 522 ppp_cp_event(dev, pid, RCA, 0, 0, 0, NULL); ppp_rx() 528 ppp_cp_event(dev, pid, RCN, 0, 0, 0, NULL); ppp_rx() 532 ppp_cp_event(dev, pid, RTR, 0, cp->id, 0, NULL); ppp_rx() 536 ppp_cp_event(dev, pid, RTA, 0, 0, 0, NULL); ppp_rx() 540 ppp_cp_event(dev, pid, RXJ_BAD, 0, 0, 0, NULL); ppp_rx() 547 ppp_cp_event(dev, pid, RUC, 0, 0, len, cp); ppp_rx() 574 ppp_cp_event(proto->dev, proto->pid, TO_GOOD, 0, 0, ppp_timer() 578 ppp_cp_event(proto->dev, proto->pid, TO_BAD, 0, 0, ppp_timer() 583 if (proto->pid != PID_LCP) ppp_timer() 618 ppp->protos[IDX_LCP].pid = PID_LCP; ppp_start() 619 ppp->protos[IDX_IPCP].pid = PID_IPCP; ppp_start() 620 ppp->protos[IDX_IPV6CP].pid = PID_IPV6CP; ppp_start()
|
/linux-4.4.14/drivers/android/ |
H A D | binder.c | 301 int pid; member in struct:binder_proc 343 int pid; member in struct:binder_thread 450 current->pid, nice, min_nice); binder_set_nice() 454 binder_user_error("%d RLIMIT_NICE not set\n", current->pid); binder_set_nice() 481 proc->pid, new_buffer_size, new_buffer); binder_insert_free_buffer() 558 "%d: %s pages %p-%p\n", proc->pid, binder_update_page_range() 576 proc->pid); binder_update_page_range() 586 proc->pid); binder_update_page_range() 599 proc->pid, page_addr); binder_update_page_range() 608 proc->pid, page_addr); binder_update_page_range() 616 proc->pid, user_page_addr); binder_update_page_range() 664 proc->pid); binder_alloc_buf() 673 proc->pid, data_size, offsets_size); binder_alloc_buf() 681 proc->pid, size); binder_alloc_buf() 702 proc->pid, size); binder_alloc_buf() 712 proc->pid, size, buffer, buffer_size); binder_alloc_buf() 742 proc->pid, size, buffer); binder_alloc_buf() 750 proc->pid, size, proc->free_async_space); binder_alloc_buf() 782 proc->pid, buffer, prev); binder_delete_free_buffer() 795 proc->pid, buffer, prev); binder_delete_free_buffer() 802 proc->pid, buffer, free_page_start ? "" : " end", binder_delete_free_buffer() 823 proc->pid, buffer, size, buffer_size); binder_free_buf() 836 proc->pid, size, proc->free_async_space); binder_free_buf() 921 proc->pid, current->pid, node->debug_id, binder_new_node() 1080 proc->pid, new_ref->debug_id, new_ref->desc, binder_get_ref_for_node() 1085 proc->pid, new_ref->debug_id, new_ref->desc); binder_get_ref_for_node() 1094 ref->proc->pid, ref->debug_id, ref->desc, binder_delete_ref() 1106 ref->proc->pid, ref->debug_id, ref->desc); binder_delete_ref() 1144 ref->proc->pid, ref->debug_id, binder_dec_ref() 1159 ref->proc->pid, ref->debug_id, binder_dec_ref() 1207 target_thread->proc->pid, binder_send_failed_reply() 1208 target_thread->pid); binder_send_failed_reply() 1215 target_thread->proc->pid, binder_send_failed_reply() 1216 target_thread->pid, binder_send_failed_reply() 1249 proc->pid, buffer->debug_id, binder_transaction_buffer_release() 1335 e->from_proc = proc->pid; binder_transaction() 1336 e->from_thread = thread->pid; binder_transaction() 1345 proc->pid, thread->pid); binder_transaction() 1352 proc->pid, thread->pid, in_reply_to->debug_id, binder_transaction() 1354 in_reply_to->to_proc->pid : 0, binder_transaction() 1356 in_reply_to->to_thread->pid : 0); binder_transaction() 1369 proc->pid, thread->pid, binder_transaction() 1386 proc->pid, thread->pid); binder_transaction() 1415 proc->pid, thread->pid, tmp->debug_id, binder_transaction() 1416 tmp->to_proc ? tmp->to_proc->pid : 0, binder_transaction() 1418 tmp->to_thread->pid : 0); binder_transaction() 1430 e->to_thread = target_thread->pid; binder_transaction() 1437 e->to_proc = target_proc->pid; binder_transaction() 1460 proc->pid, thread->pid, t->debug_id, binder_transaction() 1461 target_proc->pid, target_thread->pid, binder_transaction() 1468 proc->pid, thread->pid, t->debug_id, binder_transaction() 1469 target_proc->pid, target_node->debug_id, binder_transaction() 1507 proc->pid, thread->pid); binder_transaction() 1514 proc->pid, thread->pid); binder_transaction() 1520 proc->pid, thread->pid, (u64)tr->offsets_size); binder_transaction() 1532 proc->pid, thread->pid, (u64)*offp); binder_transaction() 1554 proc->pid, thread->pid, binder_transaction() 1590 proc->pid, binder_transaction() 1591 thread->pid, fp->handle); binder_transaction() 1639 proc->pid, thread->pid, fp->handle); binder_transaction() 1645 proc->pid, thread->pid, fp->handle); binder_transaction() 1653 proc->pid, thread->pid, fp->handle); binder_transaction() 1680 proc->pid, thread->pid, fp->type); binder_transaction() 1737 proc->pid, thread->pid, return_error, binder_transaction() 1793 proc->pid, thread->pid, binder_thread_write() 1800 proc->pid, thread->pid, target); binder_thread_write() 1824 proc->pid, thread->pid, debug_string, ref->debug_id, binder_thread_write() 1843 proc->pid, thread->pid, binder_thread_write() 1852 proc->pid, thread->pid, binder_thread_write() 1862 proc->pid, thread->pid, binder_thread_write() 1870 proc->pid, thread->pid, binder_thread_write() 1879 proc->pid, thread->pid, binder_thread_write() 1902 proc->pid, thread->pid, (u64)data_ptr); binder_thread_write() 1907 proc->pid, thread->pid, (u64)data_ptr); binder_thread_write() 1912 proc->pid, thread->pid, (u64)data_ptr, binder_thread_write() 1947 proc->pid, thread->pid); binder_thread_write() 1951 proc->pid, thread->pid); binder_thread_write() 1955 proc->pid, thread->pid); binder_thread_write() 1965 proc->pid, thread->pid); binder_thread_write() 1969 proc->pid, thread->pid); binder_thread_write() 1976 proc->pid, thread->pid); binder_thread_write() 1996 proc->pid, thread->pid, binder_thread_write() 2006 proc->pid, thread->pid, binder_thread_write() 2016 proc->pid, thread->pid); binder_thread_write() 2024 proc->pid, thread->pid); binder_thread_write() 2043 proc->pid, thread->pid); binder_thread_write() 2049 proc->pid, thread->pid, binder_thread_write() 2088 proc->pid, thread->pid, (u64)cookie, binder_thread_write() 2092 proc->pid, thread->pid, (u64)cookie); binder_thread_write() 2110 proc->pid, thread->pid, cmd); binder_thread_write() 2196 proc->pid, thread->pid, thread->looper); binder_thread_read() 2259 proc->pid, thread->pid); binder_thread_read() 2309 proc->pid, thread->pid, cmd_name, binder_thread_read() 2317 proc->pid, thread->pid, binder_thread_read() 2327 proc->pid, thread->pid, binder_thread_read() 2355 proc->pid, thread->pid, binder_thread_read() 2427 proc->pid, thread->pid, binder_thread_read() 2430 t->debug_id, t->from ? t->from->proc->pid : 0, binder_thread_read() 2431 t->from ? t->from->pid : 0, cmd, binder_thread_read() 2460 proc->pid, thread->pid); binder_thread_read() 2528 if (current->pid < thread->pid) binder_get_thread() 2530 else if (current->pid > thread->pid) binder_get_thread() 2541 thread->pid = current->pid; binder_get_thread() 2568 proc->pid, thread->pid, binder_free_thread() 2646 proc->pid, thread->pid, binder_ioctl_write_read() 2679 proc->pid, thread->pid, binder_ioctl_write_read() 2738 proc->pid, current->pid, cmd, arg);*/ binder_ioctl() 2772 proc->pid, thread->pid); binder_ioctl() 2801 pr_info("%d:%d ioctl %x %lx returned %d\n", proc->pid, current->pid, cmd, arg, ret); binder_ioctl() 2813 proc->pid, vma->vm_start, vma->vm_end, binder_vma_open() 2824 proc->pid, vma->vm_start, vma->vm_end, binder_vma_close() 2859 proc->pid, vma->vm_start, vma->vm_end, binder_mmap() 2890 pr_info("binder_mmap: %d %lx-%lx maps %p bad alignment\n", proc->pid, vma->vm_start, vma->vm_end, proc->buffer); binder_mmap() 2923 proc->pid, vma->vm_start, vma->vm_end, proc->buffer);*/ binder_mmap() 2938 proc->pid, vma->vm_start, vma->vm_end, failure_string, ret); binder_mmap() 2947 current->group_leader->pid, current->pid); binder_open() 2962 proc->pid = current->group_leader->pid; binder_open() 2971 snprintf(strbuf, sizeof(strbuf), "%u", proc->pid); binder_open() 3005 "binder_flush: %d woke %d threads\n", proc->pid, binder_deferred_flush() 3078 __func__, proc->pid); binder_deferred_release() 3126 proc->pid, t->debug_id); binder_deferred_release() 3149 __func__, proc->pid, i, page_addr); binder_deferred_release() 3162 __func__, proc->pid, threads, nodes, incoming_refs, binder_deferred_release() 3229 t->from ? t->from->proc->pid : 0, print_binder_transaction() 3230 t->from ? t->from->pid : 0, print_binder_transaction() 3231 t->to_proc ? t->to_proc->pid : 0, print_binder_transaction() 3232 t->to_thread ? t->to_thread->pid : 0, print_binder_transaction() 3300 seq_printf(m, " thread %d: l %02x\n", thread->pid, thread->looper); print_binder_thread() 3342 seq_printf(m, " %d", ref->proc->pid); print_binder_node() 3365 seq_printf(m, "proc %d\n", proc->pid); print_binder_proc() 3489 seq_printf(m, "proc %d\n", proc->pid); print_binder_proc_stats()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
H A D | usb_ids.h | 34 #define USB_DEVICE_BOOTLOADER(vid, pid) \ 35 {USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD)} 37 #define USB_DEVICE_BOOTLOADER_DRV(vid, pid) \ 38 {USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD|B_DIFF_DL_DRV)} 40 #define USB_DEVICE_CDC_DATA(vid, pid) \ 41 {USB_DEVICE_INTF((vid), (pid), USB_CLASS_CDC_DATA)}
|
H A D | usb_boot.h | 19 int usb_boot(struct usb_device *usbdev, u16 pid);
|
/linux-4.4.14/tools/perf/python/ |
H A D | twatch.py | 45 print "cpu: %2d, pid: %4d, tid: %4d" % (event.sample_cpu, 52 To test the PERF_RECORD_SWITCH record, pick a pid and replace 57 cpu: 3, pid: 31463, tid: 31593 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31593, switch_out: 1 } 58 cpu: 1, pid: 31463, tid: 31489 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31489, switch_out: 1 } 59 cpu: 2, pid: 31463, tid: 31496 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31496, switch_out: 1 } 60 cpu: 3, pid: 31463, tid: 31491 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31491, switch_out: 0 }
|
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ |
H A D | event.c | 16 int perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, perf_event_open() argument 19 return syscall(__NR_perf_event_open, attr, pid, cpu, perf_event_open() 52 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) event_open_with_options() argument 54 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); event_open_with_options() 68 int event_open_with_pid(struct event *e, pid_t pid) event_open_with_pid() argument 70 return event_open_with_options(e, pid, PERF_NO_CPU, PERF_NO_GROUP); event_open_with_pid()
|
H A D | event.h | 30 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.4.14/drivers/pinctrl/mvebu/ |
H A D | pinctrl-mvebu.h | 19 * @pid: first pin id handled by this control 37 u8 pid; member in struct:mvebu_mpp_ctrl 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); 81 * @pid: first pin id handled by this mode 85 * given by pid. 88 u8 pid; member in struct:mvebu_mpp_mode 119 .pid = _idl, \ 131 .pid = _idl, \ 162 .pid = _id, \ 180 static inline int default_mpp_ctrl_get(void __iomem *base, unsigned int pid, default_mpp_ctrl_get() argument 183 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; default_mpp_ctrl_get() 184 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; default_mpp_ctrl_get() 191 static inline int default_mpp_ctrl_set(void __iomem *base, unsigned int pid, default_mpp_ctrl_set() argument 194 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; default_mpp_ctrl_set() 195 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; default_mpp_ctrl_set()
|
H A D | pinctrl-dove.c | 69 static int dove_mpp_ctrl_get(unsigned pid, unsigned long *config) dove_mpp_ctrl_get() argument 71 return default_mpp_ctrl_get(mpp_base, pid, config); dove_mpp_ctrl_get() 74 static int dove_mpp_ctrl_set(unsigned pid, unsigned long config) dove_mpp_ctrl_set() argument 76 return default_mpp_ctrl_set(mpp_base, pid, config); dove_mpp_ctrl_set() 79 static int dove_pmu_mpp_ctrl_get(unsigned pid, unsigned long *config) dove_pmu_mpp_ctrl_get() argument 81 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; dove_pmu_mpp_ctrl_get() 82 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; dove_pmu_mpp_ctrl_get() 86 if ((pmu & BIT(pid)) == 0) dove_pmu_mpp_ctrl_get() 87 return default_mpp_ctrl_get(mpp_base, pid, config); dove_pmu_mpp_ctrl_get() 96 static int dove_pmu_mpp_ctrl_set(unsigned pid, unsigned long config) dove_pmu_mpp_ctrl_set() argument 98 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; dove_pmu_mpp_ctrl_set() 99 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; dove_pmu_mpp_ctrl_set() 104 writel(pmu & ~BIT(pid), mpp_base + PMU_MPP_GENERAL_CTRL); dove_pmu_mpp_ctrl_set() 105 return default_mpp_ctrl_set(mpp_base, pid, config); dove_pmu_mpp_ctrl_set() 108 writel(pmu | BIT(pid), mpp_base + PMU_MPP_GENERAL_CTRL); dove_pmu_mpp_ctrl_set() 117 static int dove_mpp4_ctrl_get(unsigned pid, unsigned long *config) dove_mpp4_ctrl_get() argument 122 switch (pid) { dove_mpp4_ctrl_get() 147 static int dove_mpp4_ctrl_set(unsigned pid, unsigned long config) dove_mpp4_ctrl_set() argument 152 switch (pid) { dove_mpp4_ctrl_set() 181 static int dove_nand_ctrl_get(unsigned pid, unsigned long *config) dove_nand_ctrl_get() argument 191 static int dove_nand_ctrl_set(unsigned pid, unsigned long config) dove_nand_ctrl_set() argument 199 static int dove_audio0_ctrl_get(unsigned pid, unsigned long *config) dove_audio0_ctrl_get() argument 208 static int dove_audio0_ctrl_set(unsigned pid, unsigned long config) dove_audio0_ctrl_set() argument 220 static int dove_audio1_ctrl_get(unsigned pid, unsigned long *config) dove_audio1_ctrl_get() argument 250 static int dove_audio1_ctrl_set(unsigned pid, unsigned long config) dove_audio1_ctrl_set() argument 277 static int dove_audio1_ctrl_gpio_req(unsigned pid) dove_audio1_ctrl_gpio_req() argument 281 dove_audio1_ctrl_get(pid, &config); dove_audio1_ctrl_gpio_req() 286 if (pid >= 56) dove_audio1_ctrl_gpio_req() 291 if (pid <= 55) dove_audio1_ctrl_gpio_req() 304 static int dove_audio1_ctrl_gpio_dir(unsigned pid, bool input) dove_audio1_ctrl_gpio_dir() argument 306 if (pid < 52 || pid > 57) dove_audio1_ctrl_gpio_dir() 311 static int dove_twsi_ctrl_get(unsigned pid, unsigned long *config) dove_twsi_ctrl_get() argument 330 static int dove_twsi_ctrl_set(unsigned pid, unsigned long config) dove_twsi_ctrl_set() argument
|
H A D | pinctrl-orion.c | 35 static int orion_mpp_ctrl_get(unsigned pid, unsigned long *config) orion_mpp_ctrl_get() argument 37 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; orion_mpp_ctrl_get() 39 if (pid < 16) { orion_mpp_ctrl_get() 40 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; orion_mpp_ctrl_get() 50 static int orion_mpp_ctrl_set(unsigned pid, unsigned long config) orion_mpp_ctrl_set() argument 52 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; orion_mpp_ctrl_set() 54 if (pid < 16) { orion_mpp_ctrl_set() 55 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; orion_mpp_ctrl_set()
|
/linux-4.4.14/arch/x86/um/shared/sysdep/ |
H A D | tls.h | 31 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);
|
H A D | ptrace_32.h | 34 extern void arch_init_registers(int pid);
|
/linux-4.4.14/arch/alpha/include/uapi/asm/ |
H A D | msgbuf.h | 21 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 22 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 19 __kernel_pid_t shm_cpid; /* pid of creator */ 20 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/arch/powerpc/include/uapi/asm/ |
H A D | msgbuf.h | 27 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 28 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 40 __kernel_pid_t shm_cpid; /* pid of creator */ 41 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/arch/nios2/mm/ |
H A D | tlb.c | 30 static void get_misc_and_pid(unsigned long *misc, unsigned long *pid) get_misc_and_pid() argument 34 *pid = *misc & TLBMISC_PID; get_misc_and_pid() 60 /* remember pid/way until we return. */ flush_tlb_one_pid() 68 unsigned long pid; flush_tlb_one_pid() local 74 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; flush_tlb_one_pid() 76 pid == mmu_pid) { flush_tlb_one_pid() 80 pr_debug("Flush entry by writing %#lx way=%dl pid=%ld\n", flush_tlb_one_pid() 124 /* remember pid/way until we return. */ flush_tlb_one() 143 pr_debug("Flush entry by writing %#lx way=%dl pid=%ld\n", flush_tlb_one() 165 /* remember pid/way until we return */ dump_tlb_line() 181 pr_debug("-- way:%02x vpn:0x%08lx phys:0x%08lx pid:0x%02lx flags:%c%c%c%c%c\n", dump_tlb_line() 206 void flush_tlb_pid(unsigned long pid) flush_tlb_pid() argument 212 /* remember pid/way until we return */ flush_tlb_pid() 231 == pid) { flush_tlb_pid() 251 /* remember pid/way until we return */ flush_tlb_all() 267 /* restore pid/way */ flush_tlb_all() 271 void set_mmu_pid(unsigned long pid) set_mmu_pid() argument 274 ((pid & TLBMISC_PID_MASK) << TLBMISC_PID_SHIFT)); set_mmu_pid()
|
H A D | mmu_context.c | 32 /* Return the pid part of a context */ 35 /* Value of the first context (version 1, pid 0) */ 51 * Set new context (pid), keep way 60 /* Return the next pid */ get_new_context() 63 /* If the pid field wraps around we increase the version and get_new_context() 66 /* Version is incremented since the pid increment above get_new_context() 88 * generation then we have it should get a new generation/pid */ switch_mm()
|
/linux-4.4.14/arch/ia64/include/uapi/asm/ |
H A D | msgbuf.h | 21 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 22 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 19 __kernel_pid_t shm_cpid; /* pid of creator */ 20 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/tools/lib/lockdep/uinclude/linux/ |
H A D | lockdep.h | 24 int pid; member in struct:task_struct 33 #define task_pid_nr(tsk) ((tsk)->pid)
|
/linux-4.4.14/net/ax25/ |
H A D | ax25_iface.c | 58 void ax25_protocol_release(unsigned int pid) ax25_protocol_release() argument 67 if (protocol->pid == pid) { ax25_protocol_release() 73 if (protocol->next->pid == pid) { ax25_protocol_release() 161 int (*ax25_protocol_function(unsigned int pid))(struct sk_buff *, ax25_cb *) ax25_protocol_function() argument 168 if (protocol->pid == pid) { ax25_protocol_function() 203 int ax25_protocol_is_registered(unsigned int pid) ax25_protocol_is_registered() argument 210 if (protocol->pid == pid) { ax25_protocol_is_registered()
|
/linux-4.4.14/fs/ |
H A D | fcntl.c | 83 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, f_modown() argument 87 if (force || !filp->f_owner.pid) { f_modown() 88 put_pid(filp->f_owner.pid); f_modown() 89 filp->f_owner.pid = get_pid(pid); f_modown() 92 if (pid) { f_modown() 101 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, __f_setown() argument 105 f_modown(filp, pid, type, force); __f_setown() 112 struct pid *pid; f_setown() local 120 pid = find_vpid(who); f_setown() 121 __f_setown(filp, pid, type, force); f_setown() 133 pid_t pid; f_getown() local 135 pid = pid_vnr(filp->f_owner.pid); f_getown() 137 pid = -pid; f_getown() 139 return pid; f_getown() 146 struct pid *pid; f_setown_ex() local 172 pid = find_vpid(owner.pid); f_setown_ex() 173 if (owner.pid && !pid) f_setown_ex() 176 __f_setown(filp, pid, type, 1); f_setown_ex() 189 owner.pid = pid_vnr(filp->f_owner.pid); f_getown_ex() 494 struct pid *pid; send_sigio() local 505 pid = fown->pid; send_sigio() 506 if (!pid) send_sigio() 510 do_each_pid_task(pid, type, p) { do_each_pid_task() 512 } while_each_pid_task(pid, type, p); 529 struct pid *pid; send_sigurg() local 541 pid = fown->pid; send_sigurg() 542 if (!pid) send_sigurg() 548 do_each_pid_task(pid, type, p) { do_each_pid_task() 550 } while_each_pid_task(pid, type, p);
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
H A D | dtt200u.h | 43 * 04 - pid table (index pid(7:0) pid(12:8)) 44 * 05 - reset the pid table
|
H A D | dvb-usb-dvb.c | 27 /* stop feed before setting a new pid if there will be no pid anymore */ dvb_usb_ctrl_feed() 43 /* activate the pid on the device specific pid_filter */ dvb_usb_ctrl_feed() 44 deb_ts("setting pid (%s): %5d %04x at index %d '%s'\n", dvb_usb_ctrl_feed() 46 "yes" : "no", dvbdmxfeed->pid, dvbdmxfeed->pid, dvb_usb_ctrl_feed() 51 adap->props.fe[adap->active_fe].pid_filter(adap, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); dvb_usb_ctrl_feed() 60 deb_ts("controlling pid parser\n"); dvb_usb_ctrl_feed() 87 deb_ts("start pid: 0x%04x, feedtype: %d\n", dvbdmxfeed->pid, dvb_usb_start_feed() 94 deb_ts("stop pid: 0x%04x, feedtype: %d\n", dvbdmxfeed->pid, dvbdmxfeed->type); dvb_usb_stop_feed()
|
H A D | ttusb2.h | 49 /* out data: <index> <type: ts=1/sec=2> <pid msb> <pid lsb> */
|
/linux-4.4.14/arch/xtensa/include/uapi/asm/ |
H A D | shmbuf.h | 32 __kernel_pid_t shm_cpid; /* pid of creator */ 33 __kernel_pid_t shm_lpid; /* pid of last operator */ 48 __kernel_pid_t shm_cpid; /* pid of creator */ 49 __kernel_pid_t shm_lpid; /* pid of last operator */
|
H A D | msgbuf.h | 42 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 43 __kernel_pid_t msg_lrpid; /* last receive pid */
|
/linux-4.4.14/scripts/ |
H A D | bootgraph.pl | 100 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}; 194 if (!defined($rows{$pid})) { 195 $rows{$pid} = $rowscount; 204 $y = $rows{$pid} * 150;
|
/linux-4.4.14/arch/sh/mm/ |
H A D | asids-debugfs.c | 34 int pid = p->pid; for_each_process() local 36 if (unlikely(!pid)) for_each_process() 40 seq_printf(file, "%5d : %04lx\n", pid, for_each_process()
|
/linux-4.4.14/sound/firewire/oxfw/ |
H A D | oxfw.h | 82 unsigned int pid, u8 *format, unsigned int len); 84 enum avc_general_plug_dir dir, unsigned int pid, 88 enum avc_general_plug_dir dir, unsigned int pid, avc_stream_get_format_single() 91 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); avc_stream_get_format_single() 95 enum avc_general_plug_dir dir, unsigned int pid, avc_stream_get_format_list() 99 return avc_stream_get_format(unit, dir, pid, buf, len, eid); avc_stream_get_format_list() 108 unsigned short pid); 87 avc_stream_get_format_single(struct fw_unit *unit, enum avc_general_plug_dir dir, unsigned int pid, u8 *buf, unsigned int *len) avc_stream_get_format_single() argument 94 avc_stream_get_format_list(struct fw_unit *unit, enum avc_general_plug_dir dir, unsigned int pid, u8 *buf, unsigned int *len, unsigned int eid) avc_stream_get_format_list() argument
|
H A D | oxfw-command.c | 12 unsigned int pid, u8 *format, unsigned int len) avc_stream_set_format() 28 buf[7] = 0xff & pid; /* Plug ID */ avc_stream_set_format() 52 enum avc_general_plug_dir dir, unsigned int pid, avc_stream_get_format() 70 buf[7] = 0xff & pid; /* Plug ID */ avc_stream_get_format() 110 unsigned short pid) avc_general_inquiry_sig_fmt() 133 buf[3] = 0xff & pid; /* plug id */ avc_general_inquiry_sig_fmt() 11 avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, unsigned int pid, u8 *format, unsigned int len) avc_stream_set_format() argument 51 avc_stream_get_format(struct fw_unit *unit, enum avc_general_plug_dir dir, unsigned int pid, u8 *buf, unsigned int *len, unsigned int eid) avc_stream_get_format() argument 108 avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate, enum avc_general_plug_dir dir, unsigned short pid) avc_general_inquiry_sig_fmt() argument
|
/linux-4.4.14/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_inherit_exec_test.c | 48 pid_t pid; dscr_inherit_exec() local 71 pid = fork(); dscr_inherit_exec() 72 if (pid == -1) { dscr_inherit_exec() 75 } else if (pid) { dscr_inherit_exec() 78 if (waitpid(pid, &status, 0) == -1) { dscr_inherit_exec()
|
H A D | dscr_inherit_test.c | 26 pid_t pid; dscr_inherit() local 51 pid = fork(); dscr_inherit() 52 if (pid == -1) { dscr_inherit() 55 } else if (pid) { dscr_inherit() 58 if (waitpid(pid, &status, 0) == -1) { dscr_inherit()
|
/linux-4.4.14/tools/testing/selftests/powerpc/tm/ |
H A D | tm-syscall.c | 49 pid_t pid; getppid_tm() local 53 pid = getppid_tm_suspended(); getppid_tm() 55 pid = getppid_tm_active(); getppid_tm() 57 if (pid >= 0) getppid_tm() 58 return pid; getppid_tm()
|
/linux-4.4.14/net/core/ |
H A D | scm.c | 28 #include <linux/pid.h> 56 if ((creds->pid == task_tgid_vnr(current) || scm_check_creds() 176 p->creds.pid = creds.pid; for_each_cmsghdr() 177 if (!p->pid || pid_vnr(p->pid) != creds.pid) { for_each_cmsghdr() 178 struct pid *pid; for_each_cmsghdr() local 180 pid = find_get_pid(creds.pid); for_each_cmsghdr() 181 if (!pid) for_each_cmsghdr() 183 put_pid(p->pid); for_each_cmsghdr() 184 p->pid = pid; for_each_cmsghdr()
|
/linux-4.4.14/arch/cris/arch-v32/kernel/ |
H A D | ptrace.c | 29 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); get_reg() 74 return put_debugreg(task->pid, regno, data); put_reg() 101 if (!get_debugreg(child->pid, PT_BP_CTRL)) { user_disable_single_step() 122 deconfigure_bp(child->pid); ptrace_disable() 337 void deconfigure_bp(long pid) deconfigure_bp() argument 341 /* Only deconfigure if the pid is the owner. */ deconfigure_bp() 342 if (bp_owner != pid) deconfigure_bp() 348 put_debugreg(pid, PT_BP + 3 + (bp * 2), 0); deconfigure_bp() 349 put_debugreg(pid, PT_BP + 4 + (bp * 2), 0); deconfigure_bp() 352 tmp = get_debugreg(pid, PT_BP_CTRL) & ~(3 << (2 + (bp * 4))); deconfigure_bp() 353 put_debugreg(pid, PT_BP_CTRL, tmp); deconfigure_bp() 359 static int put_debugreg(long pid, unsigned int regno, long data) put_debugreg() argument 372 bp_owner = pid; put_debugreg() 373 else if (bp_owner != pid) { put_debugreg() 431 static long get_debugreg(long pid, unsigned int regno) get_debugreg() argument 436 if (pid != bp_owner) { get_debugreg()
|
/linux-4.4.14/kernel/debug/kdb/ |
H A D | kdb_bt.c | 49 * btp <pid> Kernel stack for <pid> 89 kdb_printf("Stack traceback for pid %d\n", p->pid); kdb_bt1() 141 unsigned long pid; local 144 diag = kdbgetularg((char *)argv[1], &pid); 147 p = find_task_by_pid_ns(pid, &init_pid_ns); 152 kdb_printf("No process with pid == %ld found\n", pid);
|
/linux-4.4.14/arch/mips/mm/ |
H A D | tlb-r3k.c | 134 int pid = read_c0_entryhi(); local_flush_tlb_kernel_range() local 153 write_c0_entryhi(pid); local_flush_tlb_kernel_range() 194 int idx, pid; __update_tlb() local 202 pid = read_c0_entryhi() & ASID_MASK; __update_tlb() 205 if ((pid != (cpu_context(cpu, vma->vm_mm) & ASID_MASK)) || (cpu_context(cpu, vma->vm_mm) == 0)) { __update_tlb() 207 (cpu_context(cpu, vma->vm_mm)), pid); __update_tlb() 213 write_c0_entryhi(address | pid); __update_tlb() 218 write_c0_entryhi(address | pid); __update_tlb() 224 write_c0_entryhi(pid); __update_tlb()
|
/linux-4.4.14/arch/alpha/kernel/ |
H A D | sys_marvel.c | 44 unsigned int pid; io7_device_interrupt() 61 pid = vector >> 16; io7_device_interrupt() 66 irq |= pid << MARVEL_IRQ_VEC_PE_SHIFT; /* merge the pid */ io7_device_interrupt() 75 unsigned int pid; io7_get_irq_ctl() 78 pid = irq >> MARVEL_IRQ_VEC_PE_SHIFT; io7_get_irq_ctl() 80 if (!(io7 = marvel_find_io7(pid))) { io7_get_irq_ctl() 82 "%s for nonexistent io7 -- vec %x, pid %d\n", io7_get_irq_ctl() 83 __func__, irq, pid); io7_get_irq_ctl() 92 "%s for invalid irq -- pid %d adjusted irq %x\n", io7_get_irq_ctl() 93 __func__, pid, irq); io7_get_irq_ctl() 181 val &= ~(0x1ffUL << 24); /* clear the target pid */ io7_redirect_irq() 182 val |= ((unsigned long)where << 24); /* set the new target pid */ io7_redirect_irq() 198 val &= ~(0x1ffUL << 14); /* clear the target pid */ io7_redirect_one_lsi() 199 val |= ((unsigned long)where << 14); /* set the new target pid */ io7_redirect_one_lsi() 215 val &= ~(0x1ffUL << 14); /* clear the target pid */ io7_redirect_one_msi() 216 val |= ((unsigned long)where << 14); /* set the new target pid */ io7_redirect_one_msi() 375 irq |= io7->pe << MARVEL_IRQ_VEC_PE_SHIFT; /* merge the pid */ marvel_map_irq() 43 unsigned int pid; io7_device_interrupt() local 74 unsigned int pid; io7_get_irq_ctl() local
|
/linux-4.4.14/drivers/usb/storage/ |
H A D | usual-tables.c | 73 u16 vid, pid, bcdmin, bcdmax; member in struct:ignore_entry 81 .pid = id_product, \ 109 unsigned vid, pid, bcd; usb_usual_ignore_device() local 114 pid = le16_to_cpu(udev->descriptor.idProduct); usb_usual_ignore_device() 118 if (p->vid == vid && p->pid == pid && usb_usual_ignore_device()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | mlx5_core.h | 47 dev_dbg(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format, \ 48 (__dev)->priv.name, __func__, __LINE__, current->pid, \ 58 dev_err(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format, \ 59 (__dev)->priv.name, __func__, __LINE__, current->pid, \ 63 dev_warn(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format, \ 64 (__dev)->priv.name, __func__, __LINE__, current->pid, \
|
/linux-4.4.14/tools/perf/bench/ |
H A D | sched-pipe.c | 93 pid_t pid, retpid __maybe_unused; bench_sched_pipe() local 134 pid = fork(); bench_sched_pipe() 135 assert(pid >= 0); bench_sched_pipe() 137 if (!pid) { bench_sched_pipe() 144 retpid = waitpid(pid, &wait_stat, 0); bench_sched_pipe() 145 assert((retpid == pid) && WIFEXITED(wait_stat)); bench_sched_pipe()
|
/linux-4.4.14/Documentation/trace/postprocess/ |
H A D | trace-pagealloc-postprocess.pl | 11 # --ignore-pid Aggregate processes of the same name together 74 'ignore-pid' => \$opt_ignorepid, 137 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); 212 $process_pid = parent_info($pid, $statline) . " :: $process_pid";
|
/linux-4.4.14/arch/tile/include/asm/ |
H A D | hardwall.h | 26 int proc_pid_hardwall(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task);
|
/linux-4.4.14/arch/mips/include/uapi/asm/ |
H A D | shmbuf.h | 19 __kernel_pid_t shm_cpid; /* pid of creator */ 20 __kernel_pid_t shm_lpid; /* pid of last operator */
|
H A D | msgbuf.h | 41 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 42 __kernel_pid_t msg_lrpid; /* last receive pid */
|
/linux-4.4.14/arch/s390/include/uapi/asm/ |
H A D | msgbuf.h | 31 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 32 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 29 __kernel_pid_t shm_cpid; /* pid of creator */ 30 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/arch/sparc/include/uapi/asm/ |
H A D | msgbuf.h | 32 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 33 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 29 __kernel_pid_t shm_cpid; /* pid of creator */ 30 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/arch/mn10300/include/uapi/asm/ |
H A D | msgbuf.h | 25 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 26 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 23 __kernel_pid_t shm_cpid; /* pid of creator */ 24 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/arch/parisc/include/uapi/asm/ |
H A D | msgbuf.h | 33 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 34 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 34 __kernel_pid_t shm_cpid; /* pid of creator */ 35 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/arch/frv/include/uapi/asm/ |
H A D | msgbuf.h | 25 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 26 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 23 __kernel_pid_t shm_cpid; /* pid of creator */ 24 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/arch/m32r/include/uapi/asm/ |
H A D | msgbuf.h | 25 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 26 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 23 __kernel_pid_t shm_cpid; /* pid of creator */ 24 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/arch/avr32/include/uapi/asm/ |
H A D | msgbuf.h | 25 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 26 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 23 __kernel_pid_t shm_cpid; /* pid of creator */ 24 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/mm/ |
H A D | process_vm_access.c | 131 * @pid: PID of process to read/write from/to 141 static ssize_t process_vm_rw_core(pid_t pid, struct iov_iter *iter, process_vm_rw_core() argument 188 task = find_task_by_vpid(pid); process_vm_rw_core() 236 * @pid: PID of process to read/write from/to 247 static ssize_t process_vm_rw(pid_t pid, process_vm_rw() argument 277 rc = process_vm_rw_core(pid, &iter, iov_r, riovcnt, flags, vm_write); process_vm_rw() 287 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec, SYSCALL_DEFINE6() 291 return process_vm_rw(pid, lvec, liovcnt, rvec, riovcnt, flags, 0); SYSCALL_DEFINE6() 294 SYSCALL_DEFINE6(process_vm_writev, pid_t, pid, SYSCALL_DEFINE6() 299 return process_vm_rw(pid, lvec, liovcnt, rvec, riovcnt, flags, 1); SYSCALL_DEFINE6() 305 compat_process_vm_rw(compat_pid_t pid, compat_process_vm_rw() argument 334 rc = process_vm_rw_core(pid, &iter, iov_r, riovcnt, flags, vm_write); compat_process_vm_rw() 343 COMPAT_SYSCALL_DEFINE6(process_vm_readv, compat_pid_t, pid, COMPAT_SYSCALL_DEFINE6() 350 return compat_process_vm_rw(pid, lvec, liovcnt, rvec, COMPAT_SYSCALL_DEFINE6() 354 COMPAT_SYSCALL_DEFINE6(process_vm_writev, compat_pid_t, pid, COMPAT_SYSCALL_DEFINE6() 361 return compat_process_vm_rw(pid, lvec, liovcnt, rvec, COMPAT_SYSCALL_DEFINE6()
|
/linux-4.4.14/tools/perf/ |
H A D | perf-sys.h | 104 pid_t pid, int cpu, int group_fd, sys_perf_event_open() 109 fd = syscall(__NR_perf_event_open, attr, pid, cpu, sys_perf_event_open() 114 test_attr__open(attr, pid, cpu, fd, group_fd, flags); sys_perf_event_open() 103 sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) sys_perf_event_open() argument
|
H A D | builtin-timechart.c | 79 * We keep an list of "pid"s, matching the kernels notion of a task struct. 80 * Each "pid" entry, has a list of "comm"s. 82 * exec will reuse the original pid (by design). 90 int pid; member in struct:per_pid 190 int pid; member in struct:process_filter 197 static struct per_pid *find_create_pid(struct timechart *tchart, int pid) find_create_pid() argument 202 if (cursor->pid == pid) find_create_pid() 208 cursor->pid = pid; find_create_pid() 214 static void pid_set_comm(struct timechart *tchart, int pid, char *comm) pid_set_comm() argument 218 p = find_create_pid(tchart, pid); pid_set_comm() 240 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) pid_fork() argument 243 p = find_create_pid(tchart, pid); pid_fork() 247 pid_set_comm(tchart, pid, pp->current->comm); pid_fork() 256 static void pid_exit(struct timechart *tchart, int pid, u64 timestamp) pid_exit() argument 259 p = find_create_pid(tchart, pid); pid_exit() 265 static void pid_put_sample(struct timechart *tchart, int pid, int type, pid_put_sample() argument 273 p = find_create_pid(tchart, pid); pid_put_sample() 327 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); process_fork_event() 337 pid_exit(tchart, event->fork.pid, event->fork.time); process_exit_event() 430 pid_put_sample(tchart, p->pid, p->current->state, cpu, sched_wakeup() 615 int wakee = perf_evsel__intval(evsel, sample, "pid"); process_sample_sched_wakeup() 720 static int pid_begin_io_sample(struct timechart *tchart, int pid, int type, pid_begin_io_sample() argument 723 struct per_pid *p = find_create_pid(tchart, pid); pid_begin_io_sample() 765 static int pid_end_io_sample(struct timechart *tchart, int pid, int type, pid_end_io_sample() argument 768 struct per_pid *p = find_create_pid(tchart, pid); pid_end_io_sample() 964 * Sort the pid datastructure 969 /* sort by ppid first, then by pid, lowest to highest */ sort_pids() 987 (cursor->ppid == p->ppid && cursor->pid > p->pid)) { sort_pids() 1051 if (p->pid == we->waker || p->pid == we->wakee) { draw_wakeups() 1055 if (p->pid == we->waker && !from) { draw_wakeups() 1059 if (p->pid == we->wakee && !to) { draw_wakeups() 1068 if (p->pid == we->waker && !from) { draw_wakeups() 1072 if (p->pid == we->wakee && !to) { draw_wakeups() 1120 p->pid, draw_cpu_usage() 1237 sprintf(comm, "%s:%i (%3.1f %sbytes)", c->comm ?: "", p->pid, bytes, suf); draw_io_bars() 1291 sprintf(comm, "%s:%i (%2.2fs)", c->comm, p->pid, c->total_time / 1000000000.0); draw_process_bars() 1293 sprintf(comm, "%s:%i (%3.1fms)", c->comm, p->pid, c->total_time / 1000000.0); draw_process_bars() 1307 int pid = strtoull(string, NULL, 10); add_process_filter() local 1314 filt->pid = pid; add_process_filter() 1328 if (filt->pid && p->pid == filt->pid) passes_filter() 1946 "process selector. Pass a pid or process name.", cmd_timechart()
|
/linux-4.4.14/arch/mips/kernel/ |
H A D | mips-mt-fpaff.c | 38 static inline struct task_struct *find_process_by_pid(pid_t pid) find_process_by_pid() argument 40 return pid ? find_task_by_vpid(pid) : current; find_process_by_pid() 62 asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, mipsmt_sys_sched_setaffinity() argument 79 p = find_process_by_pid(pid); mipsmt_sys_sched_setaffinity() 153 asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, mipsmt_sys_sched_getaffinity() argument 169 p = find_process_by_pid(pid); mipsmt_sys_sched_getaffinity()
|
/linux-4.4.14/arch/score/mm/ |
H A D | tlb-score.c | 131 int pid = pevn_get(); local_flush_tlb_kernel_range() local 151 pevn_set(pid); local_flush_tlb_kernel_range() 216 int idx, pid; __update_tlb() local 224 pid = pevn_get() & ASID_MASK; __update_tlb() 228 pevn_set(address | pid); __update_tlb() 233 pevn_set(address | pid); __update_tlb() 239 pevn_set(pid); __update_tlb()
|
/linux-4.4.14/drivers/scsi/bfa/ |
H A D | bfa_fcs_rport.c | 181 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_uninit() 220 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_plogi_sending() 259 rport->pid = 0; bfa_fcs_rport_sm_plogi_sending() 281 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_plogiacc_sending() 320 rport->pid = 0; bfa_fcs_rport_sm_plogiacc_sending() 347 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_plogi_retry() 391 rport->pid = 0; bfa_fcs_rport_sm_plogi_retry() 417 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_plogi() 449 rport->old_pid = rport->pid; bfa_fcs_rport_sm_plogi() 450 rport->pid = 0; bfa_fcs_rport_sm_plogi() 478 rport->pid = 0; bfa_fcs_rport_sm_plogi() 527 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_fc4_fcs_online() 533 if (!BFA_FCS_PID_IS_WKA(rport->pid)) bfa_fcs_rport_sm_fc4_fcs_online() 593 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_hal_online() 642 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_online() 696 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_nsquery_sending() 745 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_nsquery() 805 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_adisc_online_sending() 856 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_adisc_online() 919 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_adisc_offline_sending() 960 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_adisc_offline() 1007 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_fc4_logorcv() 1017 if (rport->pid && (rport->prlo == BFA_TRUE)) bfa_fcs_rport_sm_fc4_logorcv() 1019 if (rport->pid && (rport->prlo == BFA_FALSE)) bfa_fcs_rport_sm_fc4_logorcv() 1047 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_fc4_logosend() 1082 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_fc4_offline() 1133 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_hcb_offline() 1152 rport->pid = 0; bfa_fcs_rport_sm_hcb_offline() 1215 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_hcb_logorcv() 1221 if (rport->pid && (rport->prlo == BFA_TRUE)) bfa_fcs_rport_sm_hcb_logorcv() 1223 if (rport->pid && (rport->prlo == BFA_FALSE)) bfa_fcs_rport_sm_hcb_logorcv() 1231 (!BFA_FCS_PID_IS_WKA(rport->pid))) { bfa_fcs_rport_sm_hcb_logorcv() 1247 * pid to 0. bfa_fcs_rport_sm_hcb_logorcv() 1249 if (!BFA_FCS_PID_IS_WKA(rport->pid)) bfa_fcs_rport_sm_hcb_logorcv() 1250 rport->pid = 0; bfa_fcs_rport_sm_hcb_logorcv() 1260 if (rport->pid && (rport->prlo == BFA_TRUE)) bfa_fcs_rport_sm_hcb_logorcv() 1262 if (rport->pid && (rport->prlo == BFA_FALSE)) bfa_fcs_rport_sm_hcb_logorcv() 1294 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_hcb_logosend() 1330 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_logo_sending() 1370 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_offline() 1439 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_nsdisc_sending() 1496 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_nsdisc_retry() 1526 rport->pid = 0; bfa_fcs_rport_sm_nsdisc_retry() 1560 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_nsdisc_sent() 1566 if (rport->pid) { bfa_fcs_rport_sm_nsdisc_sent() 1584 rport->old_pid = rport->pid; bfa_fcs_rport_sm_nsdisc_sent() 1585 rport->pid = 0; bfa_fcs_rport_sm_nsdisc_sent() 1606 rport->pid = 0; bfa_fcs_rport_sm_nsdisc_sent() 1651 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_fc4_off_delete() 1680 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_sm_delete_pending() 1724 len = fc_plogi_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), rport->pid, bfa_fcs_rport_send_plogi() 1793 bfa_trc(rport->fcs, twin->pid); bfa_fcs_rport_plogi_response() 1794 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_plogi_response() 1810 twin->pid = rsp_fchs->s_id; bfa_fcs_rport_plogi_response() 1846 rport->pid, bfa_fcs_lport_get_fcid(port), bfa_fcs_rport_send_plogiacc() 1878 len = fc_adisc_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), rport->pid, bfa_fcs_rport_send_adisc() 1931 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_send_nsdisc() 1948 bfa_fcs_lport_get_fcid(port), 0, rport->pid); bfa_fcs_rport_send_nsdisc() 1976 /* Check if the pid is the same as before. */ bfa_fcs_rport_gidpn_response() 1979 if (gidpn_rsp->dap == rport->pid) { bfa_fcs_rport_gidpn_response() 1986 * the the newly discovered pid, send an scn notice bfa_fcs_rport_gidpn_response() 1987 * so that its new pid can be discovered. bfa_fcs_rport_gidpn_response() 1993 if (gidpn_rsp->dap == twin->pid) { bfa_fcs_rport_gidpn_response() 1994 bfa_trc(rport->fcs, twin->pid); bfa_fcs_rport_gidpn_response() 1995 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_gidpn_response() 1997 twin->pid = 0; bfa_fcs_rport_gidpn_response() 2002 rport->pid = gidpn_rsp->dap; bfa_fcs_rport_gidpn_response() 2086 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_send_logo() 2099 len = fc_logo_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), rport->pid, bfa_fcs_rport_send_logo() 2124 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_send_logo_acc() 2134 rport->pid, bfa_fcs_lport_get_fcid(port), bfa_fcs_rport_send_logo_acc() 2296 rport_info.pid = rport->pid; bfa_fcs_rport_hal_online() 2297 rport_info.local_pid = port->pid; bfa_fcs_rport_hal_online() 2343 rport->pid = rpid; bfa_fcs_rport_alloc() 2369 if (!BFA_FCS_PID_IS_WKA(rport->pid)) bfa_fcs_rport_alloc() 2391 if (rport->pid != 0 && !BFA_FCS_PID_IS_WKA(rport->pid)) bfa_fcs_rport_free() 2437 if ((!rport->pid) || (!rport->pwwn)) { bfa_fcs_rport_fcs_online_action() 2438 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_fcs_online_action() 2439 bfa_sm_fault(rport->fcs, rport->pid); bfa_fcs_rport_fcs_online_action() 2455 if ((!rport->pid) || (!rport->pwwn)) { bfa_fcs_rport_hal_online_action() 2456 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_hal_online_action() 2457 bfa_sm_fault(rport->fcs, rport->pid); bfa_fcs_rport_hal_online_action() 2462 if (!BFA_FCS_PID_IS_WKA(rport->pid)) bfa_fcs_rport_hal_online_action() 2468 if (!BFA_FCS_PID_IS_WKA(rport->pid)) { bfa_fcs_rport_hal_online_action() 2479 if (!BFA_FCS_PID_IS_WKA(rport->pid)) bfa_fcs_rport_fcs_offline_action() 2502 if (!BFA_FCS_PID_IS_WKA(rport->pid)) { bfa_fcs_rport_hal_offline_action() 2522 if (!BFA_FCS_PID_IS_WKA(rport->pid)) bfa_fcs_rport_hal_offline_action() 2710 rport->pid = rx_fchs->s_id; bfa_fcs_rport_plogi() 2711 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_plogi() 2935 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_send_prlo_acc() 2941 rport->pid, bfa_fcs_lport_get_fcid(port), bfa_fcs_rport_send_prlo_acc() 3004 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rport_prlo() 3036 rport_attr->pid = rport->pid; bfa_fcs_rport_get_attr() 3159 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_sm_uninit() 3165 if ((!BFA_FCS_PID_IS_WKA(rport->pid)) && bfa_fcs_rpf_sm_uninit() 3211 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_sm_rpsc() 3257 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_sm_rpsc_retry() 3284 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_sm_online() 3304 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_sm_offline() 3328 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_init() 3340 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_rport_online() 3355 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_rport_offline() 3370 bfa_trc(rport->fcs, rport->pid); bfa_fcs_rpf_timeout() 3395 len = fc_rpsc2_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), rport->pid, bfa_fcs_rpf_send_rpsc2() 3396 bfa_fcs_lport_get_fcid(port), &rport->pid, 1); bfa_fcs_rpf_send_rpsc2() 3433 WARN_ON(be32_to_cpu(rpsc2_acc->port_info[0].pid) != bfa_fcs_rpf_rpsc2_response() 3434 bfa_ntoh3b(rport->pid)); bfa_fcs_rpf_rpsc2_response() 3436 be32_to_cpu(rpsc2_acc->port_info[0].pid)); bfa_fcs_rpf_rpsc2_response()
|
/linux-4.4.14/arch/powerpc/kvm/ |
H A D | e500.c | 136 /* Map guest pid to shadow. 158 /* Update shadow pid when mappings are changed */ kvmppc_e500_id_table_reset_all() 165 int as, int pid, int pr) kvmppc_e500_id_table_reset_one() 170 BUG_ON(pid >= NUM_TIDS); kvmppc_e500_id_table_reset_one() 173 idt->id[as][pid][pr].val = 0; kvmppc_e500_id_table_reset_one() 174 idt->id[as][pid][pr].pentry = NULL; kvmppc_e500_id_table_reset_one() 176 /* Update shadow pid when mappings are changed */ kvmppc_e500_id_table_reset_one() 210 /* Update shadow pid when mappings are changed */ kvmppc_e500_get_sid() 225 void kvmppc_set_pid(struct kvm_vcpu *vcpu, u32 pid) kvmppc_set_pid() argument 229 if (vcpu->arch.pid != pid) { kvmppc_set_pid() 230 vcpu_e500->pid[0] = vcpu->arch.pid = pid; kvmppc_set_pid() 241 int pid; kvmppc_e500_tlbil_one() local 261 pid = local_sid_lookup(&idt->id[ts][tid][pr]); kvmppc_e500_tlbil_one() 262 if (pid <= 0) { kvmppc_e500_tlbil_one() 273 val = (pid << MAS6_SPID_SHIFT) | MAS6_SAS; kvmppc_e500_tlbil_one() 299 /* Recalc shadow pid since MSR changes */ kvmppc_mmu_msr_notify() 163 kvmppc_e500_id_table_reset_one( struct kvmppc_vcpu_e500 *vcpu_e500, int as, int pid, int pr) kvmppc_e500_id_table_reset_one() argument
|
/linux-4.4.14/drivers/misc/cxl/ |
H A D | fault.c | 12 #include <linux/pid.h> 198 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { cxl_handle_fault() 200 pid_nr(ctx->pid)); cxl_handle_fault() 206 pid_nr(ctx->pid)); cxl_handle_fault() 232 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { cxl_prefault_one() 234 pid_nr(ctx->pid)); cxl_prefault_one() 239 pid_nr(ctx->pid)); cxl_prefault_one() 269 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { cxl_prefault_vma() 271 pid_nr(ctx->pid)); cxl_prefault_vma() 276 pid_nr(ctx->pid)); cxl_prefault_vma()
|
/linux-4.4.14/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 192 pid_t pid; test_unpriv_remount() local 194 pid = waitpid(child, &status, 0); test_unpriv_remount() 195 if (pid == -1) { test_unpriv_remount() 199 if (pid != child) { test_unpriv_remount() 201 child, pid); test_unpriv_remount() 270 pid_t pid; test_priv_mount_unpriv_remount() local 272 pid = waitpid(child, &status, 0); test_priv_mount_unpriv_remount() 273 if (pid == -1) { test_priv_mount_unpriv_remount() 277 if (pid != child) { test_priv_mount_unpriv_remount() 279 child, pid); test_priv_mount_unpriv_remount()
|
/linux-4.4.14/arch/m32r/kernel/ |
H A D | process.c | 110 DPRINTK("pid = %d\n", current->pid); exit_thread() 115 DPRINTK("pid = %d\n", current->pid); flush_thread() 122 DPRINTK("pid = %d\n", dead_task->pid); release_thread()
|
/linux-4.4.14/kernel/time/ |
H A D | timer_stats.c | 26 * the pid and cmdline from the owner process if applicable. 65 pid_t pid; member in struct:entry 132 (unsigned long)(entry)->pid ) & TSTAT_HASH_MASK) 159 entry1->pid == entry2->pid; match_entries() 226 * @pid: the pid of the task which set up the timer 235 void timer_stats_update_stats(void *timer, pid_t pid, void *startf, timer_stats_update_stats() argument 253 input.pid = pid; timer_stats_update_stats() 311 entry->count, entry->pid, entry->comm); tstats_show() 314 entry->count, entry->pid, entry->comm); tstats_show()
|
/linux-4.4.14/drivers/char/agp/ |
H A D | compat_ioctl.c | 75 kreserve.pid = ureserve.pid; compat_agpioc_reserve_wrap() 78 client = agp_find_client_by_pid(kreserve.pid); compat_agpioc_reserve_wrap() 82 client_priv = agp_find_private(kreserve.pid); compat_agpioc_reserve_wrap() 92 return agp_remove_client(kreserve.pid); compat_agpioc_reserve_wrap() 129 client = agp_create_client(kreserve.pid); compat_agpioc_reserve_wrap() 135 client_priv = agp_find_private(kreserve.pid); compat_agpioc_reserve_wrap() 228 /* Use the original pid of the controller, compat_agp_ioctl() 231 if (agp_fe.current_controller->pid != curr_priv->my_pid) { compat_agp_ioctl()
|
/linux-4.4.14/fs/jffs2/ |
H A D | background.c | 53 jffs2_dbg(1, "Garbage collect thread is pid %d\n", tsk->pid); jffs2_start_garbage_collect_thread() 55 ret = tsk->pid; jffs2_start_garbage_collect_thread() 66 jffs2_dbg(1, "Killing GC task %d\n", c->gc_task->pid); jffs2_stop_garbage_collect_thread()
|
/linux-4.4.14/security/apparmor/include/ |
H A D | procattr.h | 4 * This file contains AppArmor /proc/<pid>/attr/ interface function definitions.
|
/linux-4.4.14/fs/btrfs/ |
H A D | locking.c | 42 if (eb->lock_nested && current->pid == eb->lock_owner) btrfs_set_lock_blocking_rw() 74 if (eb->lock_nested && current->pid == eb->lock_owner) btrfs_clear_lock_blocking_rw() 110 current->pid == eb->lock_owner); btrfs_tree_read_lock() 114 current->pid == eb->lock_owner) { btrfs_tree_read_lock() 195 eb->lock_owner = current->pid; btrfs_try_tree_write_lock() 210 if (eb->lock_nested && current->pid == eb->lock_owner) { btrfs_tree_read_unlock() 232 if (eb->lock_nested && current->pid == eb->lock_owner) { btrfs_tree_read_unlock_blocking() 253 WARN_ON(eb->lock_owner == current->pid); btrfs_tree_lock() 273 eb->lock_owner = current->pid; btrfs_tree_lock()
|
/linux-4.4.14/arch/parisc/kernel/ |
H A D | sys_parisc32.c | 22 current->comm, current->pid, r20); sys32_unimplemented()
|
/linux-4.4.14/tools/testing/selftests/memfd/ |
H A D | fuse_test.c | 203 pid_t pid; spawn_sealing_thread() local 211 pid = clone(sealing_thread_fn, spawn_sealing_thread() 215 if (pid < 0) { spawn_sealing_thread() 220 return pid; spawn_sealing_thread() 223 static void join_sealing_thread(pid_t pid) join_sealing_thread() argument 225 waitpid(pid, NULL, 0); join_sealing_thread() 234 pid_t pid; main() local 261 pid = spawn_sealing_thread(); main() 283 join_sealing_thread(pid); main()
|
/linux-4.4.14/drivers/cpufreq/ |
H A D | intel_pstate.c | 109 struct _pid pid; member in struct:cpudata 192 static inline void pid_reset(struct _pid *pid, int setpoint, int busy, pid_reset() argument 194 pid->setpoint = setpoint; pid_reset() 195 pid->deadband = deadband; pid_reset() 196 pid->integral = int_tofp(integral); pid_reset() 197 pid->last_err = int_tofp(setpoint) - int_tofp(busy); pid_reset() 200 static inline void pid_p_gain_set(struct _pid *pid, int percent) pid_p_gain_set() argument 202 pid->p_gain = div_fp(int_tofp(percent), int_tofp(100)); pid_p_gain_set() 205 static inline void pid_i_gain_set(struct _pid *pid, int percent) pid_i_gain_set() argument 207 pid->i_gain = div_fp(int_tofp(percent), int_tofp(100)); pid_i_gain_set() 210 static inline void pid_d_gain_set(struct _pid *pid, int percent) pid_d_gain_set() argument 212 pid->d_gain = div_fp(int_tofp(percent), int_tofp(100)); pid_d_gain_set() 215 static signed int pid_calc(struct _pid *pid, int32_t busy) pid_calc() argument 221 fp_error = int_tofp(pid->setpoint) - busy; pid_calc() 223 if (abs(fp_error) <= int_tofp(pid->deadband)) pid_calc() 226 pterm = mul_fp(pid->p_gain, fp_error); pid_calc() 228 pid->integral += fp_error; pid_calc() 239 if (pid->integral > integral_limit) pid_calc() 240 pid->integral = integral_limit; pid_calc() 241 if (pid->integral < -integral_limit) pid_calc() 242 pid->integral = -integral_limit; pid_calc() 244 dterm = mul_fp(pid->d_gain, fp_error - pid->last_err); pid_calc() 245 pid->last_err = fp_error; pid_calc() 247 result = pterm + mul_fp(pid->integral, pid->i_gain) + dterm; pid_calc() 254 pid_p_gain_set(&cpu->pid, pid_params.p_gain_pct); intel_pstate_busy_pid_reset() 255 pid_d_gain_set(&cpu->pid, pid_params.d_gain_pct); intel_pstate_busy_pid_reset() 256 pid_i_gain_set(&cpu->pid, pid_params.i_gain_pct); intel_pstate_busy_pid_reset() 258 pid_reset(&cpu->pid, pid_params.setpoint, 100, pid_params.deadband, 0); intel_pstate_busy_pid_reset() 974 struct _pid *pid; intel_pstate_adjust_busy_pstate() local 981 pid = &cpu->pid; intel_pstate_adjust_busy_pstate() 984 ctl = pid_calc(pid, busy_scaled); intel_pstate_adjust_busy_pstate()
|
/linux-4.4.14/drivers/connector/ |
H A D | cn_proc.c | 85 ev->event_data.fork.parent_pid = parent->pid; proc_fork_connector() 88 ev->event_data.fork.child_pid = task->pid; proc_fork_connector() 114 ev->event_data.exec.process_pid = task->pid; proc_exec_connector() 138 ev->event_data.id.process_pid = task->pid; proc_id_connector() 178 ev->event_data.sid.process_pid = task->pid; proc_sid_connector() 203 ev->event_data.ptrace.process_pid = task->pid; proc_ptrace_connector() 206 ev->event_data.ptrace.tracer_pid = current->pid; proc_ptrace_connector() 236 ev->event_data.comm.process_pid = task->pid; proc_comm_connector() 262 ev->event_data.coredump.process_pid = task->pid; proc_coredump_connector() 287 ev->event_data.exit.process_pid = task->pid; proc_exit_connector() 345 * Events are reported with respect to the initial pid cn_proc_mcast_ctl()
|
/linux-4.4.14/drivers/media/dvb-core/ |
H A D | dvb_demux.c | 397 u16 pid = ts_pid(buf); dvb_dmx_swfilter_packet() local 436 pid, buf[1]); dvb_dmx_swfilter_packet() 441 } else /* if TEI bit is set, pid may be wrong- skip pkt counter */ dvb_dmx_swfilter_packet() 444 if (pid < MAX_PID) { dvb_dmx_swfilter_packet() 446 demux->cnt_storage[pid] = dvb_dmx_swfilter_packet() 447 (demux->cnt_storage[pid] + 1) & 0xf; dvb_dmx_swfilter_packet() 449 if ((buf[3] & 0xf) != demux->cnt_storage[pid]) { dvb_dmx_swfilter_packet() 451 pid, demux->cnt_storage[pid], dvb_dmx_swfilter_packet() 453 demux->cnt_storage[pid] = buf[3] & 0xf; dvb_dmx_swfilter_packet() 460 if ((feed->pid != pid) && (feed->pid != 0x2000)) dvb_dmx_swfilter_packet() 468 if (feed->pid == pid) dvb_dmx_swfilter_packet() 470 else if (feed->pid == 0x2000) dvb_dmx_swfilter_packet() 643 printk(KERN_ERR "%s: feed already in list (type=%x state=%x pid=%x)\n", dvb_demux_feed_add() 644 __func__, feed->type, feed->state, feed->pid); dvb_demux_feed_add() 657 printk(KERN_ERR "%s: feed not in list (type=%x state=%x pid=%x)\n", dvb_demux_feed_del() 658 __func__, feed->type, feed->state, feed->pid); dvb_demux_feed_del() 667 static int dmx_ts_feed_set(struct dmx_ts_feed *ts_feed, u16 pid, int ts_type, dmx_ts_feed_set() argument 674 if (pid > DMX_MAX_PID) dmx_ts_feed_set() 693 demux->pids[pes_type] = pid; dmx_ts_feed_set() 698 feed->pid = pid; dmx_ts_feed_set() 802 feed->pid = 0xffff; dvbdmx_allocate_ts_feed() 851 feed->pid = 0xffff; dvbdmx_release_ts_feed() 896 u16 pid, size_t circular_buffer_size, dmx_section_feed_set() 902 if (pid > 0x1fff) dmx_section_feed_set() 910 dvbdmxfeed->pid = pid; dmx_section_feed_set() 1077 dvbdmxfeed->pid = 0xffff; dvbdmx_allocate_section_feed() 1119 dvbdmxfeed->pid = 0xffff; dvbdmx_release_section_feed() 895 dmx_section_feed_set(struct dmx_section_feed *feed, u16 pid, size_t circular_buffer_size, int check_crc) dmx_section_feed_set() argument
|
/linux-4.4.14/drivers/media/usb/as102/ |
H A D | as102_drv.c | 104 int index, u16 pid, int onoff) { as10x_pid_filter() 117 ret = as10x_cmd_del_PID_filter(bus_adap, (uint16_t) pid); as10x_pid_filter() 120 index, pid, ret); as10x_pid_filter() 128 filter.pid = pid; as10x_pid_filter() 133 index, filter.idx, filter.pid, ret); as10x_pid_filter() 153 dvbdmxfeed->pid, 1); as102_dvb_dmx_start_feed() 175 dvbdmxfeed->pid, 0); as102_dvb_dmx_stop_feed() 103 as10x_pid_filter(struct as102_dev_t *dev, int index, u16 pid, int onoff) as10x_pid_filter() argument
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
H A D | dib3000.h | 37 /* pid and transfer handling is done in the demodulator */ 40 int (*pid_ctrl)(struct dvb_frontend *fe, int index, int pid, int onoff);
|
H A D | dib7000m.h | 50 extern int dib7000m_pid_filter(struct dvb_frontend *, u8 id, u16 pid, u8 onoff); 70 u16 pid, u8 onoff) dib7000m_pid_filter() 69 dib7000m_pid_filter(struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff) dib7000m_pid_filter() argument
|
/linux-4.4.14/arch/c6x/kernel/ |
H A D | sys_c6x.c | 33 pr_debug("Bad access attempt: pid[%d] addr[%08lx] size[0x%lx]\n", _access_ok() 34 current->pid, addr, size); _access_ok()
|
/linux-4.4.14/fs/autofs4/ |
H A D | autofs_i.h | 43 pr_debug("pid %d: %s: " fmt "\n", \ 44 current->pid, __func__, ##__VA_ARGS__) 47 printk(KERN_WARNING "pid %d: %s: " fmt "\n", \ 48 current->pid, __func__, ##__VA_ARGS__) 51 printk(KERN_ERR "pid %d: %s: " fmt "\n", \ 52 current->pid, __func__, ##__VA_ARGS__) 98 pid_t pid; member in struct:autofs_wait_queue 111 struct pid *oz_pgrp;
|
/linux-4.4.14/include/uapi/asm-generic/ |
H A D | msgbuf.h | 41 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 42 __kernel_pid_t msg_lrpid; /* last receive pid */
|
H A D | shmbuf.h | 40 __kernel_pid_t shm_cpid; /* pid of creator */ 41 __kernel_pid_t shm_lpid; /* pid of last operator */
|
/linux-4.4.14/include/uapi/linux/dvb/ |
H A D | net.h | 30 __u16 pid; member in struct:dvb_net_if 45 __u16 pid; member in struct:__dvb_net_if_old
|
/linux-4.4.14/arch/mips/netlogic/xlp/ |
H A D | cop2-ex.c | 106 pr_info("COP2 access enabled for pid %d (%s)\n", nlm_cu2_call() 107 current->pid, current->comm); nlm_cu2_call()
|
/linux-4.4.14/arch/avr32/include/asm/ |
H A D | switch_to.h | 20 ocd_write(PID, prev->pid); \ 21 ocd_write(PID, next->pid); \
|
/linux-4.4.14/drivers/macintosh/ |
H A D | windfarm_pm112.c | 131 struct wf_cpu_pid_param pid; create_cpu_loop() local 164 pid.interval = 1; /* seconds */ create_cpu_loop() 165 pid.history_len = piddata->history_len; create_cpu_loop() 166 pid.gd = piddata->gd; create_cpu_loop() 167 pid.gp = piddata->gp; create_cpu_loop() 168 pid.gr = piddata->gr / piddata->history_len; create_cpu_loop() 169 pid.pmaxadj = (piddata->max_power << 16) - (piddata->power_adj << 8); create_cpu_loop() 170 pid.ttarget = tmax - (piddata->target_temp_delta << 16); create_cpu_loop() 171 pid.tmax = tmax; create_cpu_loop() 172 pid.min = main_fan->ops->get_min(main_fan); create_cpu_loop() 173 pid.max = main_fan->ops->get_max(main_fan); create_cpu_loop() 174 if (pid.min < fmin) create_cpu_loop() 175 pid.min = fmin; create_cpu_loop() 177 wf_cpu_pid_init(&cpu_pid[cpu], &pid); create_cpu_loop()
|