Home
last modified time | relevance | path

Searched refs:pid (Results 76 – 100 of 2199) sorted by relevance

12345678910>>...88

/openbmc/linux/tools/perf/arch/x86/tests/
H A Dintel-cqm.c18 pid_t pid; in spawn() local
20 pid = fork(); in spawn()
21 if (pid) in spawn()
22 return pid; in spawn()
48 pid_t pid; in test__intel_cqm_count_nmi_context() local
82 pid = spawn(); in test__intel_cqm_count_nmi_context()
84 fd[0] = sys_perf_event_open(&pe, pid, -1, -1, flag); in test__intel_cqm_count_nmi_context()
96 fd[1] = sys_perf_event_open(&pe, pid, -1, fd[0], flag); in test__intel_cqm_count_nmi_context()
123 kill(pid, SIGKILL); in test__intel_cqm_count_nmi_context()
/openbmc/linux/tools/testing/selftests/memfd/
H A Dmemfd_test.c394 pid_t pid; in mfd_assert_fork_private_write() local
409 pid = fork(); in mfd_assert_fork_private_write()
410 if (pid == 0) { in mfd_assert_fork_private_write()
769 pid_t pid; in spawn_thread() local
778 if (pid < 0) { in spawn_thread()
783 return pid; in spawn_thread()
1258 int pid; in sysctl_simple_child() local
1289 join_thread(pid); in test_sysctl_simple()
1325 int pid; in sysctl_nested_child() local
1546 pid_t pid; in test_share_fork() local
[all …]
/openbmc/linux/arch/um/drivers/
H A Dxterm.c19 int pid; member
35 *data = ((struct xterm_chan) { .pid = -1, in xterm_init()
91 int pid, fd, new, err; in xterm_open() local
140 pid = run_helper(NULL, NULL, argv); in xterm_open()
141 if (pid < 0) { in xterm_open()
142 err = pid; in xterm_open()
186 data->pid = pid; in xterm_open()
194 os_kill_process(pid, 1); in xterm_open()
205 if (data->pid != -1) in xterm_close()
206 os_kill_process(data->pid, 1); in xterm_close()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/dnf/dnf/
H A D0001-lock.py-fix-Exception-handling.patch7 like "Permission denied: '/var/log/log_lock.pid'", and in this case,
9 handled, it maybe cause log_lock.pid not be deleted in case like [1].
14 Exception happend, for the threads that do chroot, log_lock.pid will be
16 handled correct before, log_lock.pid may not be deleted correctly.
38 - pid = self._try_lock(my_pid)
40 + pid = self._try_lock(my_pid)
44 while pid != my_pid:
45 if pid != -1:
49 prev_pid = pid
51 - pid = self._try_lock(my_pid)
[all …]
/openbmc/linux/arch/um/kernel/skas/
H A Dmmu.c34 to_mm->id.u.pid = copy_context_skas0(stack, in init_new_context()
35 from_mm->id.u.pid); in init_new_context()
36 else to_mm->id.u.pid = start_userspace(stack); in init_new_context()
39 if (to_mm->id.u.pid < 0) { in init_new_context()
40 ret = to_mm->id.u.pid; in init_new_context()
70 if (mmu->id.u.pid < 2) { in destroy_context()
72 mmu->id.u.pid); in destroy_context()
75 os_kill_ptraced_process(mmu->id.u.pid, 1); in destroy_context()
/openbmc/linux/tools/testing/selftests/sched/
H A Dcs_prctl_test.c112 static unsigned long get_cs_cookie(int pid) in get_cs_cookie() argument
239 int pid; in main() local
294 pid = procs[pidx].cpid; in main()
296 validate(get_cs_cookie(0) == get_cs_cookie(pid)); in main()
304 validate(get_cs_cookie(0) != get_cs_cookie(pid)); in main()
305 validate(get_cs_cookie(pid) != 0); in main()
309 getpid(), pid); in main()
314 validate(get_cs_cookie(0) == get_cs_cookie(pid)); in main()
315 validate(get_cs_cookie(pid) != 0); in main()
333 validate(get_cs_cookie(0) == get_cs_cookie(pid)); in main()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/
H A Dhardware_disable_test.c124 void wait_for_child_setup(pid_t pid) in wait_for_child_setup() argument
138 if (pid != waitpid(pid, &status, WNOHANG)) in wait_for_child_setup()
158 pid_t pid; in main() local
164 pid = fork(); in main()
165 TEST_ASSERT(pid >= 0, "%s: unable to fork", __func__); in main()
166 if (pid == 0) in main()
170 wait_for_child_setup(pid); in main()
174 r = waitpid(pid, &s, WNOHANG); in main()
175 TEST_ASSERT(r != pid, in main()
179 kill(pid, SIGKILL); in main()
/openbmc/linux/tools/perf/util/
H A Dcloexec.c27 pid_t pid = -1; in perf_flag_probe() local
40 fd = sys_perf_event_open(&attr, pid, cpu, -1, in perf_flag_probe()
42 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
43 pid = 0; in perf_flag_probe()
61 fd = sys_perf_event_open(&attr, pid, cpu, -1, 0); in perf_flag_probe()
62 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
63 pid = 0; in perf_flag_probe()
H A Djitdump.c178 header.pid = bswap_32(header.pid); in jit_open()
191 header.pid, in jit_open()
337 jr->load.pid = bswap_32(jr->load.pid); in jit_get_next_entry()
348 jr->move.pid = bswap_32(jr->move.pid); in jit_get_next_entry()
439 u32 pid, tid; in jit_repipe_code_load() member
498 event->mmap2.pid = pid; in jit_repipe_code_load()
509 id->pid = pid; in jit_repipe_code_load()
521 sample.pid = pid; in jit_repipe_code_load()
593 event->mmap2.pid = pid; in jit_repipe_code_move()
604 id->pid = pid; in jit_repipe_code_move()
[all …]
H A Dvalues.c15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
18 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init()
41 zfree(&values->pid); in perf_read_values_init()
57 zfree(&values->pid); in perf_read_values_destroy()
68 void *npid = realloc(values->pid, nthreads_max * sizeof(*values->pid)), in perf_read_values__enlarge_threads()
76 values->pid = npid; in perf_read_values__enlarge_threads()
89 u32 pid, u32 tid) in perf_read_values__findnew_thread() argument
94 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread()
110 values->pid[i] = pid; in perf_read_values__findnew_thread()
185 u32 pid, u32 tid, in perf_read_values_add_value() argument
[all …]
/openbmc/linux/tools/testing/selftests/pidfd/
H A Dpidfd_test.c96 pid_t pid; in test_pidfd_send_signal_exited_fail() local
106 pid = fork(); in test_pidfd_send_signal_exited_fail()
107 if (pid < 0) in test_pidfd_send_signal_exited_fail()
111 if (pid == 0) in test_pidfd_send_signal_exited_fail()
118 ret = wait_for_pid(pid); in test_pidfd_send_signal_exited_fail()
445 int pid, pidfd = 0; in test_pidfd_poll_exec() local
452 if (pid < 0) in test_pidfd_poll_exec()
463 if (ret == pid) in test_pidfd_poll_exec()
511 int pid, pidfd = 0; in test_pidfd_poll_leader_exit() local
525 if (pid < 0) in test_pidfd_poll_leader_exit()
[all …]
/openbmc/linux/tools/testing/selftests/exec/
H A Dnull-argv.c12 pid = fork(); \
13 if (pid == 0) { \
19 check_result(pid, #exec); \
22 void check_result(pid_t pid, const char *msg) in check_result() argument
26 if (pid == (pid_t)-1) { in check_result()
31 if (waitpid(pid, &wstatus, 0) < 0) { in check_result()
49 pid_t pid; in main() local
/openbmc/linux/include/trace/events/
H A Dgpu_mem.h32 TP_PROTO(uint32_t gpu_id, uint32_t pid, uint64_t size),
34 TP_ARGS(gpu_id, pid, size),
38 __field(uint32_t, pid)
44 __entry->pid = pid;
50 __entry->pid,
/openbmc/linux/tools/testing/selftests/breakpoints/
H A Dstep_after_suspend_test.c53 pid_t pid = fork(); in run_test() local
56 if (pid < 0) { in run_test()
60 if (pid == 0) in run_test()
63 wpid = waitpid(pid, &status, __WALL); in run_test()
64 if (wpid != pid) { in run_test()
78 if (ptrace(PTRACE_SINGLESTEP, pid, NULL, NULL) < 0) { in run_test()
90 wpid = waitpid(pid, &status, __WALL); in run_test()
91 if (wpid != pid) { in run_test()
110 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { in run_test()
116 wpid = waitpid(pid, &status, __WALL); in run_test()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_smi_events.h32 void kfd_smi_event_page_fault_start(struct kfd_node *node, pid_t pid,
35 void kfd_smi_event_page_fault_end(struct kfd_node *node, pid_t pid,
37 void kfd_smi_event_migration_start(struct kfd_node *node, pid_t pid,
42 void kfd_smi_event_migration_end(struct kfd_node *node, pid_t pid,
45 void kfd_smi_event_queue_eviction(struct kfd_node *node, pid_t pid,
47 void kfd_smi_event_queue_restore(struct kfd_node *node, pid_t pid);
49 void kfd_smi_event_unmap_from_gpu(struct kfd_node *node, pid_t pid,
/openbmc/linux/fs/proc/
H A Darray.c149 struct pid *pid, struct task_struct *p) in task_state() argument
440 struct pid *pid, struct task_struct *task) in proc_pid_status() argument
468 struct pid *pid, struct task_struct *task, int whole) in do_task_stat() argument
672 struct pid *pid, struct task_struct *task) in proc_tid_stat() argument
678 struct pid *pid, struct task_struct *task) in proc_tgid_stat() argument
684 struct pid *pid, struct task_struct *task) in proc_pid_statm() argument
719 static struct pid *
723 struct pid *pid = NULL; in get_children_pid() local
772 return pid; in get_children_pid()
790 struct pid *pid; in children_seq_next() local
[all …]
/openbmc/linux/drivers/android/
H A Dbinder.c2992 thread->pid, proc->pid); in binder_transaction()
2999 proc->pid, thread->pid, in binder_transaction()
3059 thread->pid, proc->pid); in binder_transaction()
3070 thread->pid, proc->pid); in binder_transaction()
3079 thread->pid, proc->pid); in binder_transaction()
3152 thread->pid, proc->pid); in binder_transaction()
3165 thread->pid, proc->pid); in binder_transaction()
3216 thread->pid, proc->pid); in binder_transaction()
3226 thread->pid, proc->pid); in binder_transaction()
3676 thread->pid, proc->pid); in binder_transaction()
[all …]
/openbmc/u-boot/drivers/gpio/
H A Dpm8916_gpio.c50 uint32_t pid; /* Peripheral ID on SPMI bus */ member
57 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_set_direction()
117 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_get_function()
139 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_get_value()
153 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_set_value()
173 priv->pid = dev_read_addr(dev); in pm8916_gpio_probe()
174 if (priv->pid == FDT_ADDR_T_NONE) in pm8916_gpio_probe()
178 reg = pmic_reg_read(dev->parent, priv->pid + REG_TYPE); in pm8916_gpio_probe()
258 priv->pid = devfdt_get_addr(dev); in pm8941_pwrkey_probe()
259 if (priv->pid == FDT_ADDR_T_NONE) in pm8941_pwrkey_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/msm/
H A Dmsm_gpu_trace.h12 TP_PROTO(pid_t pid, u32 ringid, u32 id, u32 nr_bos, u32 nr_cmds),
13 TP_ARGS(pid, ringid, id, nr_bos, nr_cmds),
15 __field(pid_t, pid)
22 __entry->pid = pid;
29 __entry->id, __entry->pid, __entry->ringid,
37 __field(pid_t, pid)
44 __entry->pid = pid_nr(submit->pid);
51 __entry->id, __entry->pid, __entry->ringid, __entry->seqno,
61 __field(pid_t, pid)
71 __entry->pid = pid_nr(submit->pid);
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/unfs3/unfs3/
H A D0001-daemon.c-Fix-race-window-for-writing-of-the-pid-file.patch4 Subject: [PATCH] daemon.c: Fix race window for writing of the pid file
6 The parent process should write the pid file such that the pid file
11 without having to add sleep calls to wait for the pid file be written
27 * write current pid to a file
30 +static void create_pid_file(int pid)
39 + sprintf(buf, "%i\n", pid);
47 + if (pid)
48 + create_pid_file(pid);
59 /* create pid file if wanted */
/openbmc/openbmc/poky/meta/recipes-devtools/distcc/files/
H A Ddistcc55 touch /var/run/$NAME.pid
56 chown distcc /var/run/$NAME.pid
63 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
74 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
81 rm -f /var/run/$NAME.pid >/dev/null 2>&1
91 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
95 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
99 rm -f /var/run/$NAME.pid >/dev/null 2>&1
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H A Dlarge_vm_fork_separation.c28 pid_t pid; in test() local
47 pid = fork(); in test()
48 if (pid == 0) { in test()
51 pid = getpid(); in test()
52 printf("child writing %p = %d\n", p, pid); in test()
53 *p = pid; in test()
75 FAIL_IF(waitpid(pid, &status, 0) == -1); in test()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Ddeny_namespace.c9 static int wait_for_pid(pid_t pid) in wait_for_pid() argument
14 ret = waitpid(pid, &status, 0); in wait_for_pid()
34 pid_t pid; in create_user_ns() local
36 pid = fork(); in create_user_ns()
37 if (pid < 0) in create_user_ns()
40 if (pid == 0) { in create_user_ns()
46 return wait_for_pid(pid); in create_user_ns()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_map_ops.c29 const volatile pid_t pid; variable
43 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_update()
56 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_delete()
69 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_push()
82 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_pop()
95 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_peek()
111 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_for_each_pass()
129 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_for_each_fail()
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dzt-ptrace.c75 if (ptrace(PTRACE_GETREGSET, pid, NT_ARM_ZA, &iov)) in get_za()
97 return ptrace(PTRACE_SETREGSET, pid, NT_ARM_ZA, &iov); in set_za()
100 static int get_zt(pid_t pid, char zt[ZT_SIG_REG_BYTES]) in get_zt() argument
106 return ptrace(PTRACE_GETREGSET, pid, NT_ARM_ZT, &iov); in get_zt()
258 pid_t pid; in do_parent() local
266 pid = wait(&status); in do_parent()
267 if (pid == -1) { in do_parent()
276 if (pid != child) in do_parent()
287 if (ptrace(PTRACE_GETSIGINFO, pid, NULL, &si)) { in do_parent()
302 si.si_pid == pid) in do_parent()
[all …]

12345678910>>...88