Home
last modified time | relevance | path

Searched refs:getpid (Results 1 - 25 of 623) sorted by relevance

12345678910>>...25

/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_002.cpp41 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in Testcase()
47 ret = sched_getparam(getpid(), &param); in Testcase()
51 ret = sched_getscheduler(getpid()); in Testcase()
55 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in Testcase()
58 ret = sched_getparam(getpid(), &param); in Testcase()
63 ret = sched_setparam(getpid(), &param); in Testcase()
66 ret = getpriority(PRIO_PROCESS, getpid()); in Testcase()
69 ret = setpriority(PRIO_PROCESS, getpid(), currProcessPri); in Testcase()
72 ret = getpriority(PRIO_PROCESS, getpid()); in Testcase()
76 ret = sched_setscheduler(getpid(), CURRENT_PROCESS_POLIC in Testcase()
[all...]
H A Dprocess_test_001.cpp44 ret = sched_getparam(getpid(), NULL); in Testcase()
54 ret = sched_setparam(getpid(), NULL); in Testcase()
64 ret = sched_setparam(getpid(), &param); in Testcase()
75 ret = getpriority(PRIO_USER, getpid()); in Testcase()
107 ret = sched_setparam(getpid(), &param); in Testcase()
113 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in Testcase()
125 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in Testcase()
130 ret = sched_getscheduler(getpid()); in Testcase()
144 ret = sched_setscheduler(getpid(), SCHED_FIFO, &param); in Testcase()
H A Dprocess_test_043.cpp38 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in Testcase()
60 priority = setpriority(PRIO_USER + count, getpid(), currProcessPri); in Testcase()
70 priority = setpriority(-count, getpid(), currProcessPri); in Testcase()
95 ret = sched_setscheduler(getpid(), SCHED_RR - count, &param); in Testcase()
100 ret = sched_setscheduler(getpid(), SCHED_RR + count, &param); in Testcase()
106 priority = setpriority(PRIO_PGRP, getpid(), currProcessPri); in Testcase()
111 priority = setpriority(PRIO_USER, getpid(), currProcessPri); in Testcase()
/base/hiviewdfx/faultloggerd/test/moduletest/
H A Dfaultloggerd_module_test.cpp59 RequestSdkDump(getpid(), getpid()); in HWTEST_F()
60 int32_t pipeFd = RequestPipeFd(getpid(), FaultLoggerPipeType::PIPE_FD_READ_BUF); in HWTEST_F()
62 int32_t ret = RequestDelPipeFd(getpid()); in HWTEST_F()
64 pipeFd = RequestPipeFd(getpid(), FaultLoggerPipeType::PIPE_FD_READ_BUF); in HWTEST_F()
86 std::string cmd = "cat /proc/" + std::to_string(getpid()) + "/maps"; in HWTEST_F()
116 testRequest.pid = getpid(); in HWTEST_F()
148 testRequest.pid = getpid(); in HWTEST_F()
165 RequestSdkDump(getpid(), getpid()); in HWTEST_F()
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/procinfo/
H A Dprocinfo_test.cpp50 ASSERT_EQ(getpid(), procInfo.pid); in HWTEST_F()
63 ASSERT_TRUE(GetTidsByPidWithFunc(getpid(), tids, nullptr)); in HWTEST_F()
76 ASSERT_TRUE(GetProcStatusByPid(getpid(), procInfo)); in HWTEST_F()
79 ASSERT_TRUE(GetTidsByPid(getpid(), tids, nstids)); in HWTEST_F()
81 ASSERT_TRUE(IsThreadInPid(getpid(), nstids[i])); in HWTEST_F()
84 TidToNstid(getpid(), tids[i], nstid); in HWTEST_F()
100 ASSERT_TRUE(TidToNstid(getpid(), gettid(), nstid)); in HWTEST_F()
114 ReadProcessStatus(result, getpid()); in HWTEST_F()
119 ReadProcessWchan(result, getpid(), false, true); in HWTEST_F()
126 ReadProcessName(getpid(), resul in HWTEST_F()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/abi/
H A Dtpidr2.c76 set_tpidr2(getpid()); in write_read()
78 return getpid() == get_tpidr2(); in write_read()
84 set_tpidr2(getpid()); in write_sleep_read()
88 return getpid() == get_tpidr2(); in write_sleep_read()
101 set_tpidr2(getpid()); in write_fork_read()
103 oldpid = getpid(); in write_fork_read()
114 set_tpidr2(getpid()); in write_fork_read()
115 if (get_tpidr2() == getpid()) { in write_fork_read()
150 if (getpid() != get_tpidr2()) { in write_fork_read()
183 parent = getpid(); in write_clone_read()
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
H A Ddlp_callback_test.cpp161 OpenDlpFileCallbackManager::GetInstance().AddCallback(getpid(), DEFAULT_USERID, DLP_MANAGER_APP, nullptr); in HWTEST_F()
177 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
181 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
183 res = OpenDlpFileCallbackManager::GetInstance().RemoveCallback(getpid(), callback->AsObject()); in HWTEST_F()
224 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
231 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
244 int32_t res = OpenDlpFileCallbackManager::GetInstance().RemoveCallback(getpid(), nullptr); in HWTEST_F()
260 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
278 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
280 res = OpenDlpFileCallbackManager::GetInstance().RemoveCallback(getpid(), callbac in HWTEST_F()
[all...]
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
H A DIt_process_plimits_pid_003.cpp66 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in ItProcessPlimitsPid003()
69 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in ItProcessPlimitsPid003()
72 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in ItProcessPlimitsPid003()
75 ret = sched_setparam(getpid(), &param); in ItProcessPlimitsPid003()
79 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in ItProcessPlimitsPid003()
83 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in ItProcessPlimitsPid003()
87 ret = sched_setparam(getpid(), &param); in ItProcessPlimitsPid003()
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/
H A Dpthread_test_027.cpp44 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
47 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
54 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, &param); in ChildProcess()
57 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
60 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
H A Dpthread_test_020.cpp43 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
46 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
53 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, &param); in ChildProcess()
56 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
59 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
H A Dpthread_test_026.cpp44 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
47 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
54 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, &param); in ChildProcess()
57 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
60 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_pid_container_025.cpp48 std::cout << getpid() << std::endl; in ItPidContainer025()
49 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItPidContainer025()
50 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType1); in ItPidContainer025()
66 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType); in ItPidContainer025()
H A DIt_time_container_010.cpp51 std::cout << getpid() << std::endl; in ItTimeContainer010()
52 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItTimeContainer010()
53 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType1); in ItTimeContainer010()
70 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType); in ItTimeContainer010()
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c69 getpid(), set_tid[0]); in call_clone3_set_tid()
72 getpid()); in call_clone3_set_tid()
93 if (set_tid[0] != getpid()) in call_clone3_set_tid()
100 getpid(), pid); in call_clone3_set_tid()
130 getpid(), set_tid[0], flags); in test_clone3_set_tid()
135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid()
139 getpid(), ret, expected); in test_clone3_set_tid()
143 getpid(), ret, expected); in test_clone3_set_tid()
259 ksft_print_msg("Child has PID %d\n", getpid()); in main()
306 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main()
[all...]
H A Dclone3_cap_checkpoint_restore.c63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
65 if (set_tid[0] != getpid()) in call_clone3_set_tid()
70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
155 TH_LOG("Child has PID %d", getpid()); in TEST()
H A Dclone3.c89 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3()
94 getpid(), pid); in call_clone3()
113 getpid(), flags, size); in test_clone3()
116 getpid(), ret, expected); in test_clone3()
120 getpid(), ret, expected); in test_clone3()
124 getpid(), ret, expected); in test_clone3()
/kernel/linux/linux-6.6/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c69 getpid(), set_tid[0]); in call_clone3_set_tid()
72 getpid()); in call_clone3_set_tid()
93 if (set_tid[0] != getpid()) in call_clone3_set_tid()
100 getpid(), pid); in call_clone3_set_tid()
130 getpid(), set_tid[0], flags); in test_clone3_set_tid()
135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid()
139 getpid(), ret, expected); in test_clone3_set_tid()
143 getpid(), ret, expected); in test_clone3_set_tid()
259 ksft_print_msg("Child has PID %d\n", getpid()); in main()
306 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main()
[all...]
H A Dclone3.c89 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3()
94 getpid(), pid); in call_clone3()
113 getpid(), flags, size); in test_clone3()
116 getpid(), ret, expected); in test_clone3()
120 getpid(), ret, expected); in test_clone3()
124 getpid(), ret, expected); in test_clone3()
H A Dclone3_cap_checkpoint_restore.c63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
65 if (set_tid[0] != getpid()) in call_clone3_set_tid()
70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
155 TH_LOG("Child has PID %d", getpid()); in TEST()
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dthread-map.c30 map = thread_map__new_by_pid(getpid()); in test__thread_map()
37 perf_thread_map__pid(map, 0) == getpid()); in test__thread_map()
71 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); in process_event()
79 perf_thread_map__pid(threads, 0) == getpid()); in process_event()
97 threads = thread_map__new_by_pid(getpid()); in test__thread_map_synthesize()
115 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dthread-map.c31 map = thread_map__new_by_pid(getpid()); in test__thread_map()
38 perf_thread_map__pid(map, 0) == getpid()); in test__thread_map()
72 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); in process_event()
80 perf_thread_map__pid(threads, 0) == getpid()); in process_event()
98 threads = thread_map__new_by_pid(getpid()); in test__thread_map_synthesize()
116 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_009.cpp49 if(sched_setparam(getpid(), &param) != 0) { in ChildProcess()
102 processPolicy = sched_getscheduler(getpid()); in Testcase()
103 ret = sched_getparam(getpid(), &paramCopy); in Testcase()
108 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in Testcase()
141 (void)sched_setparam(getpid(), &paramCopy); in Testcase()
143 (void)sched_setscheduler(getpid(), processPolicy, &paramCopy); in Testcase()
/kernel/liteos_a/testsuites/unittest/process/basic/process/smp/
H A Dprocess_test_smp_002.cpp52 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in PthreadTest01()
77 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &initCpuset); in Testcase()
82 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
86 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
99 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
106 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &initCpuset); in Testcase()
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/
H A Dunwind_local_benchmark.cpp93 DFXLOGU("++++++pid: %{public}d", getpid()); in Run()
99 DFXLOGU("------pid: %{public}d", getpid()); in Run()
109 auto processMemory = unwindstack::Memory::CreateProcessMemory(getpid()); in BenchmarkUnwindStackLocal()
127 auto processMemory = unwindstack::Memory::CreateProcessMemoryCached(getpid()); in BenchmarkUnwindStackLocalCache()
145 auto processMemory = unwindstack::Memory::CreateProcessMemory(getpid()); in BenchmarkUnwindStackLocalFrames()
163 auto processMemory = unwindstack::Memory::CreateProcessMemoryCached(getpid()); in BenchmarkUnwindStackLocalFramesCache()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dtask_storage_map.c88 sched_getaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()
93 sched_setaffinity(getpid(), sizeof(new), &new); in test_task_storage_map_stress_lookup()
97 ctx.pid_fd = sys_pidfd_open(getpid(), 0); in test_task_storage_map_stress_lookup()
113 skel->bss->pid = getpid(); in test_task_storage_map_stress_lookup()
125 sched_setaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()

Completed in 12 milliseconds

12345678910>>...25