Home
last modified time | relevance | path

Searched refs:pid (Results 201 - 225 of 7589) sorted by relevance

12345678910>>...304

/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dnetdev-times.py142 event['pid'], event['comm']))
232 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec):
235 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
238 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec):
241 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
244 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec):
247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
250 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm,
252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
256 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, com
[all...]
/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/
H A Dwindow_visibility_observer.cpp45 void WindowVisibilityObserver::OnProcessDied(int pid) in OnProcessDied() argument
49 windowVisibleMap_.erase(pid); in OnProcessDied()
50 HILOGD("remove pid=%{public}d from WindowVisibilityObserver", pid); in OnProcessDied()
72 auto pid = info->pid_; in UpdateWindowVisibilityPriorityInner() local
74 HILOGI("MemMgrWindowInfo[pid=%{public}d, uid=%{public}d, winId=%{public}d, visible=%{public}d]", in UpdateWindowVisibilityPriorityInner()
75 pid, uid, windowId, isVisible); in UpdateWindowVisibilityPriorityInner()
77 auto windowInfoPtr = windowVisibleMap_.find(pid); in UpdateWindowVisibilityPriorityInner()
85 windowVisibleMap_.insert(std::make_pair(pid, info)); in UpdateWindowVisibilityPriorityInner()
88 auto windowInfoPtr = windowVisibleMap_.find(pid); in UpdateWindowVisibilityPriorityInner()
151 auto pid = pair.first; CheckMapSize() local
[all...]
/foundation/resourceschedule/qos_manager/services/include/
H A Dconcurrent_task_controller.h58 void QueryRenderServiceMain(pid_t uid, pid_t pid, IntervalReply& queryRs);
59 void QueryRenderServiceRender(pid_t uid, pid_t pid, IntervalReply& queryRs);
60 void QueryHardware(pid_t uid, pid_t pid, IntervalReply& queryRs);
61 void QueryExecutorStart(pid_t uid, pid_t pid, IntervalReply& queryRs);
65 void NewForeground(int uid, int pid);
66 void NewBackground(int uid, int pid);
67 void NewAppStart(int uid, int pid, const std::string& bundleName);
68 void AppKilled(int uid, int pid);
69 void ContinuousTaskProcess(int uid, int pid, int status);
70 void FocusStatusProcess(int uid, int pid, in
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/breakpoints/
H A Dbreakpoint_test_arm64.c81 static bool set_watchpoint(pid_t pid, int size, int wp) in set_watchpoint() argument
98 if (ptrace(PTRACE_SETREGSET, pid, NT_ARM_HW_WATCH, &iov) == 0) in set_watchpoint()
116 pid_t pid = fork(); in run_test() local
119 if (pid < 0) { in run_test()
124 if (pid == 0) in run_test()
127 wpid = waitpid(pid, &status, __WALL); in run_test()
128 if (wpid != pid) { in run_test()
143 if (!set_watchpoint(pid, wp_size, wp)) in run_test()
146 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { in run_test()
154 wpid = waitpid(pid, in run_test()
[all...]
/kernel/linux/linux-5.10/samples/bpf/
H A Doffwaketime_kern.c71 u32 pid; in waker() local
73 pid = _(p->pid); in waker()
78 bpf_map_update_elem(&wokeby, &pid, &woke, BPF_ANY); in waker()
82 static inline int update_counts(void *ctx, u32 pid, u64 delta) in update_counts() argument
93 woke = bpf_map_lookup_elem(&wokeby, &pid); in update_counts()
97 bpf_map_delete_elem(&wokeby, &pid); in update_counts()
127 u32 pid = ctx->prev_pid; local
134 u32 pid = _(p->pid); local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/breakpoints/
H A Dbreakpoint_test_arm64.c81 static bool set_watchpoint(pid_t pid, int size, int wp) in set_watchpoint() argument
98 if (ptrace(PTRACE_SETREGSET, pid, NT_ARM_HW_WATCH, &iov) == 0) in set_watchpoint()
116 pid_t pid = fork(); in run_test() local
119 if (pid < 0) { in run_test()
124 if (pid == 0) in run_test()
127 wpid = waitpid(pid, &status, __WALL); in run_test()
128 if (wpid != pid) { in run_test()
143 if (!set_watchpoint(pid, wp_size, wp)) in run_test()
146 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { in run_test()
154 wpid = waitpid(pid, in run_test()
[all...]
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/include/
H A Dcgroup_event_handler.h38 void HandleApplicationStateChanged(uid_t uid, pid_t pid, const std::string& bundleName, int32_t state);
39 void HandleProcessStateChanged(uid_t uid, pid_t pid, const std::string& bundleName, int32_t state);
40 void HandleAbilityStateChanged(uid_t uid, pid_t pid, const std::string& bundleName,
42 void HandleExtensionStateChanged(uid_t uid, pid_t pid, const std::string& bundleName,
44 void HandleProcessCreated(uid_t uid, pid_t pid, int32_t hostPid, int32_t processType,
46 void HandleProcessDied(uid_t uid, pid_t pid, const std::string& bundleName);
47 void HandleTransientTaskStart(uid_t uid, pid_t pid, const std::string& packageName);
48 void HandleTransientTaskEnd(uid_t uid, pid_t pid, const std::string& packageName);
49 void HandleContinuousTaskCancel(uid_t uid, pid_t pid, int32_t typeId, int32_t abilityId);
51 uid_t uid, pid_t pid, cons
[all...]
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_callback_test.cpp39 static int32_t TransServerOnChannelOpened(const char *pkgName, int32_t pid, const char *sessionName, in TransServerOnChannelOpened() argument
45 static int32_t TransServerOnChannelClosed(const char *pkgName, int32_t pid, in TransServerOnChannelClosed() argument
51 static int32_t TransServerOnChannelOpenFailed(const char *pkgName, int32_t pid, int32_t channelId, in TransServerOnChannelOpenFailed() argument
57 static int32_t TransServerOnMsgReceived(const char *pkgName, int32_t pid, int32_t channelId, int32_t channelType, in TransServerOnMsgReceived() argument
73 int32_t TransGetUidAndPid(const char *sessionName, int32_t *uid, int32_t *pid) in TransGetUidAndPid() argument
78 static int32_t TransServerOnChannelBind(const char *pkgName, int32_t pid, int32_t channelId, int32_t channelType) in TransServerOnChannelBind() argument
124 int32_t pid = PID; in HWTEST_F() local
129 ret = TransTdcOnChannelOpened(pkgName, pid, sessionName, channel); in HWTEST_F()
144 int32_t pid = PID; in HWTEST_F() local
150 ret = TransTdcOnChannelClosed(pkgName, pid, channelI in HWTEST_F()
166 int32_t pid = PID; HWTEST_F() local
204 int32_t pid = PID; HWTEST_F() local
222 int32_t pid = PID; HWTEST_F() local
242 int32_t pid = PID; HWTEST_F() local
[all...]
/third_party/selinux/libselinux/src/
H A Dprocattr.c83 static int openattr(pid_t pid, const char *attr, int flags) in openattr() argument
89 if (pid > 0) { in openattr()
90 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr); in openattr()
91 } else if (pid == 0) { in openattr()
115 pid_t pid, const char *attr) in getprocattrcon_raw()
159 fd = openattr(pid, attr, O_RDONLY | O_CLOEXEC); in getprocattrcon_raw()
198 pid_t pid, const char *attr) in getprocattrcon()
203 ret = getprocattrcon_raw(&rcontext, pid, attr); in getprocattrcon()
214 pid_t pid, const char *attr) in setprocattrcon_raw()
251 fd = openattr(pid, att in setprocattrcon_raw()
114 getprocattrcon_raw(char ** context, pid_t pid, const char *attr) getprocattrcon_raw() argument
197 getprocattrcon(char ** context, pid_t pid, const char *attr) getprocattrcon() argument
213 setprocattrcon_raw(const char * context, pid_t pid, const char *attr) setprocattrcon_raw() argument
282 setprocattrcon(const char * context, pid_t pid, const char *attr) setprocattrcon() argument
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilityappfreezemanager_fuzzer/
H A Dabilityappfreezemanager_fuzzer.cpp65 int32_t pid = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
67 freeze->IsProcessDebug(pid, processName); in DoSomethingInterestingWithMyAPI()
68 freeze->IsNeedIgnoreFreezeEvent(pid); in DoSomethingInterestingWithMyAPI()
69 freeze->CancelAppFreezeDetect(pid, bundleName); in DoSomethingInterestingWithMyAPI()
70 freeze->ResetAppfreezeState(pid, bundleName); in DoSomethingInterestingWithMyAPI()
71 freeze->IsValidFreezeFilter(pid, bundleName); in DoSomethingInterestingWithMyAPI()
73 freeze->GetBinderPeerPids(stack, pid); in DoSomethingInterestingWithMyAPI()
75 freeze->FindStackByPid(ret, pid); in DoSomethingInterestingWithMyAPI()
77 freeze->CatchJsonStacktrace(pid, faultType); in DoSomethingInterestingWithMyAPI()
78 freeze->CatcherStacktrace(pid); in DoSomethingInterestingWithMyAPI()
[all...]
/foundation/multimedia/av_codec/services/services/sa_avcodec/ipc/
H A Davcodec_service_stub.cpp43 int32_t AVCodecServiceStub::DestroyStubForPid(pid_t pid) in DestroyStubForPid() argument
50 auto itDeath = deathRecipientMap_.find(pid); in DestroyStubForPid()
61 auto itListener = avCodecListenerMap_.find(pid); in DestroyStubForPid()
73 AVCodecServerManager::GetInstance().DestroyStubObjectForPid(pid); in DestroyStubForPid()
99 void AVCodecServiceStub::ClientDied(pid_t pid) in ClientDied() argument
101 AVCODEC_LOGE("client is dead, pid:%{public}d", pid); in ClientDied()
102 (void)DestroyStubForPid(pid); in ClientDied()
110 pid_t pid = IPCSkeleton::GetCallingPid(); in SetDeathListener() local
112 if (it->first == pid) { in SetDeathListener()
[all...]
/kernel/linux/common_modules/memory_security/src/
H A Djit_process.c13 struct result_of_find_process find_process_jit_space(struct rb_root *root, int pid) in find_process_jit_space() argument
23 if (now->pid == pid) { in find_process_jit_space()
27 else if (now->pid < pid) { in find_process_jit_space()
30 else if (now->pid > pid) { in find_process_jit_space()
42 int pid, unsigned long cookie, unsigned long *err) in update_process_jit_space()
44 struct result_of_find_process result = find_process_jit_space(root, pid); in update_process_jit_space()
64 process->pid in update_process_jit_space()
41 update_process_jit_space(struct rb_root *root, int pid, unsigned long cookie, unsigned long *err) update_process_jit_space() argument
77 delete_process_jit_space(struct rb_root *root, int pid) delete_process_jit_space() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
H A Dclone3_cap_checkpoint_restore.c45 pid_t pid = -1; in call_clone3_set_tid() local
53 pid = sys_clone3(&args, sizeof(args)); in call_clone3_set_tid()
54 if (pid < 0) { in call_clone3_set_tid()
59 if (pid == 0) { 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()
72 if (waitpid(pid, &status, 0) < 0) { in call_clone3_set_tid()
140 pid_t pid; in TEST() local
153 pid = fork(); in TEST()
154 if (pid in TEST()
[all...]
/kernel/linux/linux-5.10/drivers/pinctrl/mvebu/
H A Dpinctrl-mvebu.h31 * @pid: first pin id handled by this control
49 u8 pid; member
52 int (*mpp_get)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
54 int (*mpp_set)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
56 int (*mpp_gpio_req)(struct mvebu_mpp_ctrl_data *data, unsigned pid);
57 int (*mpp_gpio_dir)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
96 * @pid: first pin id handled by this mode
100 * given by pid.
103 u8 pid; member
136 .pid
[all...]
/kernel/linux/linux-6.6/drivers/pinctrl/mvebu/
H A Dpinctrl-mvebu.h31 * @pid: first pin id handled by this control
49 u8 pid; member
52 int (*mpp_get)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
54 int (*mpp_set)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
56 int (*mpp_gpio_req)(struct mvebu_mpp_ctrl_data *data, unsigned pid);
57 int (*mpp_gpio_dir)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
96 * @pid: first pin id handled by this mode
100 * given by pid.
103 u8 pid; member
136 .pid
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/clone3/
H A Dclone3_cap_checkpoint_restore.c45 pid_t pid = -1; in call_clone3_set_tid() local
53 pid = sys_clone3(&args, sizeof(args)); in call_clone3_set_tid()
54 if (pid < 0) { in call_clone3_set_tid()
59 if (pid == 0) { 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()
72 if (waitpid(pid, &status, 0) < 0) { in call_clone3_set_tid()
140 pid_t pid; in TEST() local
153 pid = fork(); in TEST()
154 if (pid in TEST()
[all...]
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/
H A Dcgroup_fj_function.sh39 if ! attach_and_check "$pid" "$start_path/ltp_1"; then
44 if ! attach_and_check "$pid" "$start_path"; then
101 if ! attach_and_check "$pid" "$start_path/ltp_1"; then
102 tst_res TFAIL "Failed to attach $pid to $start_path/ltp_1"
107 tst_res TFAIL "Removed $start_path/ltp_1 which contains task $pid"
111 tst_res TPASS "Group $start_path/ltp_1 with task $pid cannot be removed"
119 for pid in $(cat "$start_path/ltp_1/$task_list"); do
120 echo $pid > "$mount_point/$task_list" 2> /dev/null
138 ROD echo "$pid" \> "$start_path/ltp_1/$task_list"
223 pid
[all...]
/third_party/toybox/toys/other/
H A Dtaskset.c38 #define sched_setaffinity(pid, size, cpuset) \
39 syscall(__NR_sched_setaffinity, (pid_t)pid, (size_t)size, (void *)cpuset)
40 #define sched_getaffinity(pid, size, cpuset) \
41 syscall(__NR_sched_getaffinity, (pid_t)pid, (size_t)size, (void *)cpuset)
46 static void do_taskset(pid_t pid, int quiet) in do_taskset() argument
56 if (-1 == sched_getaffinity(pid, sizeof(toybuf), (void *)mask)) in do_taskset()
57 perror_exit(failed, "get", pid); in do_taskset()
59 printf("pid %d's %s affinity mask: ", pid, i ? "new" : "current"); in do_taskset()
86 if (-1 == sched_setaffinity(pid, sizeo in do_taskset()
107 pid_t pid = strtol(toys.optargs[toys.optc-1], &c, 10); taskset_main() local
[all...]
/kernel/linux/linux-6.6/kernel/bpf/
H A Dbpf_task_storage.c7 #include <linux/pid.h>
95 struct pid *pid; in bpf_pid_task_storage_lookup_elem() local
99 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_lookup_elem()
100 if (IS_ERR(pid)) in bpf_pid_task_storage_lookup_elem()
101 return ERR_CAST(pid); in bpf_pid_task_storage_lookup_elem()
107 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_lookup_elem()
116 put_pid(pid); in bpf_pid_task_storage_lookup_elem()
119 put_pid(pid); in bpf_pid_task_storage_lookup_elem()
129 struct pid *pi in bpf_pid_task_storage_update_elem() local
180 struct pid *pid; bpf_pid_task_storage_delete_elem() local
[all...]
/foundation/resourceschedule/memmgr/test/unittest/phone/
H A Dreclaim_priority_manager_test.cpp85 int pid; member
93 return CallerRequest({caller.pid, caller.uid, caller.bundleName}, in CreateUpdateRequestForExtension()
94 {target.pid, target.uid, target.bundleName}, reason); in CreateUpdateRequestForExtension()
97 static inline UpdateRequest CreateUpdateRequest(int pid, int uid, in CreateUpdateRequest() argument
100 return SingleRequest({pid, uid, "", bundleName}, reason); in CreateUpdateRequest()
129 int pid = 10001; in HWTEST_F() local
134 UpdateRequest request1 = CreateUpdateRequest(pid, uid, in HWTEST_F()
138 bool isProcExist = ReclaimPriorityManager::GetInstance().IsProcExist(pid, uid, accountId); in HWTEST_F()
140 isProcExist = ReclaimPriorityManager::GetInstance().IsProcExist(pid+1, uid, accountId); in HWTEST_F()
143 UpdateRequest request2 = CreateUpdateRequest(pid, ui in HWTEST_F()
150 int pid = 10002; HWTEST_F() local
201 int pid = 10006; HWTEST_F() local
223 int pid = 10007; HWTEST_F() local
257 int pid = 10008; HWTEST_F() local
299 int pid = 10009; HWTEST_F() local
328 int pid = 10010; HWTEST_F() local
361 int pid = 10011; HWTEST_F() local
388 int pid = 10012; HWTEST_F() local
420 int pid = 10015; HWTEST_F() local
436 int pid = 10020; HWTEST_F() local
455 int pid = 10023; HWTEST_F() local
476 int pid = 10024; HWTEST_F() local
493 int pid = 10016; HWTEST_F() local
801 int32_t pid = 11667; HWTEST_F() local
837 int32_t pid = 11669; HWTEST_F() local
872 int32_t pid = 11998; HWTEST_F() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wan/
H A Dhdlc_ppp.c66 u16 pid; /* protocol ID */ member
109 static inline struct proto* get_proto(struct net_device *dev, u16 pid) in get_proto() argument
113 switch (pid) { in get_proto()
125 static inline const char* proto_name(u16 pid) in proto_name() argument
127 switch (pid) { in proto_name()
204 static void ppp_tx_cp(struct net_device *dev, u16 pid, u8 code, in ppp_tx_cp() argument
217 if (pid == PID_LCP && (code == LCP_ECHO_REQ || code == LCP_ECHO_REPLY)) in ppp_tx_cp()
247 proto_name(pid), code_names[code], id, debug_buffer); in ppp_tx_cp()
250 ppp_hard_header(skb, dev, pid, NULL, NULL, 0); in ppp_tx_cp()
302 static void ppp_cp_event(struct net_device *dev, u16 pid, u1 argument
373 ppp_cp_parse_cr(struct net_device *dev, u16 pid, u8 id, unsigned int req_len, const u8 *data) ppp_cp_parse_cr() argument
445 u16 pid; ppp_rx() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wan/
H A Dhdlc_ppp.c66 u16 pid; /* protocol ID */ member
110 static inline struct proto *get_proto(struct net_device *dev, u16 pid) in get_proto() argument
114 switch (pid) { in get_proto()
126 static inline const char *proto_name(u16 pid) in proto_name() argument
128 switch (pid) { in proto_name()
204 static void ppp_tx_cp(struct net_device *dev, u16 pid, u8 code, in ppp_tx_cp() argument
217 if (pid == PID_LCP && (code == LCP_ECHO_REQ || code == LCP_ECHO_REPLY)) in ppp_tx_cp()
246 proto_name(pid), code_names[code], id, debug_buffer); in ppp_tx_cp()
249 ppp_hard_header(skb, dev, pid, NULL, NULL, 0); in ppp_tx_cp()
299 static void ppp_cp_event(struct net_device *dev, u16 pid, u1 argument
369 ppp_cp_parse_cr(struct net_device *dev, u16 pid, u8 id, unsigned int req_len, const u8 *data) ppp_cp_parse_cr() argument
442 u16 pid; ppp_rx() local
[all...]
/test/xts/acts/kernel_lite/mem_posix/src/
H A DMremapApiTest.cpp83 pid_t pid = fork(); in HWTEST_F() local
84 EXPECT_TRUE(pid >= 0) << "Fork Error"; in HWTEST_F()
85 if (pid == 0) { in HWTEST_F()
99 WaitProcExitedOK(pid); in HWTEST_F()
125 pid_t pid = fork(); in HWTEST_F() local
126 EXPECT_TRUE(pid >= 0) << "Fork Error"; in HWTEST_F()
127 if (pid == 0) { in HWTEST_F()
137 ExpectProcCrashed(pid); in HWTEST_F()
165 pid_t pid = fork(); in HWTEST_F() local
166 EXPECT_TRUE(pid > in HWTEST_F()
209 pid_t pid = fork(); HWTEST_F() local
255 pid_t pid = fork(); HWTEST_F() local
307 pid_t pid = fork(); HWTEST_F() local
359 pid_t pid = fork(); HWTEST_F() local
415 pid_t pid = fork(); HWTEST_F() local
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/permission/
H A Dpermission_helper.h28 * @param pid The app's process id.
32 static int VerifyPermission(const std::string &permissionName, const int &pid, const int &uid);
46 * @param pid The app's process id.
50 static int VerifyUseBluetoothPermission(const int &pid, const int &uid);
55 * @param pid The app's process id.
59 static int VerifyDiscoverBluetoothPermission(const int &pid, const int &uid);
64 * @param pid The app's process id.
68 static int VerifyManageBluetoothPermission(const int &pid, const int &uid);
73 * @param pid The app's process id.
77 static int VerifyLocationPermission(const int &pid, cons
[all...]
/kernel/linux/build/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/
H A Dmem_debug08.sh33 local pid=$(cat /proc/ashmem_process_info | awk 'NR>3 && $2!="" {print $2}' | sort -u)
38 tst_res TPASS "The following $line ashmem processes have been found(PID): $pid."
42 for p in $pid
52 local pid=$1
53 tst_res TINFO "pid is $pid ."
55 local ashmem_info_lines=$(cat /proc/$pid/smaps | grep ashmem | wc -l)
58 tst_res TFAIL "Cannot find ashmem information of $pid .Ashmem information display test failed!"
60 tst_res TPASS "$pid totally found $ashmem_info_lines ashmem messages.Ashmem information display test pass."

Completed in 12 milliseconds

12345678910>>...304