Searched refs:pid (Results 251 - 275 of 1514) sorted by relevance

<<11121314151617181920>>

/linux-master/fs/
H A Dfcntl.c90 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, argument
94 if (force || !filp->f_owner.pid) {
95 put_pid(filp->f_owner.pid);
96 filp->f_owner.pid = get_pid(pid);
99 if (pid) {
108 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, argument
112 f_modown(filp, pid, typ
119 struct pid *pid = NULL; local
154 pid_t pid = 0; local
172 struct pid *pid; local
794 struct pid *pid; local
831 struct pid *pid; local
[all...]
/linux-master/tools/testing/selftests/damon/
H A Ddebugfs_target_ids_pid_leak.c52 int pid = fork(); local
54 if (pid < 0) {
58 if (pid == 0)
/linux-master/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c187 static int wait_for_pid(pid_t pid) argument
192 ret = waitpid(pid, &status, 0);
246 static int write_id_mapping(enum idmap_type type, pid_t pid, const char *buf, argument
256 snprintf(path, sizeof(path), "/proc/%d/setgroups", pid);
271 ret = snprintf(path, sizeof(path), "/proc/%d/uid_map", pid);
274 ret = snprintf(path, sizeof(path), "/proc/%d/gid_map", pid);
324 static void change_idmaps(struct __test_metadata *_metadata, int syncfds[2], pid_t pid) argument
338 ret = write_id_mapping(UID_MAP, pid, id_map, strlen(id_map));
344 ret = write_id_mapping(GID_MAP, pid, id_map, strlen(id_map));
383 pid_t pid; local
507 pid_t pid; local
[all...]
/linux-master/kernel/trace/
H A Dpid_list.c93 static inline int pid_split(unsigned int pid, unsigned int *upper1, argument
99 /* In case a bad pid is passed in, then fail */
100 if (unlikely(pid >= MAX_PID))
103 *upper1 = (pid >> UPPER1_SHIFT) & UPPER_MASK;
104 *upper2 = (pid >> UPPER2_SHIFT) & UPPER_MASK;
105 *lower = pid & LOWER_MASK;
119 * trace_pid_list_is_set - test if the pid is set in the list
120 * @pid_list: The pid list to test
121 * @pid: The pid t
129 trace_pid_list_is_set(struct trace_pid_list *pid_list, unsigned int pid) argument
168 trace_pid_list_set(struct trace_pid_list *pid_list, unsigned int pid) argument
221 trace_pid_list_clear(struct trace_pid_list *pid_list, unsigned int pid) argument
273 trace_pid_list_next(struct trace_pid_list *pid_list, unsigned int pid, unsigned int *next) argument
327 trace_pid_list_first(struct trace_pid_list *pid_list, unsigned int *pid) argument
[all...]
/linux-master/tools/testing/selftests/powerpc/signal/
H A Dsig_sc_double_restart.c84 pid_t pid; local
92 pid = fork();
93 if (pid == -1) {
98 if (pid == 0) { /* Child reads from pipe */
147 kill(pid, SIGUSR1);
/linux-master/kernel/debug/kdb/
H A Dkdb_bt.c46 * btp <pid> Kernel stack for <pid>
86 kdb_printf("Stack traceback for pid %d\n", p->pid);
162 unsigned long pid; local
165 diag = kdbgetularg((char *)argv[1], &pid);
168 p = find_task_by_pid_ns(pid, &init_pid_ns);
171 kdb_printf("No process with pid == %ld found\n", pid);
/linux-master/tools/testing/selftests/timers/
H A Dclocksource-switch.c128 pid_t pid; local
173 pid = fork();
174 if (!pid)
177 while (pid != waitpid(pid, &status, WNOHANG))
/linux-master/tools/testing/selftests/firmware/
H A Dfw_namespace.c77 pid_t pid; local
80 pid = waitpid(child, &status, 0);
81 if (pid == -1) {
85 if (pid != child) {
87 child, pid);
/linux-master/tools/perf/util/
H A Dperf_api_probe.c20 static pid_t pid = -1; local
32 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags);
34 if (pid == -1 && errno == EACCES) {
35 pid = 0;
46 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags);
H A Dmachine.h24 /* Native host kernel uses -1 as pid index in machine */
34 pid_t pid; member in struct:machine
99 struct thread *machine__find_thread(struct machine *machine, pid_t pid,
155 struct machine *machines__add(struct machines *machines, pid_t pid,
157 struct machine *machines__find(struct machines *machines, pid_t pid);
158 struct machine *machines__findnew(struct machines *machines, pid_t pid);
159 struct machine *machines__find_guest(struct machines *machines, pid_t pid);
160 struct thread *machines__findnew_guest_code(struct machines *machines, pid_t pid);
161 struct thread *machine__findnew_guest_code(struct machine *machine, pid_t pid);
168 int machine__init(struct machine *machine, const char *root_dir, pid_t pid);
[all...]
H A Djitdump.c178 header.pid = bswap_32(header.pid);
191 header.pid,
337 jr->load.pid = bswap_32(jr->load.pid);
348 jr->move.pid = bswap_32(jr->move.pid);
382 return jr->load.pid;
437 pid_t nspid, pid, tid; local
439 u32 pid, ti member in struct:__anon713
553 pid_t nspid, pid, tid; local
555 u32 pid, tid; member in struct:__anon714
740 jit_detect(char *mmap_name, pid_t pid, struct nsinfo *nsi) argument
794 jit_add_pid(struct machine *machine, pid_t pid) argument
807 jit_has_pid(struct machine *machine, pid_t pid) argument
821 jit_process(struct perf_session *session, struct perf_data *output, struct machine *machine, char *filename, pid_t pid, pid_t tid, u64 *nbytes) argument
[all...]
/linux-master/tools/perf/scripts/python/
H A Dcompaction-times.py14 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]
[all...]
/linux-master/tools/testing/selftests/riscv/vector/
H A Dvstate_prctl.c14 int rc, pid, status; local
16 pid = fork();
17 if (pid < 0) {
18 ksft_test_result_fail("fork failed %d", pid);
22 if (!pid) {
/linux-master/net/ax25/
H A Dax25_iface.c55 void ax25_protocol_release(unsigned int pid) argument
64 if (protocol->pid == pid) {
70 if (protocol->next->pid == pid) {
158 int (*ax25_protocol_function(unsigned int pid))(struct sk_buff *, ax25_cb *) argument
165 if (protocol->pid == pid) {
200 int ax25_protocol_is_registered(unsigned int pid) argument
207 if (protocol->pid
[all...]
/linux-master/tools/bpf/bpftool/
H A Dpids.c43 if (refs->refs[i].pid == e->pid)
50 e->id, e->pid, e->comm);
55 ref->pid = e->pid;
66 e->id, e->pid, e->comm);
74 e->id, e->pid, e->comm);
78 ref->pid = e->pid;
219 jsonw_int_field(json_writer, "pid", re
[all...]
H A Dperf.c65 static void print_perf_json(int pid, int fd, __u32 prog_id, __u32 fd_type, argument
69 jsonw_int_field(json_wtr, "pid", pid);
115 static void print_perf_plain(int pid, int fd, __u32 prog_id, __u32 fd_type, argument
118 printf("pid %d fd %d: prog_id %u ", pid, fd, prog_id);
158 int err, pid, fd; local
167 pid = 0;
170 /* pid should be all numbers */
172 pid
[all...]
/linux-master/tools/testing/selftests/arm64/fp/
H A Dza-ptrace.c59 static struct user_za_header *get_za(pid_t pid, void **buf, size_t *size) argument
80 if (ptrace(PTRACE_GETREGSET, pid, NT_ARM_ZA, &iov))
96 static int set_za(pid_t pid, const struct user_za_header *za) argument
102 return ptrace(PTRACE_SETREGSET, pid, NT_ARM_ZA, &iov);
251 pid_t pid; local
261 pid = wait(&status);
262 if (pid == -1) {
271 if (pid != child)
282 if (ptrace(PTRACE_GETSIGINFO, pid, NULL, &si)) {
297 si.si_pid == pid)
[all...]
/linux-master/arch/um/os-Linux/
H A Dumid.c138 char pid[sizeof("nnnnnnnnn")], *end, *file; local
140 size_t filelen = strlen(dir) + sizeof("/pid") + 1;
146 snprintf(file, filelen, "%s/pid", dir);
152 printk(UM_KERN_ERR "is_umdir_used : couldn't open pid "
159 n = read(fd, pid, sizeof(pid));
161 printk(UM_KERN_ERR "is_umdir_used : couldn't read pid file "
165 printk(UM_KERN_ERR "is_umdir_used : couldn't read pid file "
170 p = strtoul(pid, &end, 0);
171 if (end == pid) {
212 char pid[sizeof("nnnnnnnnn")], *file; local
[all...]
/linux-master/tools/perf/tests/
H A Dbackward-ring-buffer.c88 char pid[16], sbuf[STRERR_BUFSIZE]; local
102 snprintf(pid, sizeof(pid), "%d", getpid());
103 pid[sizeof(pid) - 1] = '\0';
104 opts.target.tid = opts.target.pid = pid;
/linux-master/arch/um/os-Linux/skas/
H A Dmem.c23 extern void wait_stub_done(int pid);
56 int err, pid = mm_idp->u.pid; local
58 n = ptrace_setregs(pid, syscall_regs);
67 err = ptrace(PTRACE_CONT, pid, 0, 0);
69 panic("Failed to continue stub, pid = %d, errno = %d\n", pid,
72 wait_stub_done(pid);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_loop.c25 int pid; variable
70 if (bpf_get_current_pid_tgid() >> 32 != pid)
86 if (bpf_get_current_pid_tgid() >> 32 != pid)
99 if (bpf_get_current_pid_tgid() >> 32 != pid)
112 if (bpf_get_current_pid_tgid() >> 32 != pid)
141 if (bpf_get_current_pid_tgid() >> 32 != pid)
205 if (bpf_get_current_pid_tgid() >> 32 != pid)
H A Dtask_kfunc_success.c12 int err, pid; variable
35 return pid == cur_pid;
235 acquired = bpf_task_from_pid(p->pid);
241 if (acquired->pid != p->pid)
266 static int is_pid_lookup_valid(s32 pid) argument
270 acquired = bpf_task_from_pid(pid);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsend_signal.c21 pid_t pid; local
32 pid = fork();
33 if (!ASSERT_GE(pid, 0, "fork")) {
41 if (pid == 0) {
103 pmu_fd = syscall(__NR_perf_event_open, attr, pid, -1 /* cpu */,
122 skel->bss->pid = pid;
179 pmu_fd = syscall(__NR_perf_event_open, &attr, 0 /* pid */,
/linux-master/arch/mips/kernel/
H A Dmips-mt-fpaff.c42 static inline struct task_struct *find_process_by_pid(pid_t pid) argument
44 return pid ? find_task_by_vpid(pid) : current;
66 asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, argument
83 p = find_process_by_pid(pid);
158 asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, argument
174 p = find_process_by_pid(pid);
/linux-master/sound/firewire/oxfw/
H A Doxfw.h100 unsigned int pid, u8 *format, unsigned int len);
102 enum avc_general_plug_dir dir, unsigned int pid,
106 enum avc_general_plug_dir dir, unsigned int pid,
109 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff);
113 enum avc_general_plug_dir dir, unsigned int pid,
117 return avc_stream_get_format(unit, dir, pid, buf, len, eid);
126 unsigned short pid);
105 avc_stream_get_format_single(struct fw_unit *unit, enum avc_general_plug_dir dir, unsigned int pid, u8 *buf, unsigned int *len) argument
112 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) argument

Completed in 398 milliseconds

<<11121314151617181920>>