/kernel/linux/linux-5.10/include/trace/events/ |
H A D | rtg.h | 23 __field(pid_t, pid) 30 __entry->pid = p->pid; 37 TP_printk("comm=%s pid=%d perferred_cpus=%s reason=%s target_cpu=%d", 38 __entry->comm, __entry->pid, __get_bitmask(cpus), __entry->msg, __entry->cpu) 51 __field(pid_t, pid) 64 __entry->pid = task->pid; 73 TP_printk("comm=%s pid=%d prio=%d allowed=%s cpu=%d state=%s%s on_rq=%d on_cpu=%d", 74 __entry->comm, __entry->pid, __entr [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | rtg.h | 24 __field(pid_t, pid) 31 __entry->pid = p->pid; 38 TP_printk("comm=%s pid=%d perferred_cpus=%s reason=%s target_cpu=%d", 39 __entry->comm, __entry->pid, __get_bitmask(cpus), __entry->msg, __entry->cpu) 52 __field(pid_t, pid) 65 __entry->pid = task->pid; 74 TP_printk("comm=%s pid=%d prio=%d allowed=%s cpu=%d state=%s%s on_rq=%d on_cpu=%d", 75 __entry->comm, __entry->pid, __entr [all...] |
/third_party/ltp/testcases/kernel/syscalls/setrlimit/ |
H A D | setrlimit01.c | 56 static pid_t pid; variable 137 pid = FORK_OR_VFORK(); in test2() 138 if (pid == -1) in test2() 141 if (pid == 0) { in test2() 164 SAFE_WAITPID(cleanup, pid, &status, 0); in test2() 221 pid = FORK_OR_VFORK(); in test3() 222 if (pid == -1) { in test3() 227 } else if (pid == 0) { in test3() 231 waitpid(pid, &status, 0); in test3() 254 pid in test4() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | bpf_off_cpu.c | 27 u32 pid; member 79 u32 pid; in off_cpu_start() local 85 pid = perf_thread_map__pid(evlist->core.threads, 0); in off_cpu_start() 86 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in off_cpu_start() 151 if (target->pid) { in off_cpu_prepare() 152 pid_slist = strlist__new(target->pid, NULL); in off_cpu_prepare() 154 pr_err("Failed to create a strlist for pid\n"); in off_cpu_prepare() 161 int pid = strtol(pos->s, &end_ptr, 10); in off_cpu_prepare() local 163 if (pid == INT_MIN || pid in off_cpu_prepare() 228 int pid = strtol(pos->s, &end_ptr, 10); off_cpu_prepare() local 238 u32 pid; off_cpu_prepare() local [all...] |
/kernel/liteos_a/kernel/base/core/ |
H A D | los_info.c | 35 STATIC UINT32 GetCurrParentPid(UINT32 pid, const LosProcessCB *processCB) in GetCurrParentPid() argument 42 if (pid == OS_USER_ROOT_PROCESS_ID) { in GetCurrParentPid() 82 pcbInfo->pid = OsGetPid(processCB); in GetProcessInfo() 83 pcbInfo->ppid = GetCurrParentPid(pcbInfo->pid, processCB); in GetProcessInfo() 149 taskInfo->pid = OsGetPid(processCB); in GetThreadInfo() 174 UINT32 OsGetProcessThreadInfo(UINT32 pid, ProcessThreadInfo *threadInfo) in OsGetProcessThreadInfo() argument 178 if (OS_PID_CHECK_INVALID(pid) || (pid == 0) || (threadInfo == NULL)) { in OsGetProcessThreadInfo() 182 LosProcessCB *processCB = OS_PCB_FROM_PID(pid); in OsGetProcessThreadInfo() 203 for (UINT32 pid [all...] |
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | sched-migration.py | 33 def thread_name(pid): 34 return "%s:%d" % (threads[pid], pid) 210 def wake_up(self, ts_list, pid, cpu, fork): 213 new_rq = old_rq.wake_up_new(pid) 215 new_rq = old_rq.wake_up(pid) 351 def migrate(self, headers, pid, prio, orig_cpu, dest_cpu): 353 ts.migrate(self.timeslices, pid, orig_cpu, dest_cpu) 355 def wake_up(self, headers, comm, pid, success, target_cpu, fork): 359 ts.wake_up(self.timeslices, pid, target_cp [all...] |
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | sched-migration.py | 33 def thread_name(pid): 34 return "%s:%d" % (threads[pid], pid) 210 def wake_up(self, ts_list, pid, cpu, fork): 213 new_rq = old_rq.wake_up_new(pid) 215 new_rq = old_rq.wake_up(pid) 351 def migrate(self, headers, pid, prio, orig_cpu, dest_cpu): 353 ts.migrate(self.timeslices, pid, orig_cpu, dest_cpu) 355 def wake_up(self, headers, comm, pid, success, target_cpu, fork): 359 ts.wake_up(self.timeslices, pid, target_cp [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | getpgid.c | 29 pid_t pid = getpgid(0); in getpgid_0100() local 30 EXPECT_TRUE("getpgid_0100", pid >= 0); in getpgid_0100() 31 pid = getpgid(TEST_POSITIVE_PID); in getpgid_0100() 32 EXPECT_EQ("getpgid_0100", pid, -1); in getpgid_0100() 33 pid = getpgid(TEST_NEGTIVE_PID); in getpgid_0100() 34 EXPECT_EQ("getpgid_0100", pid, -1); in getpgid_0100()
|
/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | proc-tid0.c | 26 static pid_t pid = -1; variable 30 if (pid > 0) { in atexit_hook() 31 kill(pid, SIGKILL); in atexit_hook() 47 pid = fork(); in main() 48 if (pid == 0) { in main() 55 } else if (pid > 0) { in main() 60 snprintf(buf, sizeof(buf), "/proc/%u/task", pid); in main()
|
/kernel/liteos_a/testsuites/unittest/basic/exc/smoke/ |
H A D | it_test_exc_005.cpp | 36 printf("@@@@@@@@@@@@@ pid : %d getppid : %d @@@@@@@@@@@@@@@@\n", getpid(), getppid()); in Child() 55 pid_t pid = fork(); in TestCase() local 56 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, INVALID_PROCESS_ID, pid); in TestCase() 57 if (pid == 0) { in TestCase() 74 kill(pid, SIGTERM); in TestCase() 76 ret = waitpid(pid, &status, 0); in TestCase() 77 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_net_container_010.cpp | 54 auto pid = CloneWrapper(ChildFunc, CLONE_NEWNET, &argTmp); in GroupProcess() local 55 if (pid == -1) { in GroupProcess() 58 ret = waitpid(pid, &status, 0); in GroupProcess() 73 auto pid = CloneWrapper(GroupProcess, CLONE_NEWNET, &arg); in ItNetContainer010() local 74 ASSERT_NE(pid, -1); in ItNetContainer010() 76 ret = waitpid(pid, &status, 0); in ItNetContainer010() 77 ASSERT_EQ(ret, pid); in ItNetContainer010()
|
H A D | It_uts_container_003.cpp | 54 auto pid = CloneWrapper(ChildFunc, CLONE_NEWUTS, &argTmp); in GroupProcess() local 55 if (pid == -1) { in GroupProcess() 59 ret = waitpid(pid, &status, 0); in GroupProcess() 74 auto pid = CloneWrapper(GroupProcess, CLONE_NEWUTS, &arg); in ItUtsContainer003() local 75 ASSERT_NE(pid, -1); in ItUtsContainer003() 77 ret = waitpid(pid, &status, 0); in ItUtsContainer003() 78 ASSERT_EQ(ret, pid); in ItUtsContainer003()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
H A D | process_test_014.cpp | 54 pid_t pid; in TestCase() local 62 pid = fork(); in TestCase() 63 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in TestCase() 65 if (pid == 0) { in TestCase() 72 ret = waitpid(pid, &status, 0); in TestCase() 73 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in TestCase()
|
H A D | process_test_026.cpp | 36 int pid = 3; in TestCase() local 39 ret = waitpid(pid, &status, -1); in TestCase() 43 ret = waitpid(pid, &status, 4); // 4, waitpid options. in TestCase() 47 ret = waitpid(pid, &status, WUNTRACED); in TestCase() 51 ret = waitpid(pid, &status, WCONTINUED); in TestCase() 55 ret = waitpid(pid, &status, 10); // 10, waitpid options. in TestCase() 59 ret = waitpid(pid, &status, 21); // 21, waitpid options. in TestCase()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/ |
H A D | shmget05.c | 29 static int shm_id, pid; variable 34 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", pid); in verify_shmget() 37 if (shm_id == pid) in verify_shmget() 38 tst_res(TPASS, "shm_next_id succeeded, shm id %d", pid); in verify_shmget() 40 tst_res(TFAIL, "shm_next_id failed, expected id %d, but got %d", pid, shm_id); in verify_shmget() 44 pid++; in verify_shmget() 50 pid = getpid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/signal/ |
H A D | signal01.c | 43 pid_t pid; in do_test() local 48 pid = SAFE_FORK(); in do_test() 50 if (!pid) { in do_test() 61 SAFE_WAITPID(pid, &res, 0); in do_test() 65 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in do_test() 66 SAFE_KILL(pid, SIGKILL); in do_test() 67 SAFE_WAITPID(pid, &res, 0); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/fork/ |
H A D | fork01.c | 12 * - fork returns the pid of the child 29 int kid_status, term_pid, child_pid, pid, ret; in verify_fork() local 31 pid = SAFE_FORK(); in verify_fork() 32 if (!pid) { in verify_fork() 37 term_pid = SAFE_WAITPID(pid, &kid_status, 0); in verify_fork() 38 if (term_pid == pid) { in verify_fork() 50 TST_EXP_EQ_LI(child_pid, pid); in verify_fork() 52 tst_res(TFAIL, "waitpid() returns %d instead of expected pid %d", in verify_fork() 53 term_pid, pid); in verify_fork()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/ |
H A D | msgget04.c | 28 static int queue_id, pid; variable 33 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", pid); in verify_msgget() 36 if (queue_id == pid) in verify_msgget() 37 tst_res(TPASS, "msg_next_id succeeded, queue id %d", pid); in verify_msgget() 39 tst_res(TFAIL, "msg_next_id failed, expected id %d, but got %d", pid, queue_id); in verify_msgget() 43 pid++; in verify_msgget() 49 pid = getpid(); in setup()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
H A D | msm_gpu_trace.h | 12 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; 28 TP_printk("id=%d pid=%d ring=%d bos=%d cmds=%d", 29 __entry->id, __entry->pid, __entry->ringid, 37 __field(pid_t, pid) 44 __entry->pid = pid_nr(submit->pid); [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
H A D | msm_gpu_trace.h | 12 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; 28 TP_printk("id=%d pid=%d ring=%d bos=%d cmds=%d", 29 __entry->id, __entry->pid, __entry->ringid, 37 __field(pid_t, pid) 44 __entry->pid = pid_nr(submit->pid); [all...] |
/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | datapid.c | 39 < pid >< word-offset in file (same #) >< pid > 43 < pid >< offset in file of this word >< pid > 78 * < pid >< offset in file of this word >< pid > 84 int datapidgen(int pid, char *buffer, int bsize, int offset) in datapidgen() argument 109 ((LOWER16BITS(pid) << 48) | (LOWER32BITS(woff) << 16) | in datapidgen() 110 LOWER16BITS(pid)); in datapidgen() 134 ((LOWER16BITS(pid) << 4 in datapidgen() 181 datapidchk(int pid, char *buffer, int bsize, int offset, char **errmsg) datapidchk() argument [all...] |
/third_party/backends/backend/pixma/ |
H A D | pixma_mp800.c | 591 switch (s->cfg->pid) in calc_shifting() 732 switch (s->cfg->pid) in calc_shifting() 780 switch (s->cfg->pid) in calc_shifting() 965 if (s->cfg->pid == CS9000F_PID || s->cfg->pid == CS9000F_MII_PID || s->cfg->pid == MG8200_PID) in send_scan_param() 976 if (s->cfg->pid == MG8200_PID || s->cfg->pid == MP990_PID) in send_scan_param() 985 if (s->cfg->pid == CS8800F_PID || s->cfg->pid in send_scan_param() 1310 shift_colors(uint8_t * dptr, uint8_t * sptr, unsigned w, unsigned dpi, unsigned pid, unsigned c, int * colshft, unsigned strshft) shift_colors() argument 1343 shift_colorsCS9000(uint8_t * dptr, uint8_t * sptr, unsigned w, unsigned dpi, unsigned pid, unsigned c, int * colshft, unsigned strshft, unsigned strshft2, unsigned jump) shift_colorsCS9000() argument 1390 shift_colorsCS9000_4800(uint8_t * dptr, uint8_t * sptr, unsigned w, unsigned dpi, unsigned pid, unsigned c, int * colshft, unsigned strshft, unsigned strshft2, unsigned jump) shift_colorsCS9000_4800() argument [all...] |
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_ipc_container_006.cpp | 89 auto pid = clone(childFunc1, stackTop, CLONE_NEWIPC | SIGCHLD, &arg); in childFunc() local 90 if (pid == -1) { in childFunc() 94 std::string filePath = GenContainerLinkPath(pid, containerType); in childFunc() 107 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in childFunc() 136 ret = waitpid(pid, &status, 0); in childFunc() 137 if (ret != pid) { in childFunc() 173 auto pid = clone(childFunc, stackTop, CLONE_NEWIPC | SIGCHLD, &arg); in ItIpcContainer006() local 174 ASSERT_NE(pid, -1); in ItIpcContainer006() 176 ret = waitpid(pid, &status, 0); in ItIpcContainer006() 177 ASSERT_EQ(ret, pid); in ItIpcContainer006() [all...] |
H A D | It_user_container_002.cpp | 38 std::string GetIdMapPath(int pid, const std::string& mapType) in GetIdMapPath() argument 41 buf << "/proc/" << pid << "/" << mapType; in GetIdMapPath() 45 int WriteIdMap(int pid) in WriteIdMap() argument 47 std::string uidMapPath = GetIdMapPath(pid, "uid_map"); in WriteIdMap() 48 std::string gidMapPath = GetIdMapPath(pid, "gid_map"); in WriteIdMap() 133 auto pid = CloneWrapper(childFunc, CLONE_NEWUSER, &arg); in ItUserContainer002() local 134 ASSERT_NE(pid, -1); in ItUserContainer002() 136 ret = WriteIdMap(pid); in ItUserContainer002() 140 ret = waitpid(pid, &status, 0); in ItUserContainer002() 141 ASSERT_EQ(ret, pid); in ItUserContainer002() [all...] |
/third_party/elfutils/tests/ |
H A D | backtrace-dwarf.c | 48 report_pid (Dwfl *dwfl, pid_t pid) in report_pid() argument 50 int result = dwfl_linux_proc_report (dwfl, pid); in report_pid() 59 result = dwfl_linux_proc_attach (dwfl, pid, true); in report_pid() 67 pid_to_dwfl (pid_t pid) in pid_to_dwfl() argument 80 report_pid (dwfl, pid); in pid_to_dwfl() 141 pid_t pid = fork (); in main() local 142 switch (pid) in main() 163 pid_t got = waitpid (pid, &status, 0); in main() 164 if (got != pid) in main() 171 Dwfl *dwfl = pid_to_dwfl (pid); in main() [all...] |