Searched refs:pid (Results 276 - 300 of 1514) sorted by relevance

<<11121314151617181920>>

/linux-master/kernel/bpf/
H A Dtask_iter.c24 u32 pid; member in struct:bpf_iter_seq_task_common
41 struct pid *pid; local
46 pid = find_pid_ns(common->pid, common->ns);
47 task = get_pid_task(pid, PIDTYPE_TGID);
51 *tid = common->pid;
52 common->pid_visiting = common->pid;
62 pid = find_pid_ns(common->pid_visiting, common->ns);
63 task = get_pid_task(pid, PIDTYPE_PI
94 struct pid *pid; local
211 struct pid *pid; local
[all...]
/linux-master/arch/powerpc/platforms/book3s/
H A Dvas-api.c64 * Take reference to pid and mm
70 * it exits. So take reference to its pid and release it
72 * Acquire a reference to the task's pid to make sure
73 * pid will not be re-used - needed only for multithread
76 task_ref->pid = get_task_pid(current, PIDTYPE_PID);
82 put_pid(task_ref->pid);
83 pr_err("pid(%d): mm_struct is not found\n",
84 current->pid);
107 struct task_struct **tskp, struct pid **pidp)
110 struct pid *pi local
155 struct pid *pid; local
[all...]
/linux-master/arch/nios2/mm/
H A Dtlb.c25 static void get_misc_and_pid(unsigned long *misc, unsigned long *pid) argument
29 *pid = *misc & TLBMISC_PID;
50 /* remember pid/way until we return. */
58 unsigned long pid; local
68 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK;
69 if (pid != mmu_pid)
80 * particular {address,pid} so break after a match.
131 /* remember pid/way until we return. */
147 pr_debug("Flush entry by writing way=%dl pid=%ld\n",
175 /* remember pid/wa
231 unsigned long pid; local
292 set_mmu_pid(unsigned long pid) argument
[all...]
/linux-master/drivers/misc/ocxl/
H A Dtrace.h76 TP_PROTO(pid_t pid, void *spa, int pasid, u32 pidr, u32 tidr),
77 TP_ARGS(pid, spa, pasid, pidr, tidr),
80 __field(pid_t, pid)
88 __entry->pid = pid;
95 TP_printk("linux pid=%d spa=0x%p pasid=0x%x pidr=0x%x tidr=0x%x",
96 __entry->pid,
105 TP_PROTO(pid_t pid, void *spa, int pasid, u32 pidr, u32 tidr),
106 TP_ARGS(pid, spa, pasid, pidr, tidr)
110 TP_PROTO(pid_t pid, voi
[all...]
/linux-master/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c193 pid_t pid; local
195 pid = waitpid(child, &status, 0);
196 if (pid == -1) {
200 if (pid != child) {
202 child, pid);
271 pid_t pid; local
273 pid = waitpid(child, &status, 0);
274 if (pid == -1) {
278 if (pid != child) {
280 child, pid);
[all...]
/linux-master/tools/perf/bench/
H A Dsched-pipe.c103 pid_t pid; local
116 pid = syscall(__NR_gettid);
118 pid = getpid();
120 snprintf(buf, sizeof(buf), "%d\n", pid);
213 pid_t pid, retpid __maybe_unused; local
251 pid = fork();
252 assert(pid >= 0);
254 if (!pid) {
261 retpid = waitpid(pid, &wait_stat, 0);
262 assert((retpid == pid)
[all...]
/linux-master/fs/proc/
H A Dinternal.h93 struct pid_namespace *ns, struct pid *pid,
99 struct pid *pid; member in struct:proc_inode
123 static inline struct pid *proc_pid(const struct inode *inode)
125 return PROC_I(inode)->pid;
153 struct pid *, struct task_struct *);
155 struct pid *, struct task_struct *);
157 struct pid *, struct task_struct *);
159 struct pid *, struc
[all...]
H A Darray.c34 * and /proc/<pid>/cpu extension
149 struct pid *pid, struct task_struct *p)
186 seq_put_decimal_ull(m, "\nPid:\t", pid_nr_ns(pid, ns));
210 for (g = ns->level; g <= pid->level; g++)
211 seq_put_decimal_ull(m, "\t", task_tgid_nr_ns(p, pid->numbers[g].ns));
213 for (g = ns->level; g <= pid->level; g++)
214 seq_put_decimal_ull(m, "\t", task_pid_nr_ns(p, pid->numbers[g].ns));
216 for (g = ns->level; g <= pid->level; g++)
217 seq_put_decimal_ull(m, "\t", task_pgrp_nr_ns(p, pid
148 task_state(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *p) argument
439 proc_pid_status(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument
467 do_task_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task, int whole) argument
671 proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument
677 proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument
683 proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument
723 struct pid *pid = NULL; local
790 struct pid *pid; local
[all...]
H A Dthread_self.c17 pid_t pid = task_pid_nr_ns(current, ns); local
20 if (!pid)
25 sprintf(name, "%u/task/%u", tgid, pid);
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c175 pid_t pid)
256 static int parent(struct shared_info *info, pid_t pid) argument
268 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3);
281 if (ret != pid) {
297 ret = snprintf(filename[0], PATH_MAX, "core-pkey.%d", pid);
304 ret = snprintf(filename[1], PATH_MAX - ret - 1, "core.%d", pid);
312 core_size = try_core_file(filename[i], info, pid);
412 pid_t pid; local
425 pid = fork();
426 if (pid <
174 try_core_file(const char *filename, struct shared_info *info, pid_t pid) argument
[all...]
/linux-master/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c209 __u32 pid; member in struct:seccomp_notif
3274 pid_t pid; local
3288 pid = fork();
3289 ASSERT_GE(pid, 0);
3290 if (pid == 0) {
3315 ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid));
3316 ASSERT_EQ(pid, waitpid(pid, NULL, 0));
3322 ret = ptrace(PTRACE_SECCOMP_GET_METADATA, pid, sizeof(md), &md);
3332 ret = ptrace(PTRACE_SECCOMP_GET_METADATA, pid, sizeo
3362 pid_t pid; local
3393 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3461 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3491 pid_t pid; local
3542 pid_t pid; local
3610 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3617 pid_t pid; local
3643 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3653 pid_t pid; local
3682 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3694 pid_t pid, pid2; local
3760 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3771 pid_t pid; local
3805 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3821 pid_t pid; local
3895 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3907 pid_t pid; local
3942 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
3964 pid_t pid; local
4031 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
4058 pid_t pid; local
4211 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
4220 pid_t pid; local
4281 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
4298 pid_t pid; local
4338 ASSERT_EQ(waitpid(pid, &status, 0), pid); local
4345 pid_t pid; local
4442 get_proc_stat(struct __test_metadata *_metadata, pid_t pid) argument
4462 pid_t pid, pids[3]; local
4496 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
4541 get_proc_syscall(struct __test_metadata *_metadata, int pid) argument
4566 pid_t pid; local
4622 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
4638 pid_t pid; local
4703 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
4713 pid_t pid; local
4753 EXPECT_EQ(waitpid(pid, &status, 0), pid); local
[all...]
/linux-master/tools/perf/scripts/python/
H A Dsched-migration.py33 def thread_name(pid):
34 return "%s:%d" % (threads[pid], pid)
210 def wake_up(self, ts_list, pid, cpu, fork):
213 new_rq = old_rq.wake_up_new(pid)
215 new_rq = old_rq.wake_up(pid)
351 def migrate(self, headers, pid, prio, orig_cpu, dest_cpu):
353 ts.migrate(self.timeslices, pid, orig_cpu, dest_cpu)
355 def wake_up(self, headers, comm, pid, success, target_cpu, fork):
359 ts.wake_up(self.timeslices, pid, target_cp
[all...]
/linux-master/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c319 pid_t pid; local
364 pid = fork();
365 if (!pid) {
377 waitpid(pid, &status, 0);
696 int pid; local
701 pid = fork();
702 if (!pid) {
720 while (waitpid(pid, &status, 0) != -1 && WSTOPSIG(status) != SIGTRAP);
722 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_SHSTK, &iov)) {
735 if (!ptrace(PTRACE_SETREGSET, pid, NT_X86_SHST
[all...]
/linux-master/tools/perf/tests/
H A Ddlfilter-test.c125 static int write_comm(int fd, pid_t pid, pid_t tid, const char *comm_str) argument
134 comm.pid = pid;
146 static int write_mmap(int fd, pid_t pid, pid_t tid, u64 start, u64 len, u64 pgoff, argument
158 mmap->pid = pid;
173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) argument
183 .pid = pid,
323 pid_t pid local
409 int pid = getpid(); local
[all...]
/linux-master/sound/firewire/oxfw/
H A Doxfw-command.c11 unsigned int pid, u8 *format, unsigned int len)
27 buf[7] = 0xff & pid; /* Plug ID */
53 enum avc_general_plug_dir dir, unsigned int pid,
71 buf[7] = 0xff & pid; /* Plug ID */
113 unsigned short pid)
136 buf[3] = 0xff & pid; /* plug id */
10 avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, unsigned int pid, u8 *format, unsigned int len) argument
52 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) argument
111 avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate, enum avc_general_plug_dir dir, unsigned short pid) argument
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c43 [PIDFD_NS_PID] = { "pid", CLONE_NEWPID, },
54 pid_t pid; local
70 static int sys_waitid(int which, pid_t pid, int options) argument
72 return syscall(__NR_waitid, which, pid, NULL, options, NULL);
141 self->pid = getpid();
148 info->name, self->pid);
153 self->pidfd = sys_pidfd_open(self->pid, 0);
155 TH_LOG("%m - Failed to open pidfd for process %d", self->pid);
168 self->pidfd = sys_pidfd_open(self->pid, 0);
170 TH_LOG("%m - Failed to open pidfd for process %d", self->pid);
302 preserve_ns(const int pid, const char *ns) argument
362 pid_t pid; local
380 pid_t pid; local
416 pid_t pid; local
453 pid_t pid; local
[all...]
/linux-master/tools/testing/selftests/powerpc/pmu/
H A Devent.c17 int perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, argument
20 return syscall(__NR_perf_event_open, attr, pid, cpu,
69 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) argument
71 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0);
85 int event_open_with_pid(struct event *e, pid_t pid) argument
87 return event_open_with_options(e, pid, PERF_NO_CPU, PERF_NO_GROUP);
/linux-master/include/linux/
H A Drtnetlink.h12 extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo);
15 u32 pid, u32 group, int echo)
17 return !skb ? 0 : rtnetlink_send(skb, net, pid, group, echo);
20 extern int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid);
21 extern void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid,
143 extern int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
14 rtnetlink_maybe_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo) argument
/linux-master/tools/perf/util/
H A Djitdump.h43 uint32_t pid; /* JIT process id */ member in struct:jitheader
68 uint32_t pid; member in struct:jr_code_load
83 uint32_t pid; member in struct:jr_code_move
/linux-master/tools/testing/selftests/powerpc/mm/
H A Dlarge_vm_gpr_corruption.c110 pid_t pid; local
142 pid = fork();
143 if (pid == 0)
/linux-master/tools/testing/selftests/bpf/progs/
H A Ddynptr_success.c14 int pid, err, val; variable
17 int pid; member in struct:sample
43 if (bpf_get_current_pid_tgid() >> 32 != pid)
76 if (bpf_get_current_pid_tgid() >> 32 != pid)
131 sample->pid += index;
142 if (bpf_get_current_pid_tgid() >> 32 != pid)
156 sample->pid = 10;
161 if (sample->pid != 55)
220 if (bpf_get_current_pid_tgid() >> 32 != pid)
272 if (bpf_get_current_pid_tgid() >> 32 != pid)
[all...]
H A Diters_css_task.c30 if (cur_task->pid != target_pid)
42 if (task->pid == target_pid)
78 if (task->pid == target_pid)
H A Dcgrp_ls_sleepable.c64 if (task->pid != target_pid)
83 if (task->pid != target_pid)
99 if (task->pid != target_pid)
/linux-master/drivers/gpu/drm/i915/gem/
H A Di915_gem_context_types.h25 struct pid;
287 * @pid: process id of creator
294 struct pid *pid; member in struct:i915_gem_context
408 * name, pid and user handle in order to uniquely identify the
/linux-master/arch/parisc/kernel/
H A Dsys_parisc32.c23 current->comm, current->pid, r20);

Completed in 383 milliseconds

<<11121314151617181920>>