Home
last modified time | relevance | path

Searched refs:pid (Results 1 - 25 of 8429) sorted by relevance

12345678910>>...338

/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_005.cpp35 int pid; in ProcessTest002() local
37 pid = fork(); in ProcessTest002()
38 if (pid == 0) { in ProcessTest002()
43 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, 100000, pid); // 100000, assert that function Result is equal to this. in ProcessTest002()
45 pid = fork(); in ProcessTest002()
46 if (pid == 0) { in ProcessTest002()
51 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, 100000, pid); // 100000, assert that function Result is equal to this. in ProcessTest002()
53 pid in ProcessTest002()
124 int pid; ProcessTest001() local
143 int pid; Testcase() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dpid.h19 * What is struct pid?
21 * A struct pid is the kernel's internal notion of a process identifier.
23 * there are processes attached to it the struct pid lives in a hash
25 * quickly from the numeric pid value. The attached processes may be
26 * quickly accessed by following pointers from struct pid.
29 * problem. The process originally with that pid may have exited and the
30 * pid allocator wrapped, and another process could have come along
31 * and been assigned that pid.
38 * a struct pid is about 64 bytes.
40 * Holding a reference to struct pid solve
59 struct pid global() struct
85 get_pid(struct pid *pid) get_pid() argument
94 pid_has_task(struct pid *pid, enum pid_type type) pid_has_task() argument
152 ns_of_pid(struct pid *pid) ns_of_pid() argument
166 is_child_reaper(struct pid *pid) is_child_reaper() argument
182 pid_nr(struct pid *pid) pid_nr() argument
[all...]
/third_party/curl/tests/
H A Dprocesshelp.pm90 # pidfromfile returns the pid stored in the given pidfile. The value
91 # of the returned pid will never be a negative value. It will be zero
92 # on any file related error or if a pid can not be extracted from the
97 my $pid = 0;
100 $pid = 0 + <$pidfh>;
102 $pid = 0 if($pid < 0);
104 return $pid;
108 # pidexists checks if a process with a given pid exists and is alive.
109 # This will return the positive pid i
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dpid.h19 * What is struct pid?
21 * A struct pid is the kernel's internal notion of a process identifier.
23 * there are processes attached to it the struct pid lives in a hash
25 * quickly from the numeric pid value. The attached processes may be
26 * quickly accessed by following pointers from struct pid.
29 * problem. The process originally with that pid may have exited and the
30 * pid allocator wrapped, and another process could have come along
31 * and been assigned that pid.
38 * a struct pid is about 64 bytes.
40 * Holding a reference to struct pid solve
59 struct pid global() struct
82 get_pid(struct pid *pid) get_pid() argument
91 pid_has_task(struct pid *pid, enum pid_type type) pid_has_task() argument
149 ns_of_pid(struct pid *pid) ns_of_pid() argument
163 is_child_reaper(struct pid *pid) is_child_reaper() argument
179 pid_nr(struct pid *pid) pid_nr() argument
[all...]
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dinvalid_param.c41 pid_t pid = fork(); in clearerr_0100() local
42 if (pid == -1) { in clearerr_0100()
44 } else if (pid == 0) { in clearerr_0100()
48 waitpid(pid, &status, 0); in clearerr_0100()
63 pid_t pid = fork(); in feof_0100() local
64 if (pid == -1) { in feof_0100()
66 } else if (pid == 0) { in feof_0100()
70 waitpid(pid, &status, 0); in feof_0100()
85 pid_t pid = fork(); in ferror_0100() local
86 if (pid in ferror_0100()
107 pid_t pid = fork(); fgetc_0100() local
129 pid_t pid = fork(); fgets_0100() local
152 pid_t pid = fork(); fprintf_0100() local
175 pid_t pid = fork(); fputc_0100() local
197 pid_t pid = fork(); fputs_0100() local
219 pid_t pid = fork(); fread_0600() local
242 pid_t pid = fork(); fscanf_0100() local
265 pid_t pid = fork(); fseek_0100() local
288 pid_t pid = fork(); fseeko_0100() local
310 pid_t pid = fork(); ftell_0100() local
332 pid_t pid = fork(); fwrite_0100() local
355 pid_t pid = fork(); getc_0100() local
377 pid_t pid = fork(); pclose_0100() local
399 pid_t pid = fork(); rewind_0100() local
421 pid_t pid = fork(); setvbuf_0100() local
444 pid_t pid = fork(); wcsnrtombs_0100() local
472 pid_t pid = fork(); unsetenv_0100() local
494 pid_t pid = fork(); readdir_0100() local
516 pid_t pid = fork(); pthread_join_0100() local
540 pid_t pid = fork(); pthread_kill_0100() local
564 pid_t pid = fork(); pthread_setschedparam_0100() local
[all...]
/kernel/linux/linux-6.6/kernel/
H A Dpid.c9 * pid-structures are backing objects for tasks sharing a given ID to chain
48 struct pid init_struct_pid = {
108 void put_pid(struct pid *pid) in put_pid() argument
112 if (!pid) in put_pid()
115 ns = pid->numbers[pid->level].ns; in put_pid()
116 if (refcount_dec_and_test(&pid->count)) { in put_pid()
117 kmem_cache_free(ns->pid_cachep, pid); in put_pid()
125 struct pid *pi in delayed_put_pid() local
129 free_pid(struct pid *pid) free_pid() argument
165 struct pid *pid; alloc_pid() local
336 struct pid *pid = *task_pid_ptr(task, type); attach_pid() local
344 struct pid *pid; __change_pid() local
364 change_pid(struct task_struct *task, enum pid_type type, struct pid *pid) change_pid() argument
399 pid_task(struct pid *pid, enum pid_type type) pid_task() argument
443 struct pid *pid; get_task_pid() local
451 get_pid_task(struct pid *pid, enum pid_type type) get_pid_task() argument
465 struct pid *pid; find_get_pid() local
475 pid_nr_ns(struct pid *pid, struct pid_namespace *ns) pid_nr_ns() argument
489 pid_vnr(struct pid *pid) pid_vnr() argument
530 struct pid *pid; pidfd_get_pid() local
566 struct pid *pid; pidfd_get_task() local
598 pidfd_create(struct pid *pid, unsigned int flags) pidfd_create() argument
688 pidfd_getfd(struct pid *pid, int fd) pidfd_getfd() argument
728 struct pid *pid; SYSCALL_DEFINE3() local
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dpid.c9 * pid-structures are backing objects for tasks sharing a given ID to chain
48 struct pid init_struct_pid = {
105 void put_pid(struct pid *pid) in put_pid() argument
109 if (!pid) in put_pid()
112 ns = pid->numbers[pid->level].ns; in put_pid()
113 if (refcount_dec_and_test(&pid->count)) { in put_pid()
114 kmem_cache_free(ns->pid_cachep, pid); in put_pid()
122 struct pid *pi in delayed_put_pid() local
126 free_pid(struct pid *pid) free_pid() argument
162 struct pid *pid; alloc_pid() local
333 struct pid *pid = *task_pid_ptr(task, type); attach_pid() local
341 struct pid *pid; __change_pid() local
361 change_pid(struct task_struct *task, enum pid_type type, struct pid *pid) change_pid() argument
396 pid_task(struct pid *pid, enum pid_type type) pid_task() argument
440 struct pid *pid; get_task_pid() local
448 get_pid_task(struct pid *pid, enum pid_type type) get_pid_task() argument
462 struct pid *pid; find_get_pid() local
472 pid_nr_ns(struct pid *pid, struct pid_namespace *ns) pid_nr_ns() argument
486 pid_vnr(struct pid *pid) pid_vnr() argument
526 struct pid *pid; pidfd_get_pid() local
556 pidfd_create(struct pid *pid, unsigned int flags) pidfd_create() argument
645 pidfd_getfd(struct pid *pid, int fd) pidfd_getfd() argument
685 struct pid *pid; SYSCALL_DEFINE3() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c39 static inline long sys_ptrace(long request, pid_t pid, unsigned long addr, unsigned long data) in sys_ptrace() argument
41 return syscall(__NR_ptrace, request, pid, addr, data); in sys_ptrace()
49 static long ptrace_getregs(pid_t pid, struct pt_regs *result) in ptrace_getregs() argument
51 return sys_ptrace(PTRACE_GETREGS, pid, 0, (unsigned long)result); in ptrace_getregs()
54 static long ptrace_setregs(pid_t pid, struct pt_regs *result) in ptrace_setregs() argument
56 return sys_ptrace(PTRACE_SETREGS, pid, 0, (unsigned long)result); in ptrace_setregs()
59 static long ptrace_cont(pid_t pid, long signal) in ptrace_cont() argument
61 return sys_ptrace(PTRACE_CONT, pid, 0, signal); in ptrace_cont()
64 static long ptrace_singlestep(pid_t pid, long signal) in ptrace_singlestep() argument
66 return sys_ptrace(PTRACE_SINGLESTEP, pid, in ptrace_singlestep()
69 ppc_ptrace_gethwdbginfo(pid_t pid, struct ppc_debug_info *dbginfo) ppc_ptrace_gethwdbginfo() argument
74 ppc_ptrace_sethwdbg(pid_t pid, struct ppc_hw_breakpoint *bp_info) ppc_ptrace_sethwdbg() argument
79 ppc_ptrace_delhwdbg(pid_t pid, int bp_id) ppc_ptrace_delhwdbg() argument
84 ptrace_getreg_pc(pid_t pid, void **pc) ptrace_getreg_pc() argument
98 ptrace_setreg_pc(pid_t pid, void *pc) ptrace_setreg_pc() argument
116 perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) perf_event_open() argument
175 check_watchpoints(pid_t pid) check_watchpoints() argument
190 ptrace_fork_child(pid_t *pid) ptrace_fork_child() argument
231 pid_t pid; /* PID of child process */ same_watch_addr_test() local
385 pid_t pid; /* PID of child process */ perf_then_ptrace_test() local
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/process/
H A Dprocess_status.cpp33 std::string ProcessStatus::GetProcessName(int32_t pid) in GetProcessName() argument
41 if (processInfos_.find(pid) != processInfos_.end() && !processInfos_[pid].name.empty()) { in GetProcessName()
42 return processInfos_[pid].name; in GetProcessName()
44 std::string procName = CommonUtils::GetProcFullNameByPid(pid); in GetProcessName()
45 if (UpdateProcessName(pid, procName)) { in GetProcessName()
48 HIVIEW_LOGD("failed to get proc name from pid=%{public}d", pid); in GetProcessName()
83 bool ProcessStatus::UpdateProcessName(int32_t pid, const std::string& procName) in UpdateProcessName() argument
89 if (processInfos_.find(pid) ! in UpdateProcessName()
101 GetProcessState(int32_t pid) GetProcessState() argument
109 GetProcessLastForegroundTime(int32_t pid) GetProcessLastForegroundTime() argument
117 NotifyProcessState(int32_t pid, ProcessState procState) NotifyProcessState() argument
123 UpdateProcessState(int32_t pid, ProcessState procState) UpdateProcessState() argument
144 UpdateProcessForegroundState(int32_t pid) UpdateProcessForegroundState() argument
160 UpdateProcessBackgroundState(int32_t pid) UpdateProcessBackgroundState() argument
178 ClearProcessInfo(int32_t pid) ClearProcessInfo() argument
[all...]
/third_party/backends/sanei/
H A Dsanei_thread.c118 sanei_thread_set_invalid( SANE_Pid *pid ) in sanei_thread_set_invalid()
123 *pid = (pthread_t) 0; in sanei_thread_set_invalid()
125 pid->p = 0; in sanei_thread_set_invalid()
128 *pid = (pthread_t) -1; in sanei_thread_set_invalid()
135 sanei_thread_is_valid( SANE_Pid pid ) in sanei_thread_is_valid()
141 if (pid == 0) in sanei_thread_is_valid()
143 if (pid.p == 0) in sanei_thread_is_valid()
147 if (pid == (SANE_Pid) -1) in sanei_thread_is_valid()
159 sanei_thread_pid_to_long( SANE_Pid pid ) in sanei_thread_pid_to_long()
165 rc = (long) pid; in sanei_thread_pid_to_long()
218 SANE_Pid pid; sanei_thread_begin() local
234 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument
242 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument
271 SANE_Pid pid; sanei_thread_begin() local
291 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument
302 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument
388 eval_wp_result( SANE_Pid pid, int wpres, int pf ) eval_wp_result() argument
472 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument
484 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuctl_fj/
H A Drun_cpuctl_test_fj.sh132 ps -eo pid,rtprio > /tmp/pids_file1 &
138 while read pid
140 task=`cat $CPUCTL/tasks | grep "\b$pid\b"`
285 pid=$!
287 echo $pid > $CPUCTL/tmp/tasks
289 /bin/kill -s SIGUSR1 $pid
291 /bin/kill -s SIGUSR1 $pid
292 wait $pid
313 pid=$!
315 echo $pid >
[all...]
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
H A Dradix_tlb.c30 unsigned int pid, in tlbiel_radix_set_isa300()
37 rs = ((unsigned long)pid << PPC_BITLSHIFT(31)); in tlbiel_radix_set_isa300()
94 static __always_inline void __tlbiel_pid(unsigned long pid, int set, in __tlbiel_pid() argument
101 rs = ((unsigned long)pid) << PPC_BITLSHIFT(31); in __tlbiel_pid()
110 static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) in __tlbie_pid() argument
115 rs = pid << PPC_BITLSHIFT(31); in __tlbie_pid()
152 static __always_inline void __tlbiel_va(unsigned long va, unsigned long pid, in __tlbiel_va() argument
159 rs = pid << PPC_BITLSHIFT(31); in __tlbiel_va()
168 static __always_inline void __tlbie_va(unsigned long va, unsigned long pid, in __tlbie_va() argument
175 rs = pid << PPC_BITLSHIF in __tlbie_va()
29 tlbiel_radix_set_isa300(unsigned int set, unsigned int is, unsigned int pid, unsigned int ric, unsigned int prs) tlbiel_radix_set_isa300() argument
201 fixup_tlbie_va(unsigned long va, unsigned long pid, unsigned long ap) fixup_tlbie_va() argument
215 fixup_tlbie_va_range(unsigned long va, unsigned long pid, unsigned long ap) fixup_tlbie_va_range() argument
229 fixup_tlbie_pid(unsigned long pid) fixup_tlbie_pid() argument
285 _tlbiel_pid(unsigned long pid, unsigned long ric) _tlbiel_pid() argument
319 _tlbie_pid(unsigned long pid, unsigned long ric) _tlbie_pid() argument
345 unsigned long pid; global() member
361 _tlbiel_pid_multicast(struct mm_struct *mm, unsigned long pid, unsigned long ric) _tlbiel_pid_multicast() argument
424 __tlbiel_va_range(unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize) __tlbiel_va_range() argument
435 _tlbiel_va(unsigned long va, unsigned long pid, unsigned long psize, unsigned long ric) _tlbiel_va() argument
445 _tlbiel_va_range(unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize, bool also_pwc) _tlbiel_va_range() argument
456 __tlbie_va_range(unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize) __tlbie_va_range() argument
469 _tlbie_va(unsigned long va, unsigned long pid, unsigned long psize, unsigned long ric) _tlbie_va() argument
481 unsigned long pid; global() member
499 _tlbiel_va_multicast(struct mm_struct *mm, unsigned long va, unsigned long pid, unsigned long psize, unsigned long ric) _tlbiel_va_multicast() argument
511 unsigned long pid; global() member
538 _tlbie_va_range(unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize, bool also_pwc) _tlbie_va_range() argument
549 _tlbiel_va_range_multicast(struct mm_struct *mm, unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize, bool also_pwc) _tlbiel_va_range_multicast() argument
577 unsigned long pid; radix__local_flush_tlb_mm() local
590 unsigned long pid; radix__local_flush_all_mm() local
609 unsigned long pid; radix__local_flush_tlb_page_psize() local
654 unsigned long pid = mm->context.id; do_exit_flush_lazy_tlb() local
697 unsigned long pid; radix__flush_tlb_mm() local
740 unsigned long pid; __flush_all_mm() local
784 unsigned long pid; radix__flush_tlb_page_psize() local
891 unsigned long pid; __radix__flush_tlb_range() local
1080 unsigned long pid; __radix__flush_tlb_range_psize() local
1162 unsigned long pid, end; radix__flush_tlb_collapsed_pmd() local
1244 unsigned long pid = mm->context.id; radix_kvm_prefetch_workaround() local
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/local_handler/
H A Dlocal_handler_test.cpp63 static bool CheckLocalCrashKeyWords(const string& filePath, pid_t pid, int sig) in CheckLocalCrashKeyWords() argument
65 if (filePath.empty() || pid <= 0) { in CheckLocalCrashKeyWords()
81 "Pid:" + to_string(pid), "Uid:", "name:./test_localhandler", in CheckLocalCrashKeyWords()
86 "Pid:" + to_string(pid), "Uid:", "name:./test_localhandler", in CheckLocalCrashKeyWords()
104 pid_t pid = fork(); in HWTEST_F() local
105 if (pid < 0) { in HWTEST_F()
107 } else if (pid == 0) { in HWTEST_F()
112 GTEST_LOG_(INFO) << "process(" << getpid() << ") is ready to kill process(" << pid << ")"; in HWTEST_F()
113 kill(pid, SIGILL); in HWTEST_F()
115 bool ret = CheckLocalCrashKeyWords(GetCppCrashFileName(pid), pi in HWTEST_F()
129 pid_t pid = fork(); HWTEST_F() local
154 pid_t pid = fork(); HWTEST_F() local
179 pid_t pid = fork(); HWTEST_F() local
204 pid_t pid = fork(); HWTEST_F() local
229 pid_t pid = fork(); HWTEST_F() local
253 pid_t pid = fork(); HWTEST_F() local
415 pid_t pid = fork(); HWTEST_F() local
[all...]
/base/hiviewdfx/faultloggerd/test/systemtest/
H A Dfaultloggerd_system_test.cpp73 pid_t pid = fork(); in ForkAndExecuteCrasher() local
74 if (pid < 0) { in ForkAndExecuteCrasher()
76 return pid; in ForkAndExecuteCrasher()
77 } else if (pid == 0) { in ForkAndExecuteCrasher()
85 GTEST_LOG_(INFO) << "forked pid:" << pid; in ForkAndExecuteCrasher()
91 waitpid(pid, &status, WNOHANG); in ForkAndExecuteCrasher()
99 return pid; in ForkAndExecuteCrasher()
105 auto pid = ForkAndExecuteCrasher(option, type); in TriggerCrasherAndGetFileName() local
111 crashFileName = GetCppCrashFileName(pid, tempPat in TriggerCrasherAndGetFileName()
122 CheckCountNum(const string& filePath, const pid_t& pid, const string& option) CheckCountNum() argument
152 CheckCountNumAbort(const string& filePath, const pid_t& pid) CheckCountNumAbort() argument
164 CheckCountNumNullpointer(const string& filePath, const pid_t& pid) CheckCountNumNullpointer() argument
175 CheckCountNumStackOverFlow(const string& filePath, const pid_t& pid) CheckCountNumStackOverFlow() argument
186 CheckCountNumPCZero(const string& filePath, const pid_t& pid) CheckCountNumPCZero() argument
197 CheckCountNumOverStack(const string& filePath, const pid_t& pid) CheckCountNumOverStack() argument
208 CheckCountNumMultiThread(const string& filePath, const pid_t& pid) CheckCountNumMultiThread() argument
252 string pid; ReadRealPid() local
253 file >> pid; ReadRealPid() local
264 CheckCountNumStackTop(const string& filePath, const pid_t& pid) CheckCountNumStackTop() argument
281 CheckCppCrashAllLabelKeywords(const string& filePath, const pid_t& pid) CheckCppCrashAllLabelKeywords() argument
294 CheckCppCrashAsyncStackEnableKeywords(const string& filePath, const pid_t& pid) CheckCppCrashAsyncStackEnableKeywords() argument
306 CheckCppCrashAsyncStackDisableKeywords(const string& filePath, const pid_t& pid) CheckCppCrashAsyncStackDisableKeywords() argument
324 CheckTestGetCrashObj(const string& filePath, const pid_t& pid) CheckTestGetCrashObj() argument
346 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
366 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
386 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
406 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
426 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
446 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
466 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
486 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
506 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
526 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
546 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
566 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
586 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
606 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
626 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
646 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
666 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
686 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
706 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
726 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
746 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
766 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
786 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
806 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
826 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
846 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
866 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
886 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
905 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
925 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
945 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName, 2); // 2 : sleep 2s for waiting cppcrash file HWTEST_F() local
965 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName, 2); // 2 : sleep 2s for waiting cppcrash file HWTEST_F() local
985 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1005 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
1025 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
1045 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1190 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
1226 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
1246 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1266 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1286 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1297 CheckMinidebugSymbols(const string& filePath, const pid_t& pid, const string& option) CheckMinidebugSymbols() argument
1328 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
1348 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1368 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); HWTEST_F() local
1388 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1409 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1430 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1450 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1470 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1490 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1510 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1530 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1550 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1570 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1590 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1617 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName, 1, crashDir); HWTEST_F() local
1640 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); HWTEST_F() local
1663 int pid = LaunchTestHap(testAbiltyName, testBundleName); HWTEST_F() local
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_permission_helper.cpp28 int WifiPermissionHelper::VerifyPermission(const std::string &permissionName, const int &pid, in VerifyPermission() argument
34 if (uid == static_cast<int>(getuid()) && pid == static_cast<int>(getpid())) { in VerifyPermission()
49 LOGE("has no permission_name=%{public}s, pid=%{public}d, uid=%{public}d", permissionName.c_str(), pid, uid); in VerifyPermission()
54 int WifiPermissionHelper::VerifySameProcessPermission(const int &pid, const int &uid) in VerifySameProcessPermission() argument
59 if (uid == static_cast<int>(getuid()) && pid == static_cast<int>(getpid())) { in VerifySameProcessPermission()
66 int WifiPermissionHelper::VerifySetWifiInfoPermission(const int &pid, const int &uid) in VerifySetWifiInfoPermission() argument
68 if (VerifyPermission("ohos.permission.SET_WIFI_INFO", pid, uid, 0) == PERMISSION_DENIED) { in VerifySetWifiInfoPermission()
74 int WifiPermissionHelper::VerifyGetWifiInfoPermission(const int &pid, const int &uid) in VerifyGetWifiInfoPermission() argument
76 if (VerifyPermission("ohos.permission.GET_WIFI_INFO", pid, ui in VerifyGetWifiInfoPermission()
82 VerifySetWifiConfigPermission(const int &pid, const int &uid) VerifySetWifiConfigPermission() argument
90 VerifyGetWifiConfigPermission(const int &pid, const int &uid) VerifyGetWifiConfigPermission() argument
98 VerifyGetScanInfosPermission(const int &pid, const int &uid) VerifyGetScanInfosPermission() argument
106 VerifyGetWifiLocalMacPermission(const int &pid, const int &uid) VerifyGetWifiLocalMacPermission() argument
114 VerifyWifiConnectionPermission(const int &pid, const int &uid) VerifyWifiConnectionPermission() argument
122 VerifyGetWifiDirectDevicePermission(const int &pid, const int &uid) VerifyGetWifiDirectDevicePermission() argument
130 VerifyManageWifiHotspotPermission(const int &pid, const int &uid) VerifyManageWifiHotspotPermission() argument
138 VerifyGetWifiPeersMacPermission(const int &pid, const int &uid) VerifyGetWifiPeersMacPermission() argument
146 VerifyGetWifiPeersMacPermissionEx(const int &pid, const int &uid, const int &tokenId) VerifyGetWifiPeersMacPermissionEx() argument
154 VerifyGetWifiInfoInternalPermission(const int &pid, const int &uid) VerifyGetWifiInfoInternalPermission() argument
162 VerifyManageWifiHotspotExtPermission(const int &pid, const int &uid) VerifyManageWifiHotspotExtPermission() argument
[all...]
H A Dwifi_auth_center.cpp79 int WifiAuthCenter::VerifySameProcessPermission(const int &pid, const int &uid) in VerifySameProcessPermission() argument
84 return WifiPermissionHelper::VerifySameProcessPermission(pid, uid); in VerifySameProcessPermission()
87 int WifiAuthCenter::VerifySetWifiInfoPermission(const int &pid, const int &uid) in VerifySetWifiInfoPermission() argument
92 return WifiPermissionHelper::VerifySetWifiInfoPermission(pid, uid); in VerifySetWifiInfoPermission()
95 int WifiAuthCenter::VerifyGetWifiInfoPermission(const int &pid, const int &uid) in VerifyGetWifiInfoPermission() argument
100 return WifiPermissionHelper::VerifyGetWifiInfoPermission(pid, uid); in VerifyGetWifiInfoPermission()
103 int WifiAuthCenter::VerifyGetScanInfosPermission(const int &pid, const int &uid) in VerifyGetScanInfosPermission() argument
108 return WifiPermissionHelper::VerifyGetScanInfosPermission(pid, uid); in VerifyGetScanInfosPermission()
111 int WifiAuthCenter::VerifyGetWifiLocalMacPermission(const int &pid, const int &uid) in VerifyGetWifiLocalMacPermission() argument
116 return WifiPermissionHelper::VerifyGetWifiLocalMacPermission(pid, ui in VerifyGetWifiLocalMacPermission()
119 VerifyWifiConnectionPermission(const int &pid, const int &uid) VerifyWifiConnectionPermission() argument
127 VerifySetWifiConfigPermission(const int &pid, const int &uid) VerifySetWifiConfigPermission() argument
135 VerifyGetWifiConfigPermission(const int &pid, const int &uid) VerifyGetWifiConfigPermission() argument
143 VerifyGetWifiDirectDevicePermission(const int &pid, const int &uid) VerifyGetWifiDirectDevicePermission() argument
151 VerifyManageWifiHotspotPermission(const int &pid, const int &uid) VerifyManageWifiHotspotPermission() argument
159 VerifyGetWifiPeersMacPermission(const int &pid, const int &uid) VerifyGetWifiPeersMacPermission() argument
167 VerifyGetWifiPeersMacPermissionEx(const int &pid, const int &uid, const int &tokenId) VerifyGetWifiPeersMacPermissionEx() argument
175 VerifyGetWifiInfoInternalPermission(const int &pid, const int &uid) VerifyGetWifiInfoInternalPermission() argument
183 VerifyManageWifiHotspotExtPermission(const int &pid, const int &uid) VerifyManageWifiHotspotExtPermission() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/signal/
H A Dsigreturn_kernel.c35 pid_t pid; in fork_child() local
37 pid = fork(); in fork_child()
38 if (pid == 0) { in fork_child()
43 return pid; in fork_child()
46 static int expect_segv(pid_t pid) in expect_segv() argument
50 waitpid(pid, &child_ret, 0); in expect_segv()
62 pid_t pid; in test_sigreturn_kernel() local
73 pid = fork_child(); in test_sigreturn_kernel()
74 expect_segv(pid); in test_sigreturn_kernel()
78 pid in test_sigreturn_kernel()
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Doom.h17 __field( pid_t, pid)
23 __entry->pid = task->pid;
28 TP_printk("pid=%d comm=%s oom_score_adj=%hd",
29 __entry->pid, __entry->comm, __entry->oom_score_adj)
75 TP_PROTO(int pid),
77 TP_ARGS(pid),
80 __field(int, pid)
84 __entry->pid = pid;
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Doom.h17 __field( pid_t, pid)
23 __entry->pid = task->pid;
28 TP_printk("pid=%d comm=%s oom_score_adj=%hd",
29 __entry->pid, __entry->comm, __entry->oom_score_adj)
75 TP_PROTO(int pid),
77 TP_ARGS(pid),
80 __field(int, pid)
84 __entry->pid = pid;
[all...]
/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
H A Dffrt_trace_recover.py51 def make_costart_fake_log(mark, pid, label, gid, tid, tname, prio):
58 tname, tid, pid, cpu_id, timestamp, tname, tid, prio, label, pid, gid, prio)
63 def make_coyield_fake_log(mark, pid, label, gid, tid, tname, prio):
70 label, pid, gid, pid, cpu_id, timestamp, label, pid, gid, prio, tname, tid, prio)
74 (label, pid, gid, pid, cpu_id, timestamp, pid)
[all...]
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwind/
H A Dunwind_remote_benchmark.cpp64 static size_t UnwindRemote(pid_t pid, unw_addr_space_t as) in UnwindRemote() argument
71 void *context = _UPT_create(pid); in UnwindRemote()
104 pid_t pid = fork(); in Run() local
105 if (pid == 0) { in Run()
108 } else if (pid < 0) { in Run()
111 if (!DfxPtrace::Attach(pid)) { in Run()
112 DFXLOGE("Failed to attach pid: %{public}d", pid); in Run()
113 TestScopedPidReaper::Kill(pid); in Run()
117 DFXLOGU("pid in Run()
133 GetCacheUnwind(pid_t pid, unw_addr_space_t& as) GetCacheUnwind() argument
147 pid_t pid = fork(); RunCache() local
[all...]
/kernel/linux/linux-5.10/arch/x86/um/os-Linux/
H A Dregisters.c21 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument
23 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
28 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
36 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers()
41 return save_i387_registers(pid, fp_regs); in save_fp_registers()
44 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
46 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
51 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
58 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers()
63 return restore_i387_registers(pid, fp_reg in restore_fp_registers()
68 save_fpx_registers(int pid, unsigned long *fp_regs) save_fpx_registers() argument
75 restore_fpx_registers(int pid, unsigned long *fp_regs) restore_fpx_registers() argument
82 get_fp_registers(int pid, unsigned long *regs) get_fp_registers() argument
90 put_fp_registers(int pid, unsigned long *regs) put_fp_registers() argument
98 arch_init_registers(int pid) arch_init_registers() argument
115 get_fp_registers(int pid, unsigned long *regs) get_fp_registers() argument
120 put_fp_registers(int pid, unsigned long *regs) put_fp_registers() argument
125 arch_init_registers(int pid) arch_init_registers() argument
[all...]
/kernel/linux/linux-6.6/arch/x86/um/os-Linux/
H A Dregisters.c22 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument
24 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
29 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
37 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers()
42 return save_i387_registers(pid, fp_regs); in save_fp_registers()
45 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
47 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
52 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
59 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers()
64 return restore_i387_registers(pid, fp_reg in restore_fp_registers()
69 save_fpx_registers(int pid, unsigned long *fp_regs) save_fpx_registers() argument
76 restore_fpx_registers(int pid, unsigned long *fp_regs) restore_fpx_registers() argument
83 get_fp_registers(int pid, unsigned long *regs) get_fp_registers() argument
91 put_fp_registers(int pid, unsigned long *regs) put_fp_registers() argument
99 arch_init_registers(int pid) arch_init_registers() argument
116 get_fp_registers(int pid, unsigned long *regs) get_fp_registers() argument
121 put_fp_registers(int pid, unsigned long *regs) put_fp_registers() argument
126 arch_init_registers(int pid) arch_init_registers() argument
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/signal_handler/
H A Dsignal_handler_test.cpp61 static bool CheckThreadCrashKeyWords(const string& filePath, pid_t pid, int sig) in CheckThreadCrashKeyWords() argument
63 if (filePath.empty() || pid <= 0) { in CheckThreadCrashKeyWords()
77 "Pid:" + to_string(pid), "Uid:", "name:./test_signalhandler", sigKeyword, in CheckThreadCrashKeyWords()
84 static bool CheckCrashKeyWords(const string& filePath, pid_t pid, int sig) in CheckCrashKeyWords() argument
86 if (filePath.empty() || pid <= 0) { in CheckCrashKeyWords()
105 "Pid:" + to_string(pid), "Uid:", "name:./test_signalhandler", sigKeyword, in CheckCrashKeyWords()
144 pid_t pid = fork(); in HWTEST_F() local
145 if (pid < 0) { in HWTEST_F()
147 } else if (pid == 0) { in HWTEST_F()
154 GTEST_LOG_(INFO) << "process(" << getpid() << ") is ready to kill process(" << pid << ")"; in HWTEST_F()
171 pid_t pid = fork(); HWTEST_F() local
198 pid_t pid = fork(); HWTEST_F() local
225 pid_t pid = fork(); HWTEST_F() local
248 pid_t pid = fork(); HWTEST_F() local
271 pid_t pid = fork(); HWTEST_F() local
299 pid_t pid = fork(); HWTEST_F() local
349 pid_t pid = fork(); HWTEST_F() local
379 pid_t pid = fork(); HWTEST_F() local
413 pid_t pid = fork(); HWTEST_F() local
441 pid_t pid = fork(); HWTEST_F() local
475 pid_t pid = fork(); HWTEST_F() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/
H A Dradix_tlb.c29 unsigned int pid, in tlbiel_radix_set_isa300()
36 rs = ((unsigned long)pid << PPC_BITLSHIFT(31)); in tlbiel_radix_set_isa300()
100 static __always_inline void __tlbiel_pid(unsigned long pid, int set, in __tlbiel_pid() argument
107 rs = ((unsigned long)pid) << PPC_BITLSHIFT(31); in __tlbiel_pid()
116 static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) in __tlbie_pid() argument
121 rs = pid << PPC_BITLSHIFT(31); in __tlbie_pid()
158 static __always_inline void __tlbiel_va(unsigned long va, unsigned long pid, in __tlbiel_va() argument
165 rs = pid << PPC_BITLSHIFT(31); in __tlbiel_va()
174 static __always_inline void __tlbie_va(unsigned long va, unsigned long pid, in __tlbie_va() argument
181 rs = pid << PPC_BITLSHIF in __tlbie_va()
28 tlbiel_radix_set_isa300(unsigned int set, unsigned int is, unsigned int pid, unsigned int ric, unsigned int prs) tlbiel_radix_set_isa300() argument
207 fixup_tlbie_va(unsigned long va, unsigned long pid, unsigned long ap) fixup_tlbie_va() argument
221 fixup_tlbie_va_range(unsigned long va, unsigned long pid, unsigned long ap) fixup_tlbie_va_range() argument
235 fixup_tlbie_pid(unsigned long pid) fixup_tlbie_pid() argument
290 _tlbiel_pid(unsigned long pid, unsigned long ric) _tlbiel_pid() argument
326 _tlbie_pid(unsigned long pid, unsigned long ric) _tlbie_pid() argument
352 unsigned long pid; global() member
368 _tlbiel_pid_multicast(struct mm_struct *mm, unsigned long pid, unsigned long ric) _tlbiel_pid_multicast() argument
431 __tlbiel_va_range(unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize) __tlbiel_va_range() argument
442 _tlbiel_va(unsigned long va, unsigned long pid, unsigned long psize, unsigned long ric) _tlbiel_va() argument
452 _tlbiel_va_range(unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize, bool also_pwc) _tlbiel_va_range() argument
463 __tlbie_va_range(unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize) __tlbie_va_range() argument
476 _tlbie_va(unsigned long va, unsigned long pid, unsigned long psize, unsigned long ric) _tlbie_va() argument
488 unsigned long pid; global() member
506 _tlbiel_va_multicast(struct mm_struct *mm, unsigned long va, unsigned long pid, unsigned long psize, unsigned long ric) _tlbiel_va_multicast() argument
518 unsigned long pid; global() member
545 _tlbie_va_range(unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize, bool also_pwc) _tlbie_va_range() argument
556 _tlbiel_va_range_multicast(struct mm_struct *mm, unsigned long start, unsigned long end, unsigned long pid, unsigned long page_size, unsigned long psize, bool also_pwc) _tlbiel_va_range_multicast() argument
584 unsigned long pid = mm->context.id; radix__local_flush_tlb_mm() local
598 unsigned long pid = mm->context.id; radix__local_flush_all_mm() local
618 unsigned long pid = mm->context.id; radix__local_flush_tlb_page_psize() local
665 unsigned long pid = mm->context.id; exit_lazy_flush_tlb() local
836 unsigned long pid; radix__flush_tlb_mm() local
877 unsigned long pid; __flush_all_mm() local
917 unsigned long pid; radix__flush_tlb_page_psize() local
1021 unsigned long pid; __radix__flush_tlb_range() local
1239 unsigned long pid; __radix__flush_tlb_range_psize() local
1318 unsigned long pid, end; radix__flush_tlb_collapsed_pmd() local
1402 __tlbie_pid_lpid(unsigned long pid, unsigned long lpid, unsigned long ric) __tlbie_pid_lpid() argument
1418 __tlbie_va_lpid(unsigned long va, unsigned long pid, unsigned long lpid, unsigned long ap, unsigned long ric) __tlbie_va_lpid() argument
1435 fixup_tlbie_pid_lpid(unsigned long pid, unsigned long lpid) fixup_tlbie_pid_lpid() argument
1455 _tlbie_pid_lpid(unsigned long pid, unsigned long lpid, unsigned long ric) _tlbie_pid_lpid() argument
1481 fixup_tlbie_va_range_lpid(unsigned long va, unsigned long pid, unsigned long lpid, unsigned long ap) fixup_tlbie_va_range_lpid() argument
1497 __tlbie_va_range_lpid(unsigned long start, unsigned long end, unsigned long pid, unsigned long lpid, unsigned long page_size, unsigned long psize) __tlbie_va_range_lpid() argument
1511 _tlbie_va_range_lpid(unsigned long start, unsigned long end, unsigned long pid, unsigned long lpid, unsigned long page_size, unsigned long psize, bool also_pwc) _tlbie_va_range_lpid() argument
1527 do_h_rpt_invalidate_prt(unsigned long pid, unsigned long lpid, unsigned long type, unsigned long pg_sizes, unsigned long start, unsigned long end) do_h_rpt_invalidate_prt() argument
[all...]

Completed in 13 milliseconds

12345678910>>...338