Home
last modified time | relevance | path

Searched refs:pid (Results 26 - 50 of 6074) sorted by relevance

12345678910>>...243

/test/xts/acts/kernel_lite/dyload_posix/
H A DExecApiTest.cpp39 pid_t pid = fork(); in HWTEST_F() local
40 ASSERT_TRUE(pid >= 0) << "======== Fork Error! ========="; in HWTEST_F()
41 if (pid == 0) { // child in HWTEST_F()
49 WaitProcExitedOK(pid); in HWTEST_F()
59 pid_t pid = fork(); in HWTEST_F() local
60 ASSERT_TRUE(pid >= 0) << "======== Fork Error! ========="; in HWTEST_F()
61 if (pid == 0) { // child in HWTEST_F()
71 WaitProcExitedOK(pid); in HWTEST_F()
84 pid_t pid = fork(); in HWTEST_F() local
85 ASSERT_TRUE(pid > in HWTEST_F()
108 pid_t pid = fork(); HWTEST_F() local
133 pid_t pid = fork(); HWTEST_F() local
[all...]
/third_party/ltp/include/
H A Dtst_sched.h21 static inline int sys_sched_setparam(pid_t pid, const struct sched_param *param) in sys_sched_setparam() argument
23 return tst_syscall(__NR_sched_setparam, pid, param); in sys_sched_setparam()
26 static inline int sys_sched_getparam(pid_t pid, struct sched_param *param) in sys_sched_getparam() argument
28 return tst_syscall(__NR_sched_getparam, pid, param); in sys_sched_getparam()
31 static inline int sys_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) in sys_sched_setscheduler() argument
33 return tst_syscall(__NR_sched_setscheduler, pid, policy, param); in sys_sched_setscheduler()
36 static inline int sys_sched_getscheduler(pid_t pid) in sys_sched_getscheduler() argument
38 return tst_syscall(__NR_sched_getscheduler, pid); in sys_sched_getscheduler()
41 static inline int libc_sched_setparam(pid_t pid, const struct sched_param *param) in libc_sched_setparam() argument
43 return TST_LIBC_SCHED_SCALL_(sched_setparam, pid, para in libc_sched_setparam()
46 libc_sched_getparam(pid_t pid, struct sched_param *param) libc_sched_getparam() argument
51 libc_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) libc_sched_setscheduler() argument
56 libc_sched_getscheduler(pid_t pid) libc_sched_getscheduler() argument
[all...]
/third_party/cups-filters/filter/foomatic-rip/
H A Dprocess.c37 pid_t pid; member
49 void add_process(const char *name, int pid, int isgroup) in add_process() argument
53 if (procs[i].pid == -1) { in add_process()
55 procs[i].pid = pid; in add_process()
63 int find_process(int pid) in find_process() argument
67 if (procs[i].pid == pid) in find_process()
76 procs[i].pid = -1; in clear_proc_list()
84 if (procs[i].pid in kill_all_processes()
99 pid_t pid; _start_process() local
202 wait_for_process(int pid) wait_for_process() argument
226 int pid = start_system_process(name, command, NULL, NULL); run_system_process() local
[all...]
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dfcntl_ext.c63 int pid = fork(); in open_0020() local
64 switch (pid) { in open_0020()
72 waitpid(pid, &status, WUNTRACED); in open_0020()
76 kill(pid, SIGCONT); in open_0020()
97 int pid = fork(); in open_0030() local
98 switch (pid) { in open_0030()
106 waitpid(pid, &status, WUNTRACED); in open_0030()
110 kill(pid, SIGCONT); in open_0030()
159 int pid = fork(); in openat_0020() local
160 switch (pid) { in openat_0020()
193 int pid = fork(); openat_0030() local
256 int pid = fork(); open64_0020() local
290 int pid = fork(); open64_0030() local
352 int pid = fork(); openat64_0020() local
386 int pid = fork(); openat64_0030() local
[all...]
/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/
H A Dht_affinity.c29 int set_affinity(pid_t pid, unsigned int len, unsigned long *mask_ptr)
30 pid - pid of the process whose affinity is desired to be set.
34 int get_affinity(pid_t pid, unsigned int len, unsigned long *mask_ptr)
35 pid - pid of the process whose affinity is being read.
43 #define sched_setaffinity(pid, cpusetsize, mask) syscall(__NR_sched_setaffinity, pid, cpusetsize, mask)
44 #define sched_getaffinity(pid, cpusetsize, mask) syscall(__NR_sched_getaffinity, pid, cpusetsiz
52 pid_t pid; HT_SetAffinity() local
129 get_porc_affinity(pid_t pid) get_porc_affinity() argument
151 pid_t pid; HT_GetAffinity() local
183 pid_t pid; HT_InheritAffinity() local
[all...]
/kernel/linux/linux-5.10/arch/um/os-Linux/
H A Dstart_up.c32 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local
38 kill(pid, SIGKILL); in ptrace_child()
40 kill(pid, SIGSTOP); in ptrace_child()
48 if (sc_result == pid) in ptrace_child()
95 int pid, n, status; in start_ptraced_child() local
99 pid = fork(); in start_ptraced_child()
100 if (pid == 0) in start_ptraced_child()
102 else if (pid < 0) in start_ptraced_child()
105 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in start_ptraced_child()
112 return pid; in start_ptraced_child()
121 stop_ptraced_child(int pid, int exitcode, int mustexit) stop_ptraced_child() argument
167 int pid, n, status, count=0; check_sysemu() local
261 int pid, syscall, n, status; check_ptrace() local
326 int pid; os_early_checks() local
[all...]
/kernel/linux/linux-6.6/arch/um/os-Linux/
H A Dstart_up.c32 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local
38 kill(pid, SIGKILL); in ptrace_child()
40 kill(pid, SIGSTOP); in ptrace_child()
48 if (sc_result == pid) in ptrace_child()
95 int pid, n, status; in start_ptraced_child() local
99 pid = fork(); in start_ptraced_child()
100 if (pid == 0) in start_ptraced_child()
102 else if (pid < 0) in start_ptraced_child()
105 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in start_ptraced_child()
112 return pid; in start_ptraced_child()
121 stop_ptraced_child(int pid, int exitcode, int mustexit) stop_ptraced_child() argument
167 int pid, n, status, count=0; check_sysemu() local
261 int pid, syscall, n, status; check_ptrace() local
358 int pid; os_early_checks() local
[all...]
/test/xts/hats/kernel/posix_interface/interface_gn/utils/
H A Dutils.cpp70 int CheckProcStatus(pid_t pid, int *code, int flag) in CheckProcStatus() argument
73 int rt = waitpid(pid, &status, flag); in CheckProcStatus()
81 } else if (rt != pid) { // waitpid return error in CheckProcStatus()
107 void AssertProcAlive(pid_t pid) in AssertProcAlive() argument
110 int procStat = CheckProcStatus(pid, &exitCode); in AssertProcAlive()
114 void ExpectProcAlive(pid_t pid) in ExpectProcAlive() argument
117 int procStat = CheckProcStatus(pid, &exitCode); in ExpectProcAlive()
121 void AssertProcExitedOK(pid_t pid) in AssertProcExitedOK() argument
125 int procStat = CheckProcStatus(pid, &exitCode); in AssertProcExitedOK()
130 void ExpectProcExitedOK(pid_t pid) in ExpectProcExitedOK() argument
139 WaitProcExitedOK(pid_t pid) WaitProcExitedOK() argument
148 ExpectProcKilled(pid_t pid, int signum) ExpectProcKilled() argument
157 AssertProcKilled(pid_t pid, int signum) AssertProcKilled() argument
166 WaitProcKilled(pid_t pid, int signum) WaitProcKilled() argument
177 int pid = fork(); StartElf() local
206 int pid = StartElf(fname, argv, envp); RunElf() local
243 pid_t pid = fork(); StartExecveError() local
278 pid_t pid = fork(); GetNonExistPid() local
[all...]
/kernel/linux/linux-5.10/drivers/staging/hungtask/
H A Dhungtask_user.c23 pid_t pid; member
37 static void htuser_show_task(int pid) in htuser_show_task() argument
41 p = pid_task(find_vpid(pid), PIDTYPE_PID); in htuser_show_task()
43 pr_err("can not find pid %d\n", pid); in htuser_show_task()
48 pr_info("process %d is frozen\n", pid); in htuser_show_task()
58 static void htuser_list_insert(int pid, int count) in htuser_list_insert() argument
66 userlist[userlist_count].pid = pid; in htuser_list_insert()
73 static int htuser_list_remove(int pid) in htuser_list_remove() argument
121 htuser_list_kick(int pid) htuser_list_kick() argument
193 htuser_list_store_on(char *tmp, size_t len, int pid) htuser_list_store_on() argument
227 int pid = current->tgid; htuser_list_store() local
[all...]
/kernel/linux/linux-6.6/drivers/staging/hungtask/
H A Dhungtask_user.c23 pid_t pid; member
37 static void htuser_show_task(int pid) in htuser_show_task() argument
41 p = pid_task(find_vpid(pid), PIDTYPE_PID); in htuser_show_task()
43 pr_err("can not find pid %d\n", pid); in htuser_show_task()
48 pr_info("process %d is frozen\n", pid); in htuser_show_task()
58 static void htuser_list_insert(int pid, int count) in htuser_list_insert() argument
66 userlist[userlist_count].pid = pid; in htuser_list_insert()
73 static int htuser_list_remove(int pid) in htuser_list_remove() argument
121 htuser_list_kick(int pid) htuser_list_kick() argument
193 htuser_list_store_on(char *tmp, size_t len, int pid) htuser_list_store_on() argument
227 int pid = current->tgid; htuser_list_store() local
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dwait4.c36 pid_t pid = fork(); in wait4_0100() local
37 if (pid > 0) { in wait4_0100()
41 pid_t wait4_for_pind = wait4(pid, &status, options, &ru); in wait4_0100()
42 if (wait4_for_pind != pid) { in wait4_0100()
43 t_error("%s wait4 get pid is %d are not want %d\n", __func__, wait4_for_pind, pid); in wait4_0100()
48 } else if (pid == 0) { in wait4_0100()
63 pid_t pid = fork(); in wait4_0200() local
64 if (pid > 0) { in wait4_0200()
68 pid_t wait4_for_pind = wait4(pid, in wait4_0200()
90 pid_t pid = fork(); wait4_time64_0100() local
[all...]
/third_party/curl/tests/
H A Dservers.pm116 my %serverpidfile; # all server pid file names, identified by server id
280 if($tryhandle =~ /^(\S+)\s+pid:\s+(\d+)\s+type:\s+(\w+)\s+([0-9A-F]+):\s+(.+)\r\r/) {
299 my $pid = $_[0];
300 if((not defined $pid) || $pid <= 0) {
304 my $rc = pidwait($pid, &WNOHANG);
305 return ($rc == $pid)?1:0;
385 # Ugly hack but ssh client and gnutls-serv don't support pid files
390 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
393 logmsg "startnew: failed to write fake $pidfile with pid
[all...]
/test/testfwk/arkxtest/uitest/test/
H A Dipc_transactor_test.cpp42 static string WaitPidAndReadPipe(pid_t pid, PipeFds fds) in WaitPidAndReadPipe() argument
48 waitpid(pid, &status, 0); in WaitPidAndReadPipe()
86 auto pid = fork(); in TEST_P() local
87 ASSERT_NE(pid, -1); in TEST_P()
88 if (pid == 0) { in TEST_P()
97 pid = fork(); in TEST_P()
98 ASSERT_NE(pid, -1); in TEST_P()
99 if (pid == 0) { in TEST_P()
112 auto clientOutput = WaitPidAndReadPipe(pid, fds); in TEST_P()
124 auto pid in TEST() local
179 auto pid = fork(); TEST() local
232 auto pid = fork(); TEST() local
279 auto pid = fork(); TEST() local
[all...]
/kernel/linux/linux-5.10/tools/perf/scripts/perl/
H A Drw-by-pid.pl75 printf("read counts by pid:\n\n");
77 printf("%6s %20s %10s %10s %10s\n", "pid", "comm",
82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
84 my $comm = $reads{$pid}{comm} || "";
85 my $total_reads = $reads{$pid}{total_reads} || 0;
86 my $bytes_requested = $reads{$pid}{bytes_requested} || 0;
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
89 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm,
93 printf("\nfailed reads by pid:\n\n");
95 printf("%6s %20s %6s %10s\n", "pid", "com
[all...]
/kernel/linux/linux-6.6/tools/perf/scripts/perl/
H A Drw-by-pid.pl75 printf("read counts by pid:\n\n");
77 printf("%6s %20s %10s %10s %10s\n", "pid", "comm",
82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
84 my $comm = $reads{$pid}{comm} || "";
85 my $total_reads = $reads{$pid}{total_reads} || 0;
86 my $bytes_requested = $reads{$pid}{bytes_requested} || 0;
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
89 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm,
93 printf("\nfailed reads by pid:\n\n");
95 printf("%6s %20s %6s %10s\n", "pid", "com
[all...]
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_027.cpp38 pid_t pid; in ProcessTest() local
41 pid = fork(); in ProcessTest()
42 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessTest()
44 if (pid == 0) { in ProcessTest()
49 ret = waitpid(pid, &status, WNOHANG); in ProcessTest()
52 ret = waitpid(pid, &status, 0); in ProcessTest()
53 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in ProcessTest()
66 pid_t pid in TestCase() local
[all...]
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_055.cpp38 pid_t pid = fork(); in Child1() local
39 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in Child1()
40 if (pid == 0) { in Child1()
45 ret = waitid(P_PID, pid, &info, WEXITED); in Child1()
50 ICUNIT_ASSERT_EQUAL(info.si_pid, pid, info.si_pid); in Child1()
58 pid_t pid; in TestCase() local
61 pid = fork(); in TestCase()
63 ICUNIT_GOTO_WITHIN_EQUAL(pid, in TestCase()
[all...]
/third_party/ltp/testcases/kernel/syscalls/waitpid/
H A Dwaitpid09.c8 * waitpid(pid, WNOHANG) should return 0 if there is a running child
10 * waitpid(pid, WNOHANG) should return the pid of the child if
28 static void cleanup_pid(pid_t pid) in cleanup_pid() argument
30 if (pid > 0) { in cleanup_pid()
31 kill(pid, SIGKILL); in cleanup_pid()
32 waitpid(pid, NULL, 0); in cleanup_pid()
38 pid_t pid, ret; in case0() local
41 pid = SAFE_FORK(); in case0()
42 if (pid in case0()
71 pid_t pid, ret; case1() local
[all...]
/test/xts/acts/commonlibrary/thirdparty/ubsan/entry/src/main/cpp/
H A Dnapi_init.cpp42 int pid = fork(); in MisAlign() local
44 switch (pid) { in MisAlign()
57 waitpid(pid, &status, WUNTRACED); in MisAlign()
59 kill(pid, SIGCONT); in MisAlign()
79 int pid = fork(); in Bounds() local
81 switch (pid) { in Bounds()
93 waitpid(pid, &status, WUNTRACED); in Bounds()
95 kill(pid, SIGCONT); in Bounds()
116 int pid = fork(); in IntegerDivBy0() local
118 switch (pid) { in IntegerDivBy0()
159 int pid = fork(); EnumSan() local
196 int pid = fork(); FloatCastOverflow() local
233 int pid = fork(); SignedIntegerOverflow() local
290 int pid = fork(); VptrCheck() local
328 int pid = fork(); NonnullAttribute() local
371 int pid = fork(); NullSanitize() local
426 int pid = fork(); PointerOverflow() local
466 int pid = fork(); ReturnNonnullAttribute() local
505 int pid = fork(); ShiftBase() local
542 int pid = fork(); ShiftExponent() local
577 int pid = fork(); UndefinedBool() local
619 int pid = fork(); VlaBound() local
[all...]
/kernel/liteos_a/testsuites/unittest/security/capability/smoke/
H A Dcap_test_001.cpp82 capheader.pid = INVAILD_PID; in TestChild()
86 capheader.pid = 3; in TestChild()
87 kill(capheader.pid, 0); in TestChild()
94 capheader.pid = 4; in TestChild()
95 kill(capheader.pid, 0); in TestChild()
102 capheader.pid = 5; in TestChild()
103 kill(capheader.pid, 0); in TestChild()
110 capheader.pid = 6; in TestChild()
111 kill(capheader.pid, 0); in TestChild()
117 capheader.pid in TestChild()
119 int pid = fork(); TestChild() local
161 pid_t pid = fork(); TestCase() local
[all...]
/third_party/rust/crates/nix/src/sys/ptrace/
H A Dlinux.rs193 pid: Pid, in ptrace_peek()
199 libc::ptrace(request as RequestType, libc::pid_t::from(pid), addr, data) in ptrace_peek()
218 pub fn getregs(pid: Pid) -> Result<user_regs_struct> { in getregs()
219 ptrace_get_data::<user_regs_struct>(Request::PTRACE_GETREGS, pid) in getregs()
233 pub fn setregs(pid: Pid, regs: user_regs_struct) -> Result<()> { in setregs()
237 libc::pid_t::from(pid), in setregs()
249 fn ptrace_get_data<T>(request: Request, pid: Pid) -> Result<T> { in ptrace_get_data()
254 libc::pid_t::from(pid), in ptrace_get_data()
265 pid: Pid, in ptrace_other()
271 libc::pid_t::from(pid), in ptrace_other()
[all...]
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
H A DIt_posix_queue_206.cpp37 int pid; in Child() local
68 pid = fork(); in Child()
69 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, Valid range value of pid. in Child()
71 if (pid == 0) { in Child()
78 ret = waitpid(pid, &status, 0); in Child()
79 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in Child()
87 pid = fork(); in Child()
88 ICUNIT_GOTO_WITHIN_EQUAL(pid, in Child()
120 pid_t pid = fork(); Testcase() local
[all...]
/test/xts/acts/kernel_lite/utils/
H A Dutils.h45 * input: pid -- target pid
49 * -2 -- waitpid return value error(not -1 and not pid)
56 int CheckProcStatus(pid_t pid, int* code, int flag = WNOHANG);
59 #define AssertProcAlive(pid) do { \
61 int procStat = CheckProcStatus(pid, &exitCode); \
64 #define ExpectProcAlive(pid) do { \
66 int procStat = CheckProcStatus(pid, &exitCode); \
71 #define AssertProcExitedOK(pid) do { \
73 int procStat = CheckProcStatus(pid,
[all...]
/kernel/linux/linux-5.10/fs/f2fs/
H A Dtrace.c27 last_io.pid, "----------------", in __print_last_io()
35 static int __file_type(struct inode *inode, pid_t pid) in __file_type() argument
47 else if (pid) in __file_type()
56 pid_t pid = task_pid_nr(current); in f2fs_trace_pid() local
59 set_page_private(page, (unsigned long)pid); in f2fs_trace_pid()
66 p = radix_tree_lookup(&pids, pid); in f2fs_trace_pid()
70 radix_tree_delete(&pids, pid); in f2fs_trace_pid()
72 if (radix_tree_insert(&pids, pid, current)) { in f2fs_trace_pid()
81 pid, current->comm); in f2fs_trace_pid()
90 pid_t pid; in f2fs_trace_ios() local
152 pid_t pid[PIDVEC_SIZE]; f2fs_destroy_trace_ios() local
[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...]

Completed in 9 milliseconds

12345678910>>...243