/foundation/communication/dsoftbus/core/frame/standard/client_manager/src/ |
H A D | permission_status_change_cb.cpp | 23 if (InformPermissionChange(result.permStateChangeType, this->pkgName.c_str(), pid) != SOFTBUS_OK) { in PermStateChangeCallback() 29 const std::string& permissionName, const std::string& pkgName, int32_t pid) in RegisterDataSyncPermission() 35 std::make_shared<PermissionStatusChangeCb>(scopeInfo, pkgName, pid); in RegisterDataSyncPermission() 28 RegisterDataSyncPermission(const uint32_t& callingTokenId, const std::string& permissionName, const std::string& pkgName, int32_t pid) RegisterDataSyncPermission() argument
|
/foundation/communication/dsoftbus/core/frame/standard/client_manager/include/ |
H A D | permission_status_change_cb.h | 28 : PermStateChangeCallbackCustomize(scopeInfo), pkgName(_pkgName), pid(_pid) {} in PermissionStatusChangeCb() 33 int32_t pid; member in OHOS::PermissionStatusChangeCb 37 const std::string& permissionName, const std::string& pkgName, int32_t pid);
|
/kernel/linux/build/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/ |
H A D | rss_monitor01.sh | 16 # Description: Verify /proc/pid/rss take effect 38 pid=$(ps -ef | grep com.ohos.systemui | awk 'NR==1 {print $2}') 39 rss=$(cat /proc/$pid/rss | awk -F ':' '{print$2}'| awk '{print$1}') 40 statusVMRss=$(cat /proc/$pid/status | grep VmRSS | awk -F ':' '{print$2}' | awk '{print$1}')
|
H A D | rss_monitor03.sh | 16 # Description: Verify /proc/pid/rss_threshold value 34 pid=$(ps -ef | grep com.ohos.systemui | awk 'NR==1 {print $2}') 35 echo 2000 > /proc/$pid/rss_threshold 36 value=$(cat /proc/$pid/rss_threshold | awk -F ':' '{print$2}'| awk '{print$1}')
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_send_signal_kern.c | 7 __u32 sig = 0, pid = 0, status = 0, signal_thread = 0; variable 13 if (status != 0 || sig == 0 || pid == 0) in bpf_send_signal_test() 16 if ((bpf_get_current_pid_tgid() >> 32) == pid) { in bpf_send_signal_test()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_lookup_key.c | 29 __u32 pid; in BPF_PROG() local 31 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() 32 if (pid != monitored_pid) in BPF_PROG()
|
H A D | test_global_map_resize.c | 10 const volatile pid_t pid; variable 37 if (pid != (bpf_get_current_pid_tgid() >> 32)) in bss_array_sum() 52 if (pid != (bpf_get_current_pid_tgid() >> 32)) in data_array_sum()
|
H A D | test_send_signal_kern.c | 7 __u32 sig = 0, pid = 0, status = 0, signal_thread = 0; variable 13 if (status != 0 || pid == 0) in bpf_send_signal_test() 16 if ((bpf_get_current_pid_tgid() >> 32) == pid) { in bpf_send_signal_test()
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/dsa/ |
H A D | test_bridge_fdb_stress.sh | 26 kill $pid && wait $pid &> /dev/null 41 pid=$!
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_pid_container_013.cpp | 35 pid_t pid = getpid(); in ChildFun() local 36 if (pid != 1) { in ChildFun() 42 int ret = sched_rr_get_interval(pid, &ts); in ChildFun()
|
H A D | It_pid_container_022.cpp | 37 pid_t pid = getpid(); in ChildFun() local 39 ret = ohos_capget(pid, &cap); in ChildFun() 44 ret = kill(pid, SIGKILL); in ChildFun()
|
/kernel/linux/linux-6.6/tools/include/nolibc/ |
H A D | stackprotector.h | 24 pid_t pid; in __stack_chk_fail() local 26 pid = my_syscall0(__NR_getpid); in __stack_chk_fail() 27 my_syscall2(__NR_kill, pid, SIGABRT); in __stack_chk_fail()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | test_overhead_kprobe.bpf.c | 21 u32 pid; in prog() local 25 pid = BPF_CORE_READ(tsk, pid); in prog()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
H A D | process_test_047.cpp | 37 int pid; in Testcase() local 60 pid = ret; in Testcase() 63 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
|
/third_party/ltp/testcases/kernel/containers/mountns/ |
H A D | mountns_helper.h | 31 int pid, status; in check_newns() local 36 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWNS, dummy_child, NULL); in check_newns() 37 if (pid == -1) in check_newns()
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns04.c | 39 pid_t pid; in run() local 41 pid = SAFE_CLONE(&args); in run() 42 if (!pid) { in run()
|
/third_party/ltp/testcases/kernel/containers/mqns/ |
H A D | mqns_helper.h | 36 int pid, status; in check_mqns() local 51 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWIPC, dummy_child, NULL); in check_mqns() 52 if (pid == -1) in check_mqns()
|
/third_party/musl/porting/linux/user/src/process/ |
H A D | vfork.c | 21 pid_t parent_pid = self->pid; in vfork() 22 self->pid = 0; in vfork() 27 self->pid = parent_pid; in vfork()
|
/third_party/musl/src/linux/ |
H A D | ptrace.c | 9 pid_t pid; in ptrace() local 14 pid = va_arg(ap, pid_t); in ptrace() 25 ret = syscall(SYS_ptrace, req, pid, addr, data, addr2); in ptrace()
|
/third_party/ltp/testcases/kernel/syscalls/execle/ |
H A D | execle01.c | 21 pid_t pid; in verify_execle() local 31 pid = SAFE_FORK(); in verify_execle() 32 if (pid == 0) { in verify_execle()
|
/third_party/ltp/testcases/kernel/syscalls/execve/ |
H A D | execve06.c | 23 pid_t pid; in verify_execve() local 35 pid = SAFE_FORK(); in verify_execve() 36 if (pid == 0) { in verify_execve()
|
H A D | execve01.c | 22 pid_t pid; in verify_execve() local 34 pid = SAFE_FORK(); in verify_execve() 35 if (pid == 0) { in verify_execve()
|
/third_party/ltp/testcases/kernel/syscalls/execv/ |
H A D | execv01.c | 21 pid_t pid; in verify_execv() local 28 pid = SAFE_FORK(); in verify_execv() 29 if (pid == 0) { in verify_execv()
|
/third_party/ltp/testcases/kernel/syscalls/pipe2/ |
H A D | pipe2_02.c | 30 int pid, status; in verify_pipe2() local 35 pid = SAFE_FORK(); in verify_pipe2() 36 if (pid == 0) in verify_pipe2()
|
/third_party/ltp/testcases/kernel/syscalls/signal/ |
H A D | signal05.c | 37 pid_t pid; in do_test() local 41 pid = getpid(); in do_test() 43 SAFE_KILL(pid, siglist[n]); in do_test()
|