Home
last modified time | relevance | path

Searched refs:pid (Results 51 - 75 of 6098) sorted by relevance

12345678910>>...244

/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_039.cpp37 pid_t pid, pid1; in GroupProcess() local
41 pid = fork(); in GroupProcess()
42 if (pid == 0) { in GroupProcess()
44 } else if (pid > 0) { in GroupProcess()
45 ret = waitpid(pid, &status, 0); in GroupProcess()
61 pid_t pid, pid1; in TestCase() local
63 pid = fork(); in TestCase()
64 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equa in TestCase()
[all...]
H A Dprocess_test_004.cpp37 int pid; in Testcase() local
43 pid = ret; in Testcase()
45 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
56 pid = ret; in Testcase()
59 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
69 pid = ret; in Testcase()
72 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
83 pid = ret; in Testcase()
86 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
95 pid in Testcase()
[all...]
H A Dprocess_test_020.cpp63 pid_t pid, pid1, pid2; in ProcessTest() local
67 pid = fork(); in ProcessTest()
68 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessTest()
70 g_backPid = pid; in ProcessTest()
72 if (pid == 0) { in ProcessTest()
81 ICUNIT_GOTO_WITHIN_EQUAL(pid1, 0, 100000, pid, EXIT); // 100000, assert pid1 equal to this. in ProcessTest()
97 if (ret == pid) { in ProcessTest()
119 pid_t pid in TestCase() local
[all...]
H A Dprocess_test_017.cpp43 printf("%s 22222 pid : %d\n", __FUNCTION__, ret); in ThreadFunc()
58 pid_t pid; in ProcessTest() local
65 pid = fork(); in ProcessTest()
66 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessTest()
67 if (pid == 0) { in ProcessTest()
72 g_waitPid = pid; in ProcessTest()
78 ret = waitpid(pid, &status, 0); in ProcessTest()
79 printf("%s 11111 pid in ProcessTest()
96 pid_t pid = fork(); TestCase() local
[all...]
H A Dprocess_test_009.cpp43 int pid; in ProcessTest001() local
56 pid = fork(); in ProcessTest001()
57 if (pid == 0) { in ProcessTest001()
62 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, 100000, pid); // 100000, assert that function Result is equal to this. in ProcessTest001()
70 ret = waitpid(pid, &status, 0); in ProcessTest001()
72 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in ProcessTest001()
83 int pid; in Testcase() local
94 pid = ret; in Testcase()
97 ICUNIT_ASSERT_EQUAL(ret, pid, re in Testcase()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/process/
H A Dwaitpid.c31 pid_t pid = fork(); in waitpid_0100() local
32 if (pid > 0) { in waitpid_0100()
35 pid_t waitpid_for_pind = waitpid(pid, &status, options); in waitpid_0100()
36 if (waitpid_for_pind != pid) { in waitpid_0100()
37 t_error("%s waitpid get pid is %d are not want %d\n", __func__, waitpid_for_pind, pid); in waitpid_0100()
42 } else if (pid == 0) { in waitpid_0100()
57 pid_t pid = fork(); in waitpid_0200() local
58 if (pid > 0) { in waitpid_0200()
61 pid_t waitpid_for_pind = waitpid(pid, in waitpid_0200()
[all...]
/test/xts/hats/kernel/syscalls/process/processid/
H A DProcessApiTest.cpp80 int pid = -1; in HWTEST_F() local
98 pid = clone(CloneTest, &stack[STACK_SIZE - 1], cloneFlag[i].flag, nullptr); in HWTEST_F()
99 EXPECT_TRUE(pid > 0); in HWTEST_F()
100 waitpid(pid, nullptr, 0); in HWTEST_F()
117 pid_t pid = clone(CloneTest, &stack[STACK_SIZE - 1], -1, nullptr); in HWTEST_F() local
118 EXPECT_EQ(pid, -1); in HWTEST_F()
133 pid_t pid = fork(); in HWTEST_F() local
134 if (pid == 0) { in HWTEST_F()
143 waitpid(pid, nullptr, 0); in HWTEST_F()
185 pid_t pid in HWTEST_F() local
211 pid_t pid = fork(); HWTEST_F() local
233 pid_t pid; HWTEST_F() local
254 pid_t pid = getpid(); HWTEST_F() local
282 pid_t pid = getpid(); HWTEST_F() local
[all...]
/kernel/linux/linux-5.10/arch/um/include/shared/
H A Dregisters.h12 extern int save_i387_registers(int pid, unsigned long *fp_regs);
13 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
14 extern int save_fp_registers(int pid, unsigned long *fp_regs);
15 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
16 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
18 extern int save_registers(int pid, struct uml_pt_regs *regs);
19 extern int restore_pid_registers(int pid, struct uml_pt_regs *regs);
20 extern int init_pid_registers(int pid);
23 extern int get_fp_registers(int pid, unsigne
[all...]
/kernel/linux/linux-6.6/arch/um/include/shared/
H A Dregisters.h11 extern int save_i387_registers(int pid, unsigned long *fp_regs);
12 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
13 extern int save_fp_registers(int pid, unsigned long *fp_regs);
14 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
15 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
16 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int save_registers(int pid, struct uml_pt_regs *regs);
18 extern int restore_pid_registers(int pid, struct uml_pt_regs *regs);
19 extern int init_pid_registers(int pid);
21 extern int get_fp_registers(int pid, unsigne
[all...]
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_037.cpp69 pid_t pid, pid1; in ProcessGroup() local
76 pid = fork(); in ProcessGroup()
77 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessGroup()
79 if (pid == 0) { in ProcessGroup()
88 ICUNIT_GOTO_NOT_EQUAL(pid1, pid, pid1, EXIT); in ProcessGroup()
91 Child2(currGid, pid); in ProcessGroup()
97 ret = setpgid(pid1, pid); in ProcessGroup()
100 ret = waitpid(pid, in ProcessGroup()
120 pid_t pid, pid1; TestCase() local
[all...]
H A Dprocess_test_040.cpp37 pid_t pid, pid1; in GroupProcess() local
45 pid = fork(); in GroupProcess()
46 if (pid == 0) { in GroupProcess()
49 } else if (pid < 0) { in GroupProcess()
59 testPid = pid; in GroupProcess()
84 pid_t pid, pid1; in TestCase() local
86 pid = fork(); in TestCase()
87 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equa in TestCase()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dcgroup_util.c259 int pid = strtol(ptr, &ptr, 10); in cg_killall() local
261 if (pid == 0) in cg_killall()
267 if (kill(pid, SIGKILL)) in cg_killall()
292 int cg_enter(const char *cgroup, int pid) in cg_enter() argument
296 snprintf(pidbuf, sizeof(pidbuf), "%d", pid); in cg_enter()
314 int pid, retcode; in cg_run() local
316 pid = fork(); in cg_run()
317 if (pid < 0) { in cg_run()
318 return pid; in cg_run()
319 } else if (pid in cg_run()
338 pid_t pid; clone_into_cgroup() local
363 clone_reap(pid_t pid, int options) clone_reap() argument
413 pid_t pid; clone_into_cgroup_run_nowait() local
431 int pid; cg_run_nowait() local
511 set_oom_adj_score(int pid, int score) set_oom_adj_score() argument
532 proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size) proc_read_text() argument
545 proc_read_strstr(int pid, bool thread, const char *item, const char *needle) proc_read_strstr() argument
558 pid_t pid; clone_into_cgroup_run_wait() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dcgroup_util.c270 int pid = strtol(ptr, &ptr, 10); in cg_killall() local
272 if (pid == 0) in cg_killall()
278 if (kill(pid, SIGKILL)) in cg_killall()
305 int cg_enter(const char *cgroup, int pid) in cg_enter() argument
309 snprintf(pidbuf, sizeof(pidbuf), "%d", pid); in cg_enter()
327 int pid, retcode; in cg_run() local
329 pid = fork(); in cg_run()
330 if (pid < 0) { in cg_run()
331 return pid; in cg_run()
332 } else if (pid in cg_run()
351 pid_t pid; clone_into_cgroup() local
376 clone_reap(pid_t pid, int options) clone_reap() argument
426 pid_t pid; clone_into_cgroup_run_nowait() local
444 int pid; cg_run_nowait() local
524 set_oom_adj_score(int pid, int score) set_oom_adj_score() argument
557 proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size) proc_read_text() argument
572 proc_read_strstr(int pid, bool thread, const char *item, const char *needle) proc_read_strstr() argument
585 pid_t pid; clone_into_cgroup_run_wait() local
[all...]
/kernel/linux/linux-5.10/tools/bpf/runqslower/
H A Drunqslower.bpf.c28 static int trace_enqueue(u32 tgid, u32 pid) in trace_enqueue() argument
32 if (!pid || (targ_pid && targ_pid != pid)) in trace_enqueue()
36 bpf_map_update_elem(&start, &pid, &ts, 0); in trace_enqueue()
46 return trace_enqueue(p->tgid, p->pid); in handle__sched_wakeup()
55 return trace_enqueue(p->tgid, p->pid); in handle__sched_wakeup_new()
69 u32 pid; in handle__sched_switch() local
73 trace_enqueue(prev->tgid, prev->pid); in handle__sched_switch()
75 pid = next->pid; in handle__sched_switch()
[all...]
/test/xts/acts/kernel_lite/utils/
H A Dutils.cpp71 int CheckProcStatus(pid_t pid, int *code, int flag) in CheckProcStatus() argument
74 int rt = waitpid(pid, &status, flag); in CheckProcStatus()
81 } else if (rt != pid) { // waitpid return error in CheckProcStatus()
109 int pid = fork(); in StartElf() local
110 if (pid == -1) { in StartElf()
113 } else if (pid == 0) { // child in StartElf()
123 return pid; in StartElf()
137 int pid = StartElf(fname, argv, envp); in RunElf() local
138 if (pid == -1) { // fork error in RunElf()
151 if (kill(pid, SIGKIL in RunElf()
171 pid_t pid = fork(); StartExecveError() local
202 pid_t pid = fork(); GetNonExistPid() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/ptrace/
H A Dget_syscall_info.c17 kill_tracee(pid_t pid) in kill_tracee() argument
19 if (!pid) in kill_tracee()
24 int rc = kill(pid, SIGKILL); in kill_tracee()
31 sys_ptrace(int request, pid_t pid, unsigned long addr, unsigned long data) in sys_ptrace() argument
33 return syscall(__NR_ptrace, request, pid, addr, data); in sys_ptrace()
38 kill_tracee(pid); \
77 pid_t pid = fork(); in TEST() local
79 ASSERT_LE(0, pid) { in TEST()
83 if (pid == 0) { in TEST()
84 /* get the pid befor in TEST()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/ptrace/
H A Dget_syscall_info.c17 kill_tracee(pid_t pid) in kill_tracee() argument
19 if (!pid) in kill_tracee()
24 int rc = kill(pid, SIGKILL); in kill_tracee()
31 sys_ptrace(int request, pid_t pid, unsigned long addr, unsigned long data) in sys_ptrace() argument
33 return syscall(__NR_ptrace, request, pid, addr, data); in sys_ptrace()
38 kill_tracee(pid); \
77 pid_t pid = fork(); in TEST() local
79 ASSERT_LE(0, pid) { in TEST()
83 if (pid == 0) { in TEST()
84 /* get the pid befor in TEST()
[all...]
/test/xts/acts/kernel_lite/ipc_posix/signal/
H A DSignalTest.cpp90 pid_t pid = fork(); in HWTEST_P() local
91 ASSERT_TRUE(pid >= 0) << "======== Fork Error! ========="; in HWTEST_P()
92 if (pid == 0) { // child in HWTEST_P()
103 WaitProcExitedOK(pid); in HWTEST_P()
116 pid_t pid = fork(); in HWTEST_F() local
117 ASSERT_TRUE(pid >= 0) << "======== Fork Error! ========="; in HWTEST_F()
118 if (pid > 0) { // parent in HWTEST_F()
122 kill(pid, SIGKILL); in HWTEST_F()
124 WaitProcKilled(pid, SIGKILL); in HWTEST_F()
145 pid_t pid in HWTEST_F() local
187 pid_t pid = fork(); HWTEST_F() local
239 pid_t pid = fork(); HWTEST_F() local
270 pid_t pid = fork(); HWTEST_F() local
310 pid_t pid = fork(); HWTEST_F() local
346 pid_t pid = fork(); HWTEST_F() local
403 pid_t pid = fork(); HWTEST_F() local
441 pid_t pid = fork(); HWTEST_F() local
506 pid_t pid = fork(); HWTEST_F() local
553 pid_t pid = fork(); HWTEST_F() local
591 pid_t pid = fork(); HWTEST_F() local
646 pid_t pid = fork(); HWTEST_F() local
692 pid_t pid = fork(); HWTEST_F() local
774 pid_t pid = fork(); HWTEST_F() local
835 pid_t pid = fork(); HWTEST_F() local
1006 pid_t pid = fork(); HWTEST_F() local
1042 pid_t pid = fork(); HWTEST_F() local
1070 pid_t pid = fork(); HWTEST_F() local
1100 pid_t pid = fork(); HWTEST_F() local
1143 pid_t pid = fork(); HWTEST_F() local
1228 pid_t pid = fork(); HWTEST_F() local
1721 pid_t pid = fork(); HWTEST_F() local
1745 pid_t pid = fork(); HWTEST_F() local
1768 pid_t pid = fork(); HWTEST_F() local
[all...]
/test/xts/acts/kernel_lite/mem_posix/src/
H A DMprotectApiTest.cpp55 pid_t pid = fork(); in HWTEST_F() local
56 EXPECT_TRUE(pid >= 0) << "Fork Error"; in HWTEST_F()
57 if (pid == 0) { in HWTEST_F()
65 WaitProcExitedOK(pid); in HWTEST_F()
88 pid_t pid = fork(); in HWTEST_F() local
89 EXPECT_TRUE(pid >= 0) << "Fork Error"; in HWTEST_F()
90 if (pid == 0) { in HWTEST_F()
98 WaitProcExitedOK(pid); in HWTEST_F()
127 pid_t pid = fork(); in HWTEST_F() local
128 EXPECT_TRUE(pid > in HWTEST_F()
158 pid_t pid = fork(); HWTEST_F() local
197 pid_t pid = fork(); HWTEST_F() local
238 pid_t pid = fork(); HWTEST_F() local
288 pid_t pid = fork(); HWTEST_F() local
344 pid_t pid = fork(); HWTEST_F() local
387 pid_t pid = fork(); HWTEST_F() local
432 pid_t pid = fork(); HWTEST_F() local
[all...]
/third_party/ltp/tools/genload/
H A Dstress.c90 int i, pid, children = 0, retval = 0; in main() local
203 switch (pid = fork()) { in main()
213 dbg(stdout, "--> hogcpu dispatcher forked (%i)\n", pid); in main()
221 switch (pid = fork()) { in main()
231 dbg(stdout, "--> hogio dispatcher forked (%i)\n", pid); in main()
241 switch (pid = fork()) { in main()
251 dbg(stdout, "--> hogvm dispatcher forked (%i)\n", pid); in main()
260 switch (pid = fork()) { in main()
272 dbg(stdout, "--> hoghdd dispatcher forked (%i)\n", pid); in main()
284 if ((pid in main()
469 int pid, retval = 0; hogcpu() local
545 int pid, retval = 0; hogio() local
620 int pid, retval = 0; hogvm() local
742 int fd, pid, retval = 0; hoghdd() local
[all...]
H A Dgenload.c90 int i, pid, children = 0, retval = 0; in main() local
203 switch (pid = fork()) { in main()
213 dbg(stdout, "--> hogcpu dispatcher forked (%i)\n", pid); in main()
221 switch (pid = fork()) { in main()
231 dbg(stdout, "--> hogio dispatcher forked (%i)\n", pid); in main()
241 switch (pid = fork()) { in main()
251 dbg(stdout, "--> hogvm dispatcher forked (%i)\n", pid); in main()
260 switch (pid = fork()) { in main()
272 dbg(stdout, "--> hoghdd dispatcher forked (%i)\n", pid); in main()
284 if ((pid in main()
469 int pid, retval = 0; hogcpu() local
545 int pid, retval = 0; hogio() local
620 int pid, retval = 0; hogvm() local
742 int fd, pid, retval = 0; hoghdd() local
[all...]
/kernel/liteos_a/testsuites/unittest/basic/exc/smoke/
H A Dit_test_exc_001.cpp38 pid_t pid = fork(); in TestCase() local
39 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, INVALID_PROCESS_ID, pid); in TestCase()
40 if (pid == 0) { in TestCase()
45 ret = waitpid(pid, &status, 0); in TestCase()
46 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
54 pid = fork(); in TestCase()
55 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, INVALID_PROCESS_ID, pid); in TestCase()
56 if (pid in TestCase()
[all...]
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dstdio.c115 int pid = fork(); in stdio_dynamic_chk_003() local
116 switch (pid) { in stdio_dynamic_chk_003()
124 waitpid(pid, &status, WUNTRACED); in stdio_dynamic_chk_003()
128 kill(pid, SIGCONT); in stdio_dynamic_chk_003()
154 int pid = fork(); in stdio_dynamic_chk_004() local
155 switch (pid) { in stdio_dynamic_chk_004()
163 waitpid(pid, &status, WUNTRACED); in stdio_dynamic_chk_004()
167 kill(pid, SIGCONT); in stdio_dynamic_chk_004()
242 int pid = fork(); in stdio_dynamic_chk_007() local
243 switch (pid) { in stdio_dynamic_chk_007()
308 int pid = fork(); stdio_dynamic_chk_010() local
345 int pid = fork(); stdio_dynamic_chk_011() local
401 int pid = fork(); stdio_dynamic_chk_012() local
433 int pid = fork(); stdio_dynamic_chk_013() local
[all...]
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/
H A Dpthread_test_005.cpp40 int pid; in threadFunc() local
42 pid = fork(); in threadFunc()
43 if (pid == 0) { in threadFunc()
49 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, The pid will never exceed 100000. in threadFunc()
56 (void)waitpid(pid, &status, 0); in threadFunc()
64 int pid; in Testcase() local
77 pid = ret; in Testcase()
82 ICUNIT_ASSERT_EQUAL(ret, pid, re in Testcase()
[all...]
/kernel/linux/linux-5.10/drivers/media/common/b2c2/
H A Dflexcop-hw-filter.c4 * flexcop-hw-filter.c - pid and mac address filtering and control functions
47 u16 pid, u16 mask) in flexcop_pid_group_filter()
51 v30c.pid_filter_30c_ext_ind_0_7.Group_PID = pid; in flexcop_pid_group_filter()
68 vpid.vregname.field = onoff ? pid : 0x1fff; \
75 u16 pid, int onoff) in flexcop_pid_Stream1_PID_ctrl()
82 u16 pid, int onoff) in flexcop_pid_Stream2_PID_ctrl()
89 u16 pid, int onoff) in flexcop_pid_PCR_PID_ctrl()
95 u16 pid, int onoff) in flexcop_pid_PMT_PID_ctrl()
101 u16 pid, int onoff) in flexcop_pid_EMM_PID_ctrl()
107 u16 pid, in in flexcop_pid_ECM_PID_ctrl()
46 flexcop_pid_group_filter(struct flexcop_device *fc, u16 pid, u16 mask) flexcop_pid_group_filter() argument
74 flexcop_pid_Stream1_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_Stream1_PID_ctrl() argument
81 flexcop_pid_Stream2_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_Stream2_PID_ctrl() argument
88 flexcop_pid_PCR_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_PCR_PID_ctrl() argument
94 flexcop_pid_PMT_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_PMT_PID_ctrl() argument
100 flexcop_pid_EMM_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_EMM_PID_ctrl() argument
106 flexcop_pid_ECM_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff) flexcop_pid_ECM_PID_ctrl() argument
112 flexcop_pid_control(struct flexcop_device *fc, int index, u16 pid, int onoff) flexcop_pid_control() argument
[all...]

Completed in 13 milliseconds

12345678910>>...244