/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfa_fcs_rport.c | 252 rport->pid = 0; in bfa_fcs_rport_sm_plogi_sending() 313 rport->pid = 0; in bfa_fcs_rport_sm_plogiacc_sending() 384 rport->pid = 0; in bfa_fcs_rport_sm_plogi_retry() 439 rport->pid = 0; in bfa_fcs_rport_sm_plogi() 467 rport->pid = 0; in bfa_fcs_rport_sm_plogi() 1138 rport->pid = 0; in bfa_fcs_rport_sm_hcb_offline() 1514 rport->pid = 0; in bfa_fcs_rport_sm_nsdisc_retry() 1594 rport->pid = 0; in bfa_fcs_rport_sm_nsdisc_sent() 2281 rport_info.pid = rport->pid; in bfa_fcs_rport_hal_online() 2376 if (rport->pid != 0 && !BFA_FCS_PID_IS_WKA(rport->pid)) in bfa_fcs_rport_free() [all …]
|
/openbmc/sdeventplus/test/source/ |
H A D | child.cpp | 63 const pid_t pid = 50; in TEST_F() local 69 EXPECT_CALL(mock, sd_event_add_child(expected_event, testing::_, pid, in TEST_F() 92 Child child(*event, pid, options, std::move(callback)); in TEST_F() 112 const pid_t pid = 50; in TEST_F() local 115 EXPECT_CALL(mock, sd_event_add_child(expected_event, testing::_, pid, in TEST_F() 122 EXPECT_THROW(Child(*event, pid, options, std::move(callback)), in TEST_F() 137 const pid_t pid = 50; in SetUp() local 156 child = std::make_unique<Child>(*event, pid, options, in SetUp() 203 const pid_t pid = 32; in TEST_F() local 206 .WillOnce(DoAll(SetArgPointee<1>(pid), Return(0))); in TEST_F() [all …]
|
/openbmc/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 3317 ASSERT_EQ(pid, waitpid(pid, NULL, 0)); in TEST() 3394 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST() 3462 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST() 3523 EXPECT_EQ(waitpid(pid, NULL, 0), pid); in TEST() 3611 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST() 3644 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST() 3675 EXPECT_EQ(req.pid, pid); in TEST() 3683 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST() 3761 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST() 3798 EXPECT_EQ(req.pid, pid); in TEST() [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | dlfilter-test.c | 125 static int write_comm(int fd, pid_t pid, pid_t tid, const char *comm_str) in write_comm() argument 134 comm.pid = pid; in write_comm() 158 mmap->pid = pid; in write_mmap() 183 .pid = pid, in write_sample() 323 pid_t pid = 12345; in test__dlfilter_test() local 370 if (write_comm(td->fd, pid, tid, "test-prog")) in test__dlfilter_test() 373 if (write_mmap(td->fd, pid, tid, MAP_START, 0x10000, 0, td->prog_file_name)) in test__dlfilter_test() 376 if (write_sample(td, sample_type, id, pid, tid) != TEST_OK) in test__dlfilter_test() 409 int pid = getpid(); in test__dlfilter_ver() local 419 snprintf(td.c_file_name, PATH_MAX, "/tmp/dlfilter-test-%u-prog.c", pid); in test__dlfilter_ver() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | d_path.c | 33 static int set_pathname(int fd, pid_t pid) in set_pathname() argument 37 snprintf(buf, MAX_PATH_LEN, "/proc/%d/fd/%d", pid, fd); in set_pathname() 41 static int trigger_fstat_events(pid_t pid) in trigger_fstat_events() argument 72 ret = set_pathname(pipefd[0], pid); in trigger_fstat_events() 75 ret = set_pathname(pipefd[1], pid); in trigger_fstat_events() 78 ret = set_pathname(sockfd, pid); in trigger_fstat_events() 81 ret = set_pathname(procfd, pid); in trigger_fstat_events() 84 ret = set_pathname(devfd, pid); in trigger_fstat_events() 87 ret = set_pathname(localfd, pid); in trigger_fstat_events() 90 ret = set_pathname(indicatorfd, pid); in trigger_fstat_events()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | lru_bug.c | 17 int pid = 0; variable 25 if (pid == bpf_get_current_task_btf()->pid) in printk() 43 pid = current->pid; in nanosleep()
|
H A D | test_ringbuf_map_key.c | 11 int pid; member 29 int pid = 0; variable 41 if (cur_pid != pid) in test_ringbuf_mem_map_key() 48 sample->pid = pid; in test_ringbuf_mem_map_key()
|
/openbmc/linux/tools/testing/selftests/timens/ |
H A D | futex.c | 66 pid_t pid; in main() local 89 pid = fork(); in main() 90 if (pid < 0) in main() 92 if (pid == 0) { in main() 103 if (waitpid(pid, &status, 0) != pid) in main()
|
/openbmc/linux/arch/x86/um/ |
H A D | syscalls_64.c | 21 int pid = task->mm->context.id.u.pid; in arch_prctl() local 39 ret = restore_pid_registers(pid, ¤t->thread.regs.regs); in arch_prctl() 56 ret = os_arch_prctl(pid, option, ptr); in arch_prctl() 63 ret = save_registers(pid, ¤t->thread.regs.regs); in arch_prctl() 66 ret = save_registers(pid, ¤t->thread.regs.regs); in arch_prctl()
|
H A D | ptrace_user.c | 9 int ptrace_getregs(long pid, unsigned long *regs_out) in ptrace_getregs() argument 11 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0) in ptrace_getregs() 16 int ptrace_setregs(long pid, unsigned long *regs) in ptrace_setregs() argument 18 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0) in ptrace_setregs()
|
/openbmc/linux/arch/powerpc/platforms/book3s/ |
H A D | vas-api.c | 82 put_pid(task_ref->pid); in get_vas_user_win_ref() 84 current->pid); in get_vas_user_win_ref() 110 struct pid *pid; in ref_get_pid_and_task() local 112 pid = task_ref->pid; in ref_get_pid_and_task() 113 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task() 115 pid = task_ref->tgid; in ref_get_pid_and_task() 116 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task() 132 *pidp = pid; in ref_get_pid_and_task() 155 struct pid *pid; in vas_update_csb() local 222 csb_addr, pid_vnr(pid)); in vas_update_csb() [all …]
|
/openbmc/linux/tools/perf/bench/ |
H A D | sched-seccomp-notify.c | 100 pid_t pid; in bench_sched_seccomp_notify() local 113 pid = fork(); in bench_sched_seccomp_notify() 114 if (pid < 0) in bench_sched_seccomp_notify() 116 if (pid == 0) { in bench_sched_seccomp_notify() 136 kill(pid, SIGKILL); in bench_sched_seccomp_notify() 137 if (waitpid(pid, &status, 0) != pid) in bench_sched_seccomp_notify() 138 err(EXIT_FAILURE, "waitpid(%d) failed", pid); in bench_sched_seccomp_notify()
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-gpr.c | 121 pid_t pid; in ptrace_gpr() local 133 pid = fork(); in ptrace_gpr() 134 if (pid < 0) { in ptrace_gpr() 138 if (pid == 0) in ptrace_gpr() 141 if (pid) { in ptrace_gpr() 146 ret = trace_gpr(pid); in ptrace_gpr() 148 kill(pid, SIGTERM); in ptrace_gpr() 159 if (ret != pid) { in ptrace_gpr()
|
/openbmc/linux/Documentation/translations/zh_CN/mm/ |
H A D | page_owner.rst | 97 -p 按pid排序。 108 ./page_owner_sort <input> <output> --sort=n,+pid,-tgid 124 ./page_owner_sort <input> <output> --cull=st,pid,name 131 --pid <pidlist> 按pid选择。这将选择进程ID号出现在<pidlist>中的块。 142 ./page_owner_sort <input> <output> --pid=1 153 p pid 进程ID 165 p pid 进程ID
|
/openbmc/linux/tools/testing/selftests/powerpc/math/ |
H A D | fpu_syscall.c | 18 extern int test_fpu(double *darray, pid_t *pid); 51 pid_t pid = fork(); in test_syscall_fpu() local 54 FAIL_IF(pid == -1); in test_syscall_fpu() 73 if (pid) in test_syscall_fpu() 74 waitpid(pid, &child_ret, 0); in test_syscall_fpu()
|
/openbmc/linux/sound/firewire/oxfw/ |
H A D | oxfw.h | 95 unsigned int pid, u8 *format, unsigned int len); 97 enum avc_general_plug_dir dir, unsigned int pid, 101 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format_single() argument 104 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); in avc_stream_get_format_single() 108 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format_list() argument 112 return avc_stream_get_format(unit, dir, pid, buf, len, eid); in avc_stream_get_format_list() 121 unsigned short pid);
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | pids.c | 43 if (refs->refs[i].pid == e->pid) in add_ref() 50 e->id, e->pid, e->comm); in add_ref() 55 ref->pid = e->pid; in add_ref() 66 e->id, e->pid, e->comm); in add_ref() 74 e->id, e->pid, e->comm); in add_ref() 78 ref->pid = e->pid; in add_ref() 219 jsonw_int_field(json_writer, "pid", ref->pid); in emit_obj_refs_json() 249 printf("%s%s(%d)", i == 0 ? "" : ", ", ref->comm, ref->pid); in emit_obj_refs_plain()
|
/openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/ |
H A D | journalpid | 9 desc="Journal pid:$pid log" 11 if [ $pid -eq $ZERO ]; then 16 file_name="journal-pid-$pid.log" 17 command="journalctl -o verbose _PID=$pid"
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_pci.c | 203 const struct pci_device_id *pid; in drm_legacy_pci_init() local 213 pid = &pdriver->id_table[i]; in drm_legacy_pci_init() 223 pci_get_subsys(pid->vendor, pid->device, pid->subvendor, in drm_legacy_pci_init() 224 pid->subdevice, pdev)) != NULL) { in drm_legacy_pci_init() 225 if ((pdev->class & pid->class_mask) != pid->class) in drm_legacy_pci_init() 230 drm_legacy_get_pci_dev(pdev, pid, driver); in drm_legacy_pci_init()
|
/openbmc/linux/tools/testing/selftests/memfd/ |
H A D | fuse_test.c | 203 pid_t pid; in spawn_sealing_thread() local 211 pid = clone(sealing_thread_fn, in spawn_sealing_thread() 215 if (pid < 0) { in spawn_sealing_thread() 220 return pid; in spawn_sealing_thread() 223 static void join_sealing_thread(pid_t pid) in join_sealing_thread() argument 225 waitpid(pid, NULL, 0); in join_sealing_thread() 234 pid_t pid; in main() local 280 pid = spawn_sealing_thread(); in main() 302 join_sealing_thread(pid); in main()
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-priv.h | 98 pid_t pid; member 173 #define CS_AMBA_ID(pid) \ argument 175 .id = pid, \ 180 #define CS_AMBA_ID_DATA(pid, dval) \ argument 182 .id = pid, \ 191 #define __CS_AMBA_UCI_ID(pid, m, uci_ptr) \ argument 193 .id = pid, \ 197 #define CS_AMBA_UCI_ID(pid, uci) __CS_AMBA_UCI_ID(pid, 0x000fffff, uci) argument
|
/openbmc/linux/arch/mips/mm/ |
H A D | tlb-r3k.c | 121 int pid = read_c0_entryhi(); in local_flush_tlb_kernel_range() local 140 write_c0_entryhi(pid); in local_flush_tlb_kernel_range() 183 int idx, pid; in __update_tlb() local 191 pid = read_c0_entryhi() & asid_mask; in __update_tlb() 194 if ((pid != (cpu_context(cpu, vma->vm_mm) & asid_mask)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb() 196 (cpu_context(cpu, vma->vm_mm)), pid); in __update_tlb() 202 write_c0_entryhi(address | pid); in __update_tlb() 207 write_c0_entryhi(address | pid); in __update_tlb() 213 write_c0_entryhi(pid); in __update_tlb()
|
/openbmc/linux/tools/perf/util/ |
H A D | machine.h | 44 pid_t pid; member 115 struct thread *machine__find_thread(struct machine *machine, pid_t pid, 171 struct machine *machines__add(struct machines *machines, pid_t pid, 173 struct machine *machines__find(struct machines *machines, pid_t pid); 174 struct machine *machines__findnew(struct machines *machines, pid_t pid); 175 struct machine *machines__find_guest(struct machines *machines, pid_t pid); 184 int machine__init(struct machine *machine, const char *root_dir, pid_t pid); 211 return machine ? machine->pid == DEFAULT_GUEST_KERNEL_ID : false; in machine__is_default_guest() 216 return machine ? machine->pid == HOST_KERNEL_ID : false; in machine__is_host() 262 int machines__create_kernel_maps(struct machines *machines, pid_t pid); [all …]
|
/openbmc/linux/kernel/trace/ |
H A D | pid_list.c | 93 static inline int pid_split(unsigned int pid, unsigned int *upper1, in pid_split() argument 100 if (unlikely(pid >= MAX_PID)) in pid_split() 103 *upper1 = (pid >> UPPER1_SHIFT) & UPPER_MASK; in pid_split() 104 *upper2 = (pid >> UPPER2_SHIFT) & UPPER_MASK; in pid_split() 105 *lower = pid & LOWER_MASK; in pid_split() 142 if (pid_split(pid, &upper1, &upper2, &lower) < 0) in trace_pid_list_is_set() 168 int trace_pid_list_set(struct trace_pid_list *pid_list, unsigned int pid) in trace_pid_list_set() argument 181 if (pid_split(pid, &upper1, &upper2, &lower) < 0) in trace_pid_list_set() 233 if (pid_split(pid, &upper1, &upper2, &lower) < 0) in trace_pid_list_clear() 286 if (pid_split(pid, &upper1, &upper2, &lower) < 0) in trace_pid_list_next() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_inherit_test.c | 23 pid_t pid; in dscr_inherit() local 42 pid = fork(); in dscr_inherit() 43 if (pid == -1) { in dscr_inherit() 46 } else if (pid) { in dscr_inherit() 49 if (waitpid(pid, &status, 0) == -1) { in dscr_inherit()
|