Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 200 of 247) sorted by relevance

12

/linux-4.1.27/include/trace/events/
Dsched.h22 __field( pid_t, pid )
64 __field( pid_t, pid )
126 __field( pid_t, prev_pid )
130 __field( pid_t, next_pid )
166 __field( pid_t, pid )
193 __field( pid_t, pid )
240 __field( pid_t, pid )
265 __field( pid_t, parent_pid )
267 __field( pid_t, child_pid )
287 TP_PROTO(struct task_struct *p, pid_t old_pid,
[all …]
Dtask.h15 __field( pid_t, pid)
40 __field( pid_t, pid)
Doom.h15 __field( pid_t, pid)
Dmigrate.h81 __field( pid_t, pid)
Dsignal.h62 __field( pid_t, pid )
Dtimer.h312 __field( pid_t, pid )
/linux-4.1.27/tools/perf/util/
Dthread_map.c23 struct thread_map *thread_map__new_by_pid(pid_t pid) in thread_map__new_by_pid()
36 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items); in thread_map__new_by_pid()
50 struct thread_map *thread_map__new_by_tid(pid_t tid) in thread_map__new_by_tid()
52 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); in thread_map__new_by_tid()
69 max_threads * sizeof(pid_t)); in thread_map__new_by_uid()
83 pid_t pid = strtol(dirent.d_name, &end, 10); in thread_map__new_by_uid()
110 max_threads * sizeof(pid_t))); in thread_map__new_by_uid()
146 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) in thread_map__new()
164 pid_t pid, prev_pid = INT_MAX; in thread_map__new_by_pid_str()
189 sizeof(pid_t) * total_tasks)); in thread_map__new_by_pid_str()
[all …]
Dmachine.h28 pid_t pid;
42 pid_t *current_tid;
71 struct thread *machine__find_thread(struct machine *machine, pid_t pid,
72 pid_t tid);
105 struct machine *machines__add(struct machines *machines, pid_t pid,
108 struct machine *machines__find(struct machines *machines, pid_t pid);
109 struct machine *machines__findnew(struct machines *machines, pid_t pid);
119 int machine__init(struct machine *machine, const char *root_dir, pid_t pid);
150 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid,
151 pid_t tid);
[all …]
Dthread_map.h9 pid_t map[];
13 struct thread_map *thread_map__new_by_pid(pid_t pid);
14 struct thread_map *thread_map__new_by_tid(pid_t tid);
16 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid);
Dthread.h20 pid_t pid_; /* Not all tools update this */
21 pid_t tid;
22 pid_t ppid;
39 struct thread *thread__new(pid_t pid, pid_t tid);
Devent.c56 static int perf_event__get_comm_ids(pid_t pid, char *comm, size_t len, in perf_event__get_comm_ids()
57 pid_t *tgid, pid_t *ppid) in perf_event__get_comm_ids()
125 static int perf_event__prepare_comm(union perf_event *event, pid_t pid, in perf_event__prepare_comm()
127 pid_t *tgid, pid_t *ppid) in perf_event__prepare_comm()
162 static pid_t perf_event__synthesize_comm(struct perf_tool *tool, in perf_event__synthesize_comm()
163 union perf_event *event, pid_t pid, in perf_event__synthesize_comm()
167 pid_t tgid, ppid; in perf_event__synthesize_comm()
180 pid_t pid, pid_t tgid, pid_t ppid, in perf_event__synthesize_fork()
212 pid_t pid, pid_t tgid, in perf_event__synthesize_mmap_events()
381 pid_t pid, int full, in __event__synthesize_thread()
[all …]
Dsession.h74 struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid) in perf_session__find_machine()
80 struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid) in perf_session__findnew_machine()
85 struct thread *perf_session__findnew(struct perf_session *session, pid_t pid);
Dmachine.c23 int machine__init(struct machine *machine, const char *root_dir, pid_t pid) in machine__init()
133 struct machine *machines__add(struct machines *machines, pid_t pid, in machines__add()
193 struct machine *machines__find(struct machines *machines, pid_t pid) in machines__find()
219 struct machine *machines__findnew(struct machines *machines, pid_t pid) in machines__findnew()
294 struct thread *th, pid_t pid) in machine__update_thread_pid()
340 pid_t pid, pid_t tid, in __machine__findnew_thread()
409 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, in machine__findnew_thread()
410 pid_t tid) in machine__findnew_thread()
415 struct thread *machine__find_thread(struct machine *machine, pid_t pid, in machine__find_thread()
416 pid_t tid) in machine__find_thread()
[all …]
Dthread.c16 pid_t pid = thread->pid_; in thread__init_map_groups()
29 struct thread *thread__new(pid_t pid, pid_t tid) in thread__new()
Devlist.h46 pid_t pid;
81 int perf_evlist__set_filter_pid(struct perf_evlist *evlist, pid_t pid);
82 int perf_evlist__set_filter_pids(struct perf_evlist *evlist, size_t npids, pid_t *pids);
Drun-command.h17 pid_t pid;
Drecord.c17 static pid_t pid = -1; in perf_do_probe_api()
204 pid_t pid = -1; in perf_evlist__can_select_event()
Devent.h205 pid_t pid;
381 pid_t pid, pid_t tgid,
Drun-command.c156 static int wait_or_whine(pid_t pid) in wait_or_whine()
162 pid_t waiting = waitpid(pid, &status, 0); in wait_or_whine()
Dcloexec.c31 pid_t pid = -1; in perf_flag_probe()
Dbuild-id.c140 pid_t pid, u16 misc, int fd) in write_buildid()
164 pid_t pid, u16 misc, int fd) in __dsos__write_buildid_table()
Dunwind-libdw.c76 static pid_t next_thread(Dwfl *dwfl, void *arg, void **thread_argp) in next_thread()
Devsel.h41 pid_t tid;
Devlist.c1090 int perf_evlist__set_filter_pids(struct perf_evlist *evlist, size_t npids, pid_t *pids) in perf_evlist__set_filter_pids()
1117 int perf_evlist__set_filter_pid(struct perf_evlist *evlist, pid_t pid) in perf_evlist__set_filter_pid()
Dpython.c1071 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, in test_attr__open()
/linux-4.1.27/include/uapi/linux/
Delfcore.h51 pid_t pr_pid;
52 pid_t pr_ppid;
53 pid_t pr_pgrp;
54 pid_t pr_sid;
87 pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
Dcoda.h298 pid_t pid;
299 pid_t pgid;
/linux-4.1.27/tools/testing/selftests/ptrace/
Dpeeksiginfo.c14 static int sys_rt_sigqueueinfo(pid_t tgid, int sig, siginfo_t *uinfo) in sys_rt_sigqueueinfo()
19 static int sys_rt_tgsigqueueinfo(pid_t tgid, pid_t tid, in sys_rt_tgsigqueueinfo()
25 static int sys_ptrace(int request, pid_t pid, void *addr, void *data) in sys_ptrace()
43 static int check_error_paths(pid_t child) in check_error_paths()
104 int check_direct_path(pid_t child, int shared, int nr) in check_direct_path()
156 pid_t child; in main()
167 pid_t ppid = getppid(); in main()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dllite_rmtacl.c77 static struct rmtacl_ctl_entry *rce_alloc(pid_t key, int ops) in rce_alloc()
101 pid_t key) in __rct_search()
113 struct rmtacl_ctl_entry *rct_search(struct rmtacl_ctl_table *rct, pid_t key) in rct_search()
123 int rct_add(struct rmtacl_ctl_table *rct, pid_t key, int ops) in rct_add()
144 int rct_del(struct rmtacl_ctl_table *rct, pid_t key) in rct_del()
182 static struct eacl_entry *ee_alloc(pid_t key, struct lu_fid *fid, int type, in ee_alloc()
211 static struct eacl_entry *__et_search_del(struct eacl_table *et, pid_t key, in __et_search_del()
230 struct eacl_entry *et_search_del(struct eacl_table *et, pid_t key, in et_search_del()
241 void et_search_free(struct eacl_table *et, pid_t key) in et_search_free()
254 int ee_add(struct eacl_table *et, pid_t key, struct lu_fid *fid, int type, in ee_add()
Dllite_internal.h191 pid_t d_opendir_pid;
369 pid_t pid;
381 pid_t rw_pid;
448 pid_t rce_key; /* hash key */
679 void ll_rw_stats_tally(struct ll_sb_info *sbi, pid_t pid,
692 static inline void ll_rw_stats_tally(struct ll_sb_info *sbi, pid_t pid, in ll_rw_stats_tally()
1122 pid_t ee_key; /* hash key */
1129 struct rmtacl_ctl_entry *rct_search(struct rmtacl_ctl_table *rct, pid_t key);
1130 int rct_add(struct rmtacl_ctl_table *rct, pid_t key, int ops);
1131 int rct_del(struct rmtacl_ctl_table *rct, pid_t key);
[all …]
/linux-4.1.27/arch/mips/kernel/
Dbinfmt_elfn32.c66 pid_t pr_pid;
67 pid_t pr_ppid;
68 pid_t pr_pgrp;
69 pid_t pr_sid;
88 pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
Dbinfmt_elfo32.c87 pid_t pr_pid;
88 pid_t pr_ppid;
89 pid_t pr_pgrp;
90 pid_t pr_sid;
109 pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
Dmips-mt-fpaff.c38 static inline struct task_struct *find_process_by_pid(pid_t pid) in find_process_by_pid()
62 asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_setaffinity()
153 asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_getaffinity()
/linux-4.1.27/fs/f2fs/
Dtrace.c37 static int __file_type(struct inode *inode, pid_t pid) in __file_type()
58 pid_t pid = task_pid_nr(current); in f2fs_trace_pid()
86 pid_t pid; in f2fs_trace_ios()
126 static unsigned int gang_lookup_pids(pid_t *results, unsigned long first_index, in gang_lookup_pids()
146 pid_t pid[PIDVEC_SIZE]; in f2fs_destroy_trace_ios()
147 pid_t next_pid = 0; in f2fs_destroy_trace_ios()
Dtrace.h29 pid_t pid;
/linux-4.1.27/include/linux/
Dagpgart.h66 pid_t pid; /* pid of process */
94 pid_t pid;
102 pid_t pid;
117 pid_t my_pid;
Dpid.h164 static inline pid_t pid_nr(struct pid *pid) in pid_nr()
166 pid_t nr = 0; in pid_nr()
172 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
173 pid_t pid_vnr(struct pid *pid);
Dsyscalls.h231 asmlinkage long sys_getpgid(pid_t pid);
233 asmlinkage long sys_getsid(pid_t pid);
244 asmlinkage long sys_setpgid(pid_t pid, pid_t pgid);
288 asmlinkage long sys_sched_setscheduler(pid_t pid, int policy,
290 asmlinkage long sys_sched_setparam(pid_t pid,
292 asmlinkage long sys_sched_setattr(pid_t pid,
295 asmlinkage long sys_sched_getscheduler(pid_t pid);
296 asmlinkage long sys_sched_getparam(pid_t pid,
298 asmlinkage long sys_sched_getattr(pid_t pid,
302 asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len,
[all …]
Dmsg.h26 pid_t q_lspid; /* pid of last msgsnd */
27 pid_t q_lrpid; /* last receive pid */
Dsched.h1394 pid_t pid;
1395 pid_t tgid;
1741 extern pid_t task_numa_group_id(struct task_struct *p);
1751 static inline pid_t task_numa_group_id(struct task_struct *p) in task_numa_group_id()
1808 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type,
1811 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr()
1816 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, in task_pid_nr_ns()
1822 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr()
1828 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr()
1833 pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns);
[all …]
Dshm.h18 pid_t shm_cprid;
19 pid_t shm_lprid;
Dtypes.h21 typedef __kernel_pid_t pid_t; typedef
Dposix-timers.h39 #define CPUCLOCK_PID(clock) ((pid_t) ~((clock) >> 3))
Dtimer.h208 extern void timer_stats_update_stats(void *timer, pid_t pid, void *startf,
Dnfs_fs.h60 pid_t l_pid;
Djbd.h765 pid_t j_last_sync_writer;
Daudit.h32 pid_t pid;
Dsecurity.h1609 int (*task_setpgid) (struct task_struct *p, pid_t pgid);
1888 int security_task_setpgid(struct task_struct *p, pid_t pgid);
2456 static inline int security_task_setpgid(struct task_struct *p, pid_t pgid) in security_task_setpgid()
Djbd2.h955 pid_t j_last_sync_writer;
Dcompat.h473 asmlinkage long compat_sys_move_pages(pid_t pid, compat_ulong_t nr_pages,
/linux-4.1.27/drivers/gpu/drm/
Ddrm_trace.h27 TP_PROTO(pid_t pid, int crtc, unsigned int seq),
30 __field(pid_t, pid)
44 TP_PROTO(pid_t pid, int crtc, unsigned int seq),
47 __field(pid_t, pid)
Ddrm_vm.c50 pid_t pid;
/linux-4.1.27/arch/parisc/kernel/
Dbinfmt_elf32.c50 pid_t pr_pid;
51 pid_t pr_ppid;
52 pid_t pr_pgrp;
53 pid_t pr_sid;
72 pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/
Dlib.h24 extern int kill_child_and_wait(pid_t child_pid);
25 extern int wait_for_child(pid_t child_pid);
30 extern pid_t eat_cpu(int (test_function)(void));
Dlib.c99 int wait_for_child(pid_t child_pid) in wait_for_child()
116 int kill_child_and_wait(pid_t child_pid) in kill_child_and_wait()
142 pid_t eat_cpu(int (test_function)(void)) in eat_cpu()
146 pid_t pid; in eat_cpu()
Devent.c16 int perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, in perf_event_open()
52 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) in event_open_with_options()
68 int event_open_with_pid(struct event *e, pid_t pid) in event_open_with_pid()
Devent.h30 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd);
32 int event_open_with_pid(struct event *e, pid_t pid);
/linux-4.1.27/drivers/char/agp/
Dcompat_ioctl.h97 struct agp_file_private *agp_find_private(pid_t pid);
98 struct agp_client *agp_create_client(pid_t id);
99 int agp_remove_client(pid_t id);
104 struct agp_client *agp_find_client_by_pid(pid_t id);
Dfrontend.c215 struct agp_file_private *agp_find_private(pid_t pid) in agp_find_private()
293 static struct agp_controller *agp_find_controller_by_pid(pid_t id) in agp_find_controller_by_pid()
308 static struct agp_controller *agp_create_controller(pid_t id) in agp_create_controller()
455 *agp_find_client_in_controller(struct agp_controller *controller, pid_t id) in agp_find_client_in_controller()
473 static struct agp_controller *agp_find_controller_for_client(pid_t id) in agp_find_controller_for_client()
488 struct agp_client *agp_find_client_by_pid(pid_t id) in agp_find_client_by_pid()
513 struct agp_client *agp_create_client(pid_t id) in agp_create_client()
526 int agp_remove_client(pid_t id) in agp_remove_client()
/linux-4.1.27/fs/proc/
Dthread_self.c14 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_readlink()
15 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_readlink()
26 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_follow_link()
27 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_follow_link()
Dself.c14 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_readlink()
25 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_follow_link()
Dtask_nommu.c126 static pid_t pid_of_stack(struct proc_maps_private *priv, in pid_of_stack()
131 pid_t ret = 0; in pid_of_stack()
185 pid_t tid = pid_of_stack(priv, vma, is_pid); in nommu_vma_show()
Darray.c142 pid_t ppid, tpid = 0, tgid, ngid; in task_state()
372 pid_t ppid = 0, pgid = -1, sid = -1; in do_task_stat()
644 pid_t pid; in children_seq_show()
Dtask_mmu.c249 static pid_t pid_of_stack(struct proc_maps_private *priv, in pid_of_stack()
254 pid_t ret = 0; in pid_of_stack()
325 pid_t tid; in show_map_vma()
1516 pid_t tid = pid_of_stack(proc_priv, vma, is_pid); in show_numa_map()
/linux-4.1.27/arch/s390/kernel/
Dcompat_wrapper.c84 COMPAT_SYSCALL_WRAP2(setpgid, pid_t, pid, pid_t, pgid);
108 COMPAT_SYSCALL_WRAP1(getpgid, pid_t, pid);
116 COMPAT_SYSCALL_WRAP1(getsid, pid_t, pid);
121 COMPAT_SYSCALL_WRAP2(sched_setparam, pid_t, pid, struct sched_param __user *, param);
122 COMPAT_SYSCALL_WRAP2(sched_getparam, pid_t, pid, struct sched_param __user *, param);
123 COMPAT_SYSCALL_WRAP3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, para…
124 COMPAT_SYSCALL_WRAP1(sched_getscheduler, pid_t, pid);
204 COMPAT_SYSCALL_WRAP5(perf_event_open, struct perf_event_attr __user *, attr_uptr, pid_t, pid, int, …
207 COMPAT_SYSCALL_WRAP4(prlimit64, pid_t, pid, unsigned int, resource, const struct rlimit64 __user *,…
212 COMPAT_SYSCALL_WRAP5(kcmp, pid_t, pid1, pid_t, pid2, int, type, unsigned long, idx1, unsigned long,…
[all …]
/linux-4.1.27/arch/ia64/include/uapi/asm/
Dsiginfo.h30 pid_t _pid; /* sender's pid */
45 pid_t _pid; /* sender's pid */
52 pid_t _pid; /* which child */
Dperfmon.h122 pid_t load_pid; /* process to load the context into */
/linux-4.1.27/arch/xtensa/include/uapi/asm/
Dsockios.h25 #define SIOCSPGRP _IOW('s', 8, pid_t)
26 #define SIOCGPGRP _IOR('s', 9, pid_t)
Dioctls.h93 #define TIOCGSID _IOR('T', 41, pid_t) /* Return the session ID of FD*/
/linux-4.1.27/arch/alpha/include/uapi/asm/
Dsockios.h10 #define SIOCSPGRP _IOW('s', 8, pid_t)
11 #define SIOCGPGRP _IOR('s', 9, pid_t)
/linux-4.1.27/arch/mips/include/uapi/asm/
Dsockios.h20 #define SIOCSPGRP _IOW('s', 8, pid_t)
21 #define SIOCGPGRP _IOR('s', 9, pid_t)
/linux-4.1.27/arch/sh/include/uapi/asm/
Dsockios.h9 #define SIOCSPGRP _IOW('s', 8, pid_t)
10 #define SIOCGPGRP _IOR('s', 9, pid_t)
Dioctls.h81 #define TIOCGSID _IOR('T', 41, pid_t) /* 0x5429 */ /* Return the session ID of FD */
/linux-4.1.27/kernel/
Dpid.c452 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns()
460 struct task_struct *find_task_by_vpid(pid_t vnr) in find_task_by_vpid()
489 struct pid *find_get_pid(pid_t nr) in find_get_pid()
501 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) in pid_nr_ns()
504 pid_t nr = 0; in pid_nr_ns()
515 pid_t pid_vnr(struct pid *pid) in pid_vnr()
521 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, in __task_pid_nr_ns()
524 pid_t nr = 0; in __task_pid_nr_ns()
540 pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_tgid_nr_ns()
Daudit.h136 pid_t pid, ppid;
142 pid_t target_pid;
190 pid_t pid;
308 extern pid_t audit_sig_pid;
Dcapability.c117 static inline int cap_get_target_pid(pid_t pid, kernel_cap_t *pEp, in cap_get_target_pid()
152 pid_t pid; in SYSCALL_DEFINE2()
230 pid_t pid; in SYSCALL_DEFINE2()
Dkcmp.c97 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument
Dtaskstats.c63 pid_t pid;
193 static int fill_stats_for_pid(pid_t pid, struct taskstats *stats) in fill_stats_for_pid()
209 static int fill_stats_for_tgid(pid_t tgid, struct taskstats *stats) in fill_stats_for_tgid()
279 static int add_del_listener(pid_t pid, const struct cpumask *mask, int isadd) in add_del_listener()
Dsignal.c1361 int kill_proc_info(int sig, struct siginfo *info, pid_t pid) in kill_proc_info()
1425 static int kill_something_info(int sig, struct siginfo *info, pid_t pid) in kill_something_info()
2901 SYSCALL_DEFINE2(kill, pid_t, pid, int, sig) in SYSCALL_DEFINE2() argument
2915 do_send_specific(pid_t tgid, pid_t pid, int sig, struct siginfo *info) in do_send_specific()
2944 static int do_tkill(pid_t tgid, pid_t pid, int sig) in do_tkill()
2967 SYSCALL_DEFINE3(tgkill, pid_t, tgid, pid_t, pid, int, sig) in SYSCALL_DEFINE3() argument
2983 SYSCALL_DEFINE2(tkill, pid_t, pid, int, sig) in SYSCALL_DEFINE2() argument
2992 static int do_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t *info) in do_rt_sigqueueinfo()
3013 SYSCALL_DEFINE3(rt_sigqueueinfo, pid_t, pid, int, sig, in SYSCALL_DEFINE3() argument
3036 static int do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t *info) in do_rt_tgsigqueueinfo()
[all …]
Dexit.c945 pid_t pid, uid_t uid, int why, int status) in wait_noreap_copyout()
981 pid_t pid = task_pid_vnr(p); in wait_task_zombie()
1164 pid_t pid; in wait_task_stopped()
1246 pid_t pid; in wait_task_continued()
1527 SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, in SYSCALL_DEFINE5() argument
1595 SYSCALL_DEFINE4(wait4, pid_t, upid, int __user *, stat_addr, in SYSCALL_DEFINE4() argument
1638 SYSCALL_DEFINE3(waitpid, pid_t, pid, int __user *, stat_addr, int, options) in SYSCALL_DEFINE3() argument
Dcgroup.c2389 pid_t pid; in __cgroup_procs_write()
3781 pid_t *list;
3797 #define PIDLIST_TOO_LARGE(c) ((c) * sizeof(pid_t) > (PAGE_SIZE * 2))
3801 return vmalloc(count * sizeof(pid_t)); in pidlist_allocate()
3803 return kmalloc(count * sizeof(pid_t), GFP_KERNEL); in pidlist_allocate()
3856 static int pidlist_uniq(pid_t *list, int length) in pidlist_uniq()
3900 static pid_t pid_fry(pid_t pid) in pid_fry()
3908 static pid_t cgroup_pid_fry(struct cgroup *cgrp, pid_t pid) in cgroup_pid_fry()
3918 return *(pid_t *)a - *(pid_t *)b; in cmppid()
3923 return pid_fry(*(pid_t *)a) - pid_fry(*(pid_t *)b); in fried_cmppid()
[all …]
Dkmod.c273 pid_t pid; in wait_for_helper()
311 pid_t pid; in __call_usermodehelper()
Dseccomp.c255 static inline pid_t seccomp_can_sync_threads(void) in seccomp_can_sync_threads()
265 pid_t failed; in seccomp_can_sync_threads()
Dsys.c919 SYSCALL_DEFINE2(setpgid, pid_t, pid, pid_t, pgid) in SYSCALL_DEFINE2() argument
990 SYSCALL_DEFINE1(getpgid, pid_t, pid) in SYSCALL_DEFINE1() argument
1027 SYSCALL_DEFINE1(getsid, pid_t, pid) in SYSCALL_DEFINE1() argument
1070 pid_t session = pid_vnr(sid); in SYSCALL_DEFINE0()
1448 SYSCALL_DEFINE4(prlimit64, pid_t, pid, unsigned int, resource, in SYSCALL_DEFINE4() argument
Dfutex.c691 static struct task_struct * futex_find_get_task(pid_t pid) in futex_find_get_task()
818 pid_t pid = uval & FUTEX_TID_MASK; in attach_to_pi_state()
889 pid_t pid = uval & FUTEX_TID_MASK; in attach_to_pi_owner()
Dauditsc.c109 pid_t target_pid[AUDIT_AUX_PIDS];
455 pid_t pid; in audit_filter_rules()
958 static int audit_log_pid_context(struct audit_context *context, pid_t pid, in audit_log_pid_context()
Daudit.c117 pid_t audit_sig_pid = -1;
691 pid_t pid = task_tgid_nr(current); in audit_log_common_recv_msg()
Dptrace.c1036 static struct task_struct *ptrace_get_task_struct(pid_t pid) in ptrace_get_task_struct()
/linux-4.1.27/tools/testing/selftests/memfd/
Dfuse_test.c200 static pid_t spawn_sealing_thread(void) in spawn_sealing_thread()
203 pid_t pid; in spawn_sealing_thread()
223 static void join_sealing_thread(pid_t pid) in join_sealing_thread()
234 pid_t pid; in main()
Dmemfd_test.c506 static pid_t spawn_idle_thread(unsigned int flags) in spawn_idle_thread()
509 pid_t pid; in spawn_idle_thread()
529 static void join_idle_thread(pid_t pid) in join_idle_thread()
846 pid_t pid; in test_share_fork()
870 pid_t pid; in main()
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
Dtask_event_vs_ebb_test.c22 static int setup_child_event(struct event *event, pid_t child_pid) in setup_child_event()
40 pid_t pid; in task_event_vs_ebb()
Dtask_event_pinned_vs_ebb_test.c22 static int setup_child_event(struct event *event, pid_t child_pid) in setup_child_event()
42 pid_t pid; in task_event_pinned_vs_ebb()
Dfork_cleanup_test.c45 pid_t pid; in fork_cleanup()
Debb_on_child_test.c48 pid_t pid; in ebb_on_child()
Dcpu_event_vs_ebb_test.c42 pid_t pid; in cpu_event_vs_ebb()
Debb_on_willing_child_test.c55 pid_t pid; in ebb_on_willing_child()
Debb_vs_cpu_event_test.c42 pid_t pid; in ebb_vs_cpu_event()
Dcpu_event_pinned_vs_ebb_test.c44 pid_t pid; in cpu_event_pinned_vs_ebb()
Dmulti_ebb_procs_test.c79 pid_t pids[NR_CHILDREN]; in multi_ebb_procs()
/linux-4.1.27/tools/testing/selftests/powerpc/tm/
Dtm-syscall.c46 pid_t getppid_tm(bool suspend) in getppid_tm()
49 pid_t pid; in getppid_tm()
/linux-4.1.27/tools/perf/tests/
Dperf-record.c8 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) in sched__get_first_possible_cpu()
195 if ((pid_t)sample.pid != evlist->workload.pid) { in test__PERF_RECORD()
201 if ((pid_t)sample.tid != evlist->workload.pid) { in test__PERF_RECORD()
212 (pid_t)event->comm.pid != evlist->workload.pid) { in test__PERF_RECORD()
Dswitch-tracking.c54 pid_t *tids;
66 (pid_t)event->comm.pid == getpid() && in check_comm()
67 (pid_t)event->comm.tid == getpid() && in check_comm()
88 switch_tracking->tids = calloc(nr, sizeof(pid_t)); in check_cpu()
100 addr = realloc(switch_tracking->tids, nr * sizeof(pid_t)); in check_cpu()
119 pid_t next_tid, prev_tid; in process_sample_event()
Dkeep-tracking.c35 (pid_t)event->comm.pid == getpid() && in find_comm()
36 (pid_t)event->comm.tid == getpid() && in find_comm()
Dattr.c60 static int store_event(struct perf_event_attr *attr, pid_t pid, int cpu, in store_event()
130 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, in test_attr__open()
Dperf-time-to-tsc.c112 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc()
113 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
Ddwarf-unwind.c28 pid_t pid = getpid(); in init_live_machine()
Dmmap-basic.c28 pid_t (*syscalls[])(void) = { (void *)getsid, getppid, getpgrp, in test__basic_mmap()
Dmmap-thread-lookup.c21 pid_t tid;
Dcode-reading.c407 pid_t pid; in do_test_code_reading()
/linux-4.1.27/drivers/misc/sgi-gru/
Dgrulib.h122 pid_t pid;
136 pid_t pid;
Dgrutables.h364 pid_t ts_tgid_owner; /* task that is using the
/linux-4.1.27/tools/testing/selftests/mount/
Dunprivileged-remount-test.c184 pid_t child; in test_unpriv_remount()
192 pid_t pid; in test_unpriv_remount()
258 pid_t child; in test_priv_mount_unpriv_remount()
270 pid_t pid; in test_priv_mount_unpriv_remount()
/linux-4.1.27/mm/
Dprocess_vm_access.c141 static ssize_t process_vm_rw_core(pid_t pid, struct iov_iter *iter, in process_vm_rw_core()
247 static ssize_t process_vm_rw(pid_t pid, in process_vm_rw()
287 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec, in SYSCALL_DEFINE6() argument
294 SYSCALL_DEFINE6(process_vm_writev, pid_t, pid, in SYSCALL_DEFINE6() argument
/linux-4.1.27/drivers/staging/rtl8712/
Ddrv_types.h166 pid_t evtThread;
168 pid_t recvThread;
/linux-4.1.27/arch/frv/include/asm/
Dmmu.h38 extern int cxn_pin_by_pid(pid_t pid);
/linux-4.1.27/arch/s390/include/asm/
Dcompat.h205 pid_t _pid; /* sender's pid */
219 pid_t _pid; /* sender's pid */
226 pid_t _pid; /* which child */
/linux-4.1.27/security/tomoyo/
Dmemory.c19 static pid_t tomoyo_last_pid; in tomoyo_warn_oom()
20 const pid_t pid = current->pid; in tomoyo_warn_oom()
Drealpath.c157 const pid_t pid = (pid_t) simple_strtoul(pos + 1, &ep, 10); in tomoyo_get_local_path()
Dcommon.h1120 static inline pid_t tomoyo_sys_getppid(void) in tomoyo_sys_getppid()
1122 pid_t pid; in tomoyo_sys_getppid()
1137 static inline pid_t tomoyo_sys_getpid(void) in tomoyo_sys_getpid()
Daudit.c150 const pid_t gpid = task_pid_nr(current); in tomoyo_print_header()
/linux-4.1.27/tools/testing/selftests/timers/
Dskew_consistency.c57 pid_t pid; in main()
Dclocksource-switch.c137 pid_t pid; in main()
/linux-4.1.27/kernel/trace/
Dtrace_functions_graph.c48 pid_t last_pid;
497 static void print_graph_proc(struct trace_seq *s, pid_t pid) in print_graph_proc()
536 verif_pid(struct trace_seq *s, pid_t pid, int cpu, struct fgraph_data *data) in verif_pid()
538 pid_t prev_pid; in verif_pid()
539 pid_t *last_pid; in verif_pid()
654 enum trace_type type, int cpu, pid_t pid, u32 flags) in print_graph_irq()
1030 pid_t pid = ent->pid; in print_graph_return()
1328 pid_t *pid = &(per_cpu_ptr(data->cpu_data, cpu)->last_pid); in graph_trace_open()
Dblktrace.c68 static void trace_note(struct blk_trace *bt, pid_t pid, int action, in trace_note()
173 pid_t pid) in act_log_check()
210 pid_t pid; in __blk_add_trace()
Dtrace.h156 pid_t pid;
/linux-4.1.27/Documentation/mic/mpssd/
Dmpssd.h89 pid_t pid;
Dmpssd.c161 pid_t pid; in tap_configure()
1697 pid_t pid; in main()
/linux-4.1.27/include/linux/sunrpc/
Dsched.h77 pid_t tk_owner; /* Process id for batching tasks */
184 pid_t owner; /* process id of last task serviced */
/linux-4.1.27/drivers/net/slip/
Dslip.h85 pid_t pid;
/linux-4.1.27/tools/perf/
Dperf.h11 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu,
Dperf-sys.h175 pid_t pid, int cpu, int group_fd, in sys_perf_event_open()
Dbuiltin-trace.c1239 pid_t *entries;
1872 (pid_t)perf_evsel__intval(evsel, sample, "pid"), in trace__sched_stat_runtime()
2571 trace->filter_pids.entries = calloc(i, sizeof(pid_t)); in trace__set_filter_pids()
/linux-4.1.27/fs/autofs4/
Dautofs_i.h98 pid_t pid;
99 pid_t tgid;
Dwaitq.c350 pid_t pid; in autofs4_wait()
351 pid_t tgid; in autofs4_wait()
/linux-4.1.27/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c30 static pid_t child_pid;
378 pid_t pid; in main()
/linux-4.1.27/arch/powerpc/kvm/
Dtrace_hv.h396 __field(pid_t, tgid)
420 __field(pid_t, tgid)
442 __field(pid_t, tgid)
/linux-4.1.27/kernel/time/
Dtimer_stats.c65 pid_t pid;
234 void timer_stats_update_stats(void *timer, pid_t pid, void *startf, in timer_stats_update_stats()
Dposix-cpu-timers.c35 const pid_t pid = CPUCLOCK_PID(which_clock); in check_clock()
288 const pid_t pid = CPUCLOCK_PID(which_clock); in posix_cpu_clock_get()
322 const pid_t pid = CPUCLOCK_PID(new_timer->it_clock); in posix_cpu_timer_create()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_qp_grp.h44 pid_t owner_pid;
/linux-4.1.27/tools/testing/selftests/powerpc/
Dharness.c30 pid_t pid; in run_test()
/linux-4.1.27/arch/frv/kernel/
Dsysctl.c128 pid_t pid; in procctl_frv_pin_cxnr()
/linux-4.1.27/tools/perf/bench/
Dsched-pipe.c93 pid_t pid, retpid __maybe_unused; in bench_sched_pipe()
/linux-4.1.27/fs/lockd/
Dxdr4.c121 fl->fl_pid = (pid_t)lock->svid; in nlm4_decode_lock()
260 lock->fl.fl_pid = (pid_t)lock->svid; in nlm4svc_decode_shareargs()
Dxdr.c129 fl->fl_pid = (pid_t)lock->svid; in nlm_decode_lock()
263 lock->fl.fl_pid = (pid_t)lock->svid; in nlmsvc_decode_shareargs()
Dclntxdr.c290 fl->fl_pid = (pid_t)lock->svid; in decode_nlm_holder()
Dclnt4xdr.c296 fl->fl_pid = (pid_t)lock->svid; in decode_nlm4_holder()
/linux-4.1.27/arch/frv/mm/
Dmmu-context.c168 int cxn_pin_by_pid(pid_t pid) in cxn_pin_by_pid()
/linux-4.1.27/include/uapi/linux/android/
Dbinder.h145 pid_t sender_pid;
/linux-4.1.27/Documentation/accounting/
Dgetdelays.c265 pid_t tid = 0; in main()
266 pid_t rtid = 0; in main()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dtracefile.h223 pid_t tctl_pid;
/linux-4.1.27/scripts/
Ddocproc.c111 pid_t pid; in exec_kernel_doc()
358 pid_t pid; in find_all_symbols()
/linux-4.1.27/arch/arm/mm/
Dcontext.c109 pid_t pid; in contextidr_notifier()
/linux-4.1.27/fs/cifs/
Dcifs_spnego.c118 PID_KEY_LEN + (sizeof(pid_t) * 2) + 1; in cifs_get_spnego_key()
Dcifsglob.h1065 pid_t pid;
1090 pid_t pid;
/linux-4.1.27/arch/arm/kernel/
Dswp_emulate.c81 static pid_t previous_pid;
Dsys_oabi-compat.c193 pid_t l_pid;
/linux-4.1.27/drivers/staging/android/ion/
Dion_priv.h86 pid_t pid;
Dion.c93 pid_t pid;
746 pid_t pid; in ion_client_create()
/linux-4.1.27/drivers/gpu/host1x/
Ddebug.c30 static pid_t host1x_debug_force_timeout_pid;
/linux-4.1.27/arch/powerpc/include/asm/
Dspu.h145 pid_t pid;
146 pid_t tgid;
/linux-4.1.27/arch/tile/include/asm/
Dprocessor.h101 pid_t creator_pid;
/linux-4.1.27/security/keys/
Dinternal.h193 pid_t pid;
/linux-4.1.27/include/net/
Dnet_namespace.h162 struct net *get_net_ns_by_pid(pid_t pid);
/linux-4.1.27/tools/thermal/tmon/
Dtmon.c357 pid_t sid, pid = fork(); in start_daemon_mode()
/linux-4.1.27/fs/
Dfcntl.c131 pid_t f_getown(struct file *filp) in f_getown()
133 pid_t pid; in f_getown()
/linux-4.1.27/samples/bpf/
Dtest_maps.c188 pid_t pid[tasks]; in run_parallel()
/linux-4.1.27/kernel/sched/
Dcore.c3232 static struct task_struct *find_process_by_pid(pid_t pid) in find_process_by_pid()
3705 do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param) in do_sched_setscheduler()
3805 SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, in SYSCALL_DEFINE3() argument
3822 SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param) in SYSCALL_DEFINE2() argument
3833 SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE3() argument
3867 SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid) in SYSCALL_DEFINE1() argument
3896 SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param) in SYSCALL_DEFINE2() argument
3974 SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE4() argument
4017 long sched_setaffinity(pid_t pid, const struct cpumask *in_mask) in sched_setaffinity()
4125 SYSCALL_DEFINE3(sched_setaffinity, pid_t, pid, unsigned int, len, in SYSCALL_DEFINE3() argument
[all …]
/linux-4.1.27/drivers/tty/
Dtty_audit.c68 pid_t pid = task_pid_nr(tsk); in tty_audit_log()
Dtty_io.c2559 static int tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocgpgrp()
2587 static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocspgrp()
2590 pid_t pgrp_nr; in tiocspgrp()
2636 static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocgsid()
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
Dspufs.h120 pid_t tid;
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.c277 pid_t child_pid; in fork_it()
/linux-4.1.27/tools/testing/selftests/exec/
Dexecveat.c69 pid_t child; in check_execveat_invoked_rc()
/linux-4.1.27/tools/lguest/
Dlguest.c224 pid_t thread;
1173 if (vq->thread != (pid_t)-1) { in reset_device()
1176 vq->thread = (pid_t)-1; in reset_device()
1860 if (vq->thread == (pid_t)-1) in start_virtqueue()
2393 vq->thread = (pid_t)-1; in add_pci_virtqueue()
/linux-4.1.27/security/
Dlsm_audit.c282 pid_t pid = task_pid_nr(tsk); in dump_common_audit_data()
Dcapability.c442 static int cap_task_setpgid(struct task_struct *p, pid_t pgid) in cap_task_setpgid()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib.h205 pid_t pid;
206 pid_t subpid[QLOGIC_IB_MAX_SUBCTXT];
Dqib_user_sdma.c63 pid_t pid;
141 qib_user_sdma_rb_search(struct rb_root *root, pid_t pid) in qib_user_sdma_rb_search()
Dqib_diag.c70 pid_t pid;
/linux-4.1.27/tools/usb/usbip/src/
Dusbipd.c330 pid_t childpid; in process_request()
/linux-4.1.27/include/scsi/
Dscsi_transport_iscsi.h253 pid_t creator;
/linux-4.1.27/sound/pci/korg1212/
Dkorg1212.c374 pid_t capture_pid;
375 pid_t playback_pid;
1495 pid_t this_pid; in snd_korg1212_hw_params()
1496 pid_t other_pid; in snd_korg1212_hw_params()
/linux-4.1.27/sound/pci/rme9652/
Drme9652.c232 pid_t capture_pid;
233 pid_t playback_pid;
1970 pid_t this_pid; in snd_rme9652_hw_params()
1971 pid_t other_pid; in snd_rme9652_hw_params()
/linux-4.1.27/drivers/misc/cxl/
Dtrace.h92 __field(pid_t, pid)
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dobd.h91 pid_t lsm_lock_owner; /* debugging */
786 pid_t trd_processing_task;
/linux-4.1.27/Documentation/ia64/
Derr_inject.txt116 int sched_setaffinity(pid_t pid, unsigned int len, unsigned long *mask);
752 pid_t child_pid[MAX_TASK_NUM];
837 pid_t pid;
/linux-4.1.27/arch/s390/mm/
Dfault.c636 pid_t pid; in pfault_interrupt()
/linux-4.1.27/fs/btrfs/
Dextent_io.h133 pid_t lock_owner;
/linux-4.1.27/kernel/debug/
Ddebug_core.c137 static pid_t kgdb_sstep_pid;
/linux-4.1.27/tools/perf/Documentation/
Dperf-script-perl.txt68 field:pid_t pid;
/linux-4.1.27/include/drm/
DdrmP.h277 pid_t pid; /* pid of requester, no guarantee it's valid by the time
/linux-4.1.27/arch/blackfin/mm/
Dsram-alloc.c30 pid_t pid;
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_flock.c697 getlk->fl_pid = (pid_t)lock->l_policy_data.l_flock.pid; in ldlm_flock_completion_ast()
/linux-4.1.27/net/core/
Dnet_namespace.c449 struct net *get_net_ns_by_pid(pid_t pid) in get_net_ns_by_pid()
/linux-4.1.27/arch/x86/kvm/
Di8254.c684 pid_t pid_nr; in kvm_create_pit()
/linux-4.1.27/drivers/xen/xenbus/
Dxenbus_xs.c125 static pid_t xenwatch_pid;
/linux-4.1.27/Documentation/scheduler/
Dsched-deadline.txt461 int sched_setattr(pid_t pid,
468 int sched_getattr(pid_t pid,
/linux-4.1.27/net/sunrpc/
Dsched.c122 static void rpc_set_waitqueue_owner(struct rpc_wait_queue *queue, pid_t pid) in rpc_set_waitqueue_owner()
/linux-4.1.27/tools/vm/
Dpage-types.c168 static pid_t opt_pid; /* process to walk */
/linux-4.1.27/drivers/block/
Dnbd.c59 pid_t pid; /* pid of nbd-client, if attached */
/linux-4.1.27/kernel/debug/kdb/
Dkdb_main.c2387 p = find_task_by_pid_ns((pid_t)val, &init_pid_ns); in kdb_pid()
2389 kdb_printf("No task with pid=%d\n", (pid_t)val); in kdb_pid()

12