Home
last modified time | relevance | path

Searched refs:pid (Results 776 - 800 of 4939) sorted by relevance

1...<<31323334353637383940>>...198

/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/
H A Dcpu_event_pinned_vs_ebb_test.c44 pid_t pid; in cpu_event_pinned_vs_ebb() local
54 pid = fork(); in cpu_event_pinned_vs_ebb()
55 if (pid == 0) { in cpu_event_pinned_vs_ebb()
63 kill_child_and_wait(pid); in cpu_event_pinned_vs_ebb()
77 FAIL_IF(wait_for_child(pid) != 2); in cpu_event_pinned_vs_ebb()
/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/smoke/
H A DIt_extend_cpup_002.c80 INT32 pid; in Testcase() local
84 pid = LOS_Fork(0, "TestCpupTsk", TaskF01, LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE); in Testcase()
85 if (pid < 0) { in Testcase()
105 ret = LOS_Wait(pid, NULL, 0, NULL); in Testcase()
106 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
/kernel/liteos_a/testsuites/unittest/extended/signal/full/
H A Dsignal_test_040.cpp45 int pid = 0; in TestCase() local
63 pid = fork(); in TestCase()
64 if (pid == 0) { in TestCase()
82 kill(pid, SIGHUP); in TestCase()
84 kill(pid, SIGUSR1); in TestCase()
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/
H A DIt_ipc_pipe_004.cpp46 pid_t pid = fork(); in TestCase() local
47 if (pid == -1) { in TestCase()
50 } else if (pid == 0) { in TestCase()
73 ret = waitpid(pid, &status, 0); in TestCase()
74 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIO_test_pselect_002.cpp50 pid_t pid; in testcase() local
86 pid = fork(); in testcase()
87 if (pid == 0) { in testcase()
103 retval = kill(pid, SIGALRM); in testcase()
106 retval = kill(pid, SIGUSR1); in testcase()
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/
H A Dpthread_test_020.cpp84 int ret, pid, status; in TestCase() local
86 pid = fork(); in TestCase()
87 if (pid == 0) { in TestCase()
93 } else if (pid > 0) { in TestCase()
94 waitpid(pid, &status, 0); in TestCase()
H A Dpthread_test_026.cpp85 int ret, pid, status; in TestCase() local
87 pid = fork(); in TestCase()
88 if (pid == 0) { in TestCase()
94 } else if (pid > 0) { in TestCase()
95 waitpid(pid, &status, 0); in TestCase()
/third_party/libuv/test/
H A Dtest-pipe-close-stdout-read-stdin.c57 int pid; in TEST_IMPL() local
67 pid = -1; in TEST_IMPL()
69 pid = fork(); in TEST_IMPL()
72 if (pid == 0) { in TEST_IMPL()
110 waitpid(pid, &status, 0); in TEST_IMPL()
/third_party/ltp/testcases/kernel/controllers/cgroup/
H A Dcgroup_core02.c55 pid_t pid; in test_lesser_ns_open() local
66 pid = ltp_clone(CLONE_NEWCGROUP | CLONE_FILES | CLONE_VM | SIGCHLD, in test_lesser_ns_open()
68 if (pid < 0) { in test_lesser_ns_open()
69 tst_res(TFAIL, "unexpected negative pid %d", pid); in test_lesser_ns_open()
73 SAFE_WAITPID(pid, &status, 0); in test_lesser_ns_open()
/third_party/musl/libc-test/src/regression/
H A Dpthread_exit-dtor.c43 int r, arg=0, pid; in main() local
48 pid = fork(); in main()
49 switch (pid) { in main()
57 if (waitpid(pid, &r, 0) != pid) { in main()
/third_party/libinput/test/
H A Dtest_quirks_files.py64 pid = section.get("MatchProduct")
65 if pid is not None:
67 "0x[0-9A-F]{4}", pid
68 ), f"{quirksfile}: {name}: {pid} must be uppercase hex (0xAB12)"
80 pid = int(section.get("MatchProduct", "0x0"), 16)
82 pid not in logitech_receivers
/third_party/ltp/testcases/kernel/ipc/semaphore/
H A Dsem01.c109 pid_t pid; in main() local
137 if ((pid = fork()) < 0) { in main()
141 if (pid) { in main()
143 srand(pid); in main()
145 waitpid(pid, &chstat, 0); in main()
/third_party/ltp/testcases/lib/
H A Dtst_ns_ifmove.c58 int intf_index, pid, rtnetlink_socket; in main() local
66 pid = atoi(argv[2]); in main()
81 RTA_LENGTH(sizeof(pid)); in main()
82 memcpy(RTA_DATA(rta), &pid, sizeof(pid)); in main() local
/third_party/ltp/testcases/kernel/syscalls/pipe2/
H A Dpipe2_04.c25 pid_t pid; in test_pipe2() local
43 pid = SAFE_FORK(); in test_pipe2()
44 if (!pid) { in test_pipe2()
49 if (TST_PROCESS_STATE_WAIT(pid, 'S', 1000) < 0) in test_pipe2()
54 SAFE_KILL(pid, SIGKILL); in test_pipe2()
/third_party/ltp/testcases/kernel/syscalls/setpriority/
H A Dsetpriority01.c22 static int pid, uid, user_added; variable
28 {PRIO_PROCESS, &pid},
29 {PRIO_PGRP, &pid},
89 pid = SAFE_FORK(); in verify_setpriority()
90 if (pid == 0) { in verify_setpriority()
/third_party/ltp/testcases/kernel/syscalls/ipc/msgsnd/
H A Dmsgsnd05.c58 pid_t pid; in do_test() local
66 pid = SAFE_FORK(); in do_test()
67 if (!pid) { in do_test()
73 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in do_test()
74 SAFE_KILL(pid, SIGHUP); in do_test()
/third_party/ltp/testcases/kernel/uevents/
H A Duevent.h152 static inline void wait_for_pid(int pid) in wait_for_pid() argument
158 ret = waitpid(pid, &status, WNOHANG); in wait_for_pid()
162 if (ret == pid) { in wait_for_pid()
169 SAFE_KILL(pid, SIGKILL); in wait_for_pid()
171 SAFE_WAITPID(pid, NULL, 0); in wait_for_pid()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_send/
H A D5-2.c54 int pid; in main() local
78 if ((pid = fork()) == 0) { in main()
109 kill(pid, SIGABRT); //signal child in main()
116 kill(pid, SIGKILL); //kill child if not gone in main()
124 kill(pid, SIGKILL); //kill child if not gone in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/
H A D1-1.c72 pid_t pid; in main() local
73 pid = fork(); in main()
75 if (pid == 0) { in main()
121 kill(pid, SIGUSR2); in main()
129 kill(pid, SIGUSR1); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/
H A D5-1.c57 int pid; in main() local
73 if ((pid = fork()) == 0) { in main()
114 kill(pid, SIGKILL); //kill child in main()
121 kill(pid, SIGKILL); //kill child in main()
132 kill(pid, SIGKILL); //kill child in main()
/third_party/musl/libc-test/src/functional/
H A Datexit_dlclose.c84 pid_t pid, w; in main() local
88 pid = fork(); in main()
89 if (pid == 0) { // child process in main()
91 } else if (pid > 0) { // parent process in main()
92 w = waitpid(pid, &wstatus, 0); in main()
/third_party/pulseaudio/src/modules/gsettings/
H A Dmodule-gsettings.c47 u->pid = (pid_t) -1; in pa__init()
61 PA_GSETTINGS_HELPER, NULL, &u->pid)) < 0) in pa__init()
94 if (u->pid != (pid_t) -1) { in pa__done()
95 kill(u->pid, SIGTERM); in pa__done()
98 if (waitpid(u->pid, NULL, 0) >= 0) in pa__done()
/third_party/toybox/toys/other/
H A Dtimeout.c35 pid_t pid;
43 fprintf(stderr, "timeout pid %d signal %d\n", TT.pid, TT.nextsig); in handler()
46 kill(TT.pid, TT.nextsig); in handler()
80 if (!(TT.pid = XVFORK())) xexec(toys.optargs+1); in timeout_main()
87 status = xwaitpid(TT.pid); in timeout_main()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
H A Dmali_linux_trace.h35 mali_job_slots_event, TP_PROTO(unsigned int event_id, unsigned int tgid, unsigned int pid, unsigned char job_id),
36 TP_ARGS(event_id, tgid, pid, job_id),
37 TP_STRUCT__entry(__field(unsigned int, event_id) __field(unsigned int, tgid) __field(unsigned int, pid)
39 TP_fast_assign(__entry->event_id = event_id; __entry->tgid = tgid; __entry->pid = pid; __entry->job_id = job_id;),
40 TP_printk("event=%u tgid=%u pid=%u job_id=%u", __entry->event_id, __entry->tgid, __entry->pid, __entry->job_id));
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
H A Dmali_linux_trace.h34 TP_PROTO(unsigned int event_id, unsigned int tgid, unsigned int pid,
36 TP_ARGS(event_id, tgid, pid, job_id),
40 __field(unsigned int, pid)
46 __entry->pid = pid;
49 TP_printk("event=%u tgid=%u pid=%u job_id=%u",
50 __entry->event_id, __entry->tgid, __entry->pid, __entry->job_id)

Completed in 9 milliseconds

1...<<31323334353637383940>>...198