Home
last modified time | relevance | path

Searched refs:pid (Results 176 – 200 of 2199) sorted by relevance

12345678910>>...88

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dns_current_pid_tgid.c20 static int get_pid_tgid(pid_t *pid, pid_t *tgid, in get_pid_tgid() argument
26 *pid = syscall(SYS_gettid); in get_pid_tgid()
45 pid_t tgid, pid; in test_current_pid_tgid_tp() local
58 if (get_pid_tgid(&pid, &tgid, bss)) in test_current_pid_tgid_tp()
67 if (!ASSERT_EQ(bss->user_pid, pid, "pid")) in test_current_pid_tgid_tp()
84 pid_t tgid, pid; in test_current_pid_tgid_cgrp() local
97 if (get_pid_tgid(&pid, &tgid, bss)) in test_current_pid_tgid_cgrp()
109 if (!ASSERT_EQ(bss->user_pid, pid, "pid")) in test_current_pid_tgid_cgrp()
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tm-tar.c116 pid_t pid; in ptrace_tm_tar() local
122 pid = fork(); in ptrace_tm_tar()
123 if (pid == 0) in ptrace_tm_tar()
129 if (pid) { in ptrace_tm_tar()
132 ret = trace_tm_tar(pid); in ptrace_tm_tar()
134 kill(pid, SIGTERM); in ptrace_tm_tar()
143 if (ret != pid) { in ptrace_tm_tar()
H A Dptrace-tm-spd-tar.c128 pid_t pid; in ptrace_tm_spd_tar() local
134 pid = fork(); in ptrace_tm_spd_tar()
135 if (pid == 0) in ptrace_tm_spd_tar()
142 if (pid) { in ptrace_tm_spd_tar()
145 ret = trace_tm_spd_tar(pid); in ptrace_tm_spd_tar()
147 kill(pid, SIGTERM); in ptrace_tm_spd_tar()
157 if (ret != pid) { in ptrace_tm_spd_tar()
/openbmc/linux/samples/trace_events/
H A Dtrace_custom_sched.h50 __entry->next_pid = next->pid;
66 __field( pid_t, pid )
71 __entry->pid = p->pid;
75 TP_printk("pid=%d prio=%d", __entry->pid, __entry->prio)
/openbmc/qemu/hw/usb/
H A Dcore.c293 if (p->pid == USB_TOKEN_OUT) { in do_parameter()
307 if (p->pid == USB_TOKEN_IN) { in do_parameter()
344 if (p->pid == USB_TOKEN_IN) { in usb_generic_async_ctrl_complete()
388 switch (p->pid) { in usb_process_one()
582 void usb_packet_setup(USBPacket *p, int pid, in usb_packet_setup() argument
589 p->pid = pid; in usb_packet_setup()
613 switch (p->pid) { in usb_packet_copy()
634 if (p->pid == USB_TOKEN_IN) { in usb_packet_skip()
665 dev->ep_in[ep].pid = USB_TOKEN_IN; in usb_ep_reset()
666 dev->ep_out[ep].pid = USB_TOKEN_OUT; in usb_ep_reset()
[all …]
/openbmc/linux/drivers/pinctrl/mvebu/
H A Dpinctrl-dove.c64 unsigned pid, unsigned long *config) in dove_pmu_mpp_ctrl_get() argument
71 if ((pmu & BIT(pid)) == 0) in dove_pmu_mpp_ctrl_get()
82 unsigned pid, unsigned long config) in dove_pmu_mpp_ctrl_set() argument
109 switch (pid) { in dove_mpp4_ctrl_get()
140 switch (pid) { in dove_mpp4_ctrl_set()
272 unsigned pid) in dove_audio1_ctrl_gpio_req() argument
276 dove_audio1_ctrl_get(data, pid, &config); in dove_audio1_ctrl_gpio_req()
281 if (pid >= 56) in dove_audio1_ctrl_gpio_req()
286 if (pid <= 55) in dove_audio1_ctrl_gpio_req()
300 unsigned pid, bool input) in dove_audio1_ctrl_gpio_dir() argument
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-stack.c35 int pid; in tm_signal_stack() local
40 pid = fork(); in tm_signal_stack()
41 if (pid < 0) in tm_signal_stack()
44 if (pid) { /* Parent */ in tm_signal_stack()
/openbmc/linux/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) in get_za() argument
80 if (ptrace(PTRACE_GETREGSET, pid, NT_ARM_ZA, &iov)) in get_za()
96 static int set_za(pid_t pid, const struct user_za_header *za) in set_za() argument
102 return ptrace(PTRACE_SETREGSET, pid, NT_ARM_ZA, &iov); in set_za()
251 pid_t pid; in do_parent() local
261 pid = wait(&status); in do_parent()
262 if (pid == -1) { in do_parent()
271 if (pid != child) in do_parent()
282 if (ptrace(PTRACE_GETSIGINFO, pid, NULL, &si)) { in do_parent()
297 si.si_pid == pid) in do_parent()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Debb_on_child_test.c48 pid_t pid; in ebb_on_child() local
55 pid = fork(); in ebb_on_child()
56 if (pid == 0) { in ebb_on_child()
72 FAIL_IF(event_open_with_pid(&event, pid)); in ebb_on_child()
78 FAIL_IF(wait_for_child(pid)); in ebb_on_child()
H A Debb_on_willing_child_test.c53 pid_t pid; in ebb_on_willing_child() local
60 pid = fork(); in ebb_on_willing_child()
61 if (pid == 0) { in ebb_on_willing_child()
78 FAIL_IF(event_open_with_pid(&event, pid)); in ebb_on_willing_child()
82 FAIL_IF(wait_for_child(pid)); in ebb_on_willing_child()
H A Dcpu_event_vs_ebb_test.c42 pid_t pid; in cpu_event_vs_ebb() local
52 pid = fork(); in cpu_event_vs_ebb()
53 if (pid == 0) { in cpu_event_vs_ebb()
61 kill_child_and_wait(pid); in cpu_event_vs_ebb()
75 FAIL_IF(wait_for_child(pid)); in cpu_event_vs_ebb()
H A Debb_vs_cpu_event_test.c42 pid_t pid; in ebb_vs_cpu_event() local
52 pid = fork(); in ebb_vs_cpu_event()
53 if (pid == 0) { in ebb_vs_cpu_event()
64 kill_child_and_wait(pid); in ebb_vs_cpu_event()
72 FAIL_IF(wait_for_child(pid)); in ebb_vs_cpu_event()
/openbmc/linux/drivers/usb/storage/
H A Dusual-tables.c58 u16 vid, pid, bcdmin, bcdmax; member
66 .pid = id_product, \
94 unsigned vid, pid, bcd; in usb_usual_ignore_device() local
99 pid = le16_to_cpu(udev->descriptor.idProduct); in usb_usual_ignore_device()
103 if (p->vid == vid && p->pid == pid && in usb_usual_ignore_device()
/openbmc/linux/samples/pidfd/
H A Dpidfd-metadata.c52 static int pidfd_metadata_fd(pid_t pid, int pidfd) in pidfd_metadata_fd() argument
57 snprintf(path, sizeof(path), "/proc/%d", pid); in pidfd_metadata_fd()
88 pid_t pid; in main() local
92 pid = pidfd_clone(CLONE_PIDFD, &pidfd); in main()
93 if (pid < 0) in main()
100 procfd = pidfd_metadata_fd(pid, pidfd); in main()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_ringbuf.c11 int pid; member
22 int pid = 0; variable
45 if (cur_pid != pid) in test_ringbuf()
54 sample->pid = pid; in test_ringbuf()
H A Dtest_ringbuf_multi.c10 int pid; member
47 int pid = 0; variable
63 if (cur_pid != pid) in test_ringbuf()
78 sample->pid = pid; in test_ringbuf()
/openbmc/qemu/qga/
H A Dcommands.c95 GPid pid; member
113 static int64_t gpid_to_int64(GPid pid) in gpid_to_int64() argument
116 return GetProcessId(pid); in gpid_to_int64()
118 return (int64_t)pid; in gpid_to_int64()
127 gei->pid = pid; in guest_exec_info_add()
128 gei->pid_numeric = gpid_to_int64(pid); in guest_exec_info_add()
154 gei = guest_exec_info_find(pid); in qmp_guest_exec_status()
269 g_spawn_close_pid(pid); in guest_exec_child_watch()
414 GPid pid; in qmp_guest_exec() local
483 ge->pid = gpid_to_int64(pid); in qmp_guest_exec()
[all …]
/openbmc/linux/tools/testing/selftests/nci/
H A Dnci_dev.c160 static int send_get_nfc_family(int sd, __u32 pid) in send_get_nfc_family() argument
189 rc = send_get_nfc_family(sd, pid); in get_family_id()
304 __u32 pid; in FIXTURE() local
417 self->pid = getpid(); in FIXTURE_SETUP()
616 rc = send_cmd_with_idx(sd, fid, pid, in stop_polling()
630 self->sd, self->fid, self->pid); in TEST_F()
634 self->fid, self->pid); in TEST_F()
638 int get_taginfo(int dev_idx, int sd, int fid, int pid) in get_taginfo() argument
739 target_idx = get_taginfo(dev_idx, sd, fid, pid); in connect_tag()
845 self->sd, self->fid, self->pid); in TEST_F()
[all …]
/openbmc/u-boot/include/spmi/
H A Dspmi.h17 int (*read)(struct udevice *dev, int usid, int pid, int reg);
18 int (*write)(struct udevice *dev, int usid, int pid, int reg,
31 int spmi_reg_read(struct udevice *dev, int usid, int pid, int reg);
43 int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg,
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_mksstat.h102 .slot = vmw_mksstat_get_kern_slot(current->pid, dev_priv) \
116 …const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MK…
119 …if (pid == current->pid) { …
134 …atomic_set(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid); …
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Ddaemonize.py37 pid = os.fork()
41 if (pid == 0): # The first child.
55 pid = os.fork() # Fork a second child.
59 if (pid != 0):
70 os.waitpid(pid, 0)
/openbmc/linux/tools/kvm/kvm_stat/
H A Dkvm_stat577 self.pid = pid
762 def pid(self): member in TracepointProvider
765 @pid.setter
766 def pid(self, pid): argument
839 def pid(self): member in DebugfsProvider
842 @pid.setter
843 def pid(self, pid): member in DebugfsProvider
845 if pid != 0:
1201 if pid > 0:
1446 if not pid:
[all …]
/openbmc/linux/net/core/
H A Dscm.c55 if ((creds->pid == task_tgid_vnr(current) || in scm_check_creds()
181 p->creds.pid = creds.pid; in __scm_send()
182 if (!p->pid || pid_vnr(p->pid) != creds.pid) { in __scm_send()
183 struct pid *pid; in __scm_send() local
185 pid = find_get_pid(creds.pid); in __scm_send()
186 if (!pid) in __scm_send()
188 put_pid(p->pid); in __scm_send()
189 p->pid = pid; in __scm_send()
/openbmc/linux/arch/nios2/mm/
H A Dtlb.c25 static void get_misc_and_pid(unsigned long *misc, unsigned long *pid) in get_misc_and_pid() argument
29 *pid = *misc & TLBMISC_PID; in get_misc_and_pid()
58 unsigned long pid; in replace_tlb_one_pid() local
68 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in replace_tlb_one_pid()
69 if (pid != mmu_pid) in replace_tlb_one_pid()
231 unsigned long pid; in flush_tlb_pid() local
236 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in flush_tlb_pid()
237 if (pid != mmu_pid) in flush_tlb_pid()
292 void set_mmu_pid(unsigned long pid) in set_mmu_pid() argument
298 tlbmisc |= (pid & TLBMISC_PID_MASK) << TLBMISC_PID_SHIFT; in set_mmu_pid()
/openbmc/linux/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;
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, void *spa, int pasid, u32 pidr, u32 tidr),
111 TP_ARGS(pid, spa, pasid, pidr, tidr)

12345678910>>...88