Searched defs:pid (Results 1 - 25 of 170) sorted by relevance

1234567

/system/core/libbacktrace/
H A DBacktracePtrace.h29 BacktracePtrace(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
H A DBacktraceCurrent.h40 BacktraceCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
H A DUnwindCurrent.h36 UnwindCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : BacktraceCurrent(pid, tid, map) {} argument
H A DBacktraceMap.cpp32 BacktraceMap::BacktraceMap(pid_t pid) : pid_(pid) { argument
66 // Linux /proc/<pid>/maps lines:
139 BacktraceMap* BacktraceMap::Create(pid_t pid, bool /*uncached*/) { argument
140 BacktraceMap* map = new BacktraceMap(pid);
149 BacktraceMap* BacktraceMap::Create(pid_t pid, const std::vector<backtrace_map_t>& maps) { argument
150 BacktraceMap* backtrace_map = new BacktraceMap(pid);
H A DBacktraceOffline.h47 BacktraceOffline(pid_t pid, pid_t tid, BacktraceMap* map, const backtrace_stackinfo_t& stack, argument
49 : Backtrace(pid, tid, map),
/system/core/libunwindstack/
H A DMapInfo.cpp30 Memory* MapInfo::CreateMemory(pid_t pid) { argument
70 if (pid == getpid()) {
73 memory = new MemoryRemote(pid);
78 Elf* MapInfo::GetElf(pid_t pid, bool init_gnu_debugdata) { argument
83 elf = new Elf(CreateMemory(pid));
/system/core/logd/
H A DLogBufferInterface.cpp24 uid_t LogBufferInterface::pidToUid(pid_t pid) { argument
25 return android::pidToUid(pid);
H A DFlushCommand.cpp30 unsigned int logMask, pid_t pid, log_time start,
36 mPid(pid),
29 FlushCommand(LogReader& reader, bool nonBlock, unsigned long tail, unsigned int logMask, pid_t pid, log_time start, uint64_t timeout) argument
H A Dlibaudit.h40 pid_t pid; member in struct:audit_sig_info
82 * Sets a pid to receive audit netlink events from the kernel
85 * @param pid
86 * The pid whom to set as the receiver of audit messages
90 extern int audit_setup(int fd, pid_t pid);
/system/extras/simpleperf/runtest/
H A Dfunction_fork.cpp24 pid_t pid = fork(); local
25 if (pid == 0) {
30 waitpid(pid, nullptr, 0);
/system/extras/tests/cpueater/
H A Dcpueater.c30 pid_t pid; local
45 switch(pid = fork()) {
69 printf("%d\n", pid);
H A Ddaemonize.c33 int pid, fd, mode; local
84 switch(pid = fork()) {
104 switch(pid = fork()) {
117 waitpid(pid, &status, 0);
/system/core/debuggerd/tombstoned/
H A Dtombstoned_client.cpp33 bool tombstoned_connect(pid_t pid, unique_fd* tombstoned_socket, unique_fd* output_fd, argument
47 packet.packet.dump_request.pid = pid;
/system/core/libmemunreachable/
H A DProcessMappings.cpp32 bool ProcessMappings(pid_t pid, allocator::vector<Mapping>& mappings) { argument
34 snprintf(map_buffer, sizeof(map_buffer), "/proc/%d/maps", pid);
/system/extras/iotop/
H A Dtasklist.cpp40 pid_t pid = atoi(entry->d_name); local
41 f(pid);
62 return ScanPidsInDir(filename, [&pid_list](pid_t pid) {
63 pid_list.push_back(pid);
/system/extras/tests/kernel.config/
H A Dsysvipc_test.cpp33 pid_t pid = getpid(); local
34 int ret = kcmp(pid, pid, KCMP_SYSVSEM, 0, 0);
36 EXPECT_EQ(-1, kcmp(pid, pid, KCMP_SYSVSEM, 0, 0));
/system/core/debuggerd/libdebuggerd/
H A Dopen_files_list.cpp38 void populate_open_files_list(pid_t pid, OpenFilesList* list) { argument
39 std::string fd_dir_name = "/proc/" + std::to_string(pid) + "/fd";
/system/core/libbinderwrapper/include/binderwrapper/
H A Dstub_binder_wrapper.h81 void set_calling_pid(pid_t pid) { calling_pid_ = pid; } argument
/system/core/liblog/tests/
H A Dlog_read_test.cpp33 pid_t pid = getpid(); local
39 LOG_ID_MAIN, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 1000, pid)));
43 std::string buf = android::base::StringPrintf("pid=%u ts=%ld.%09ld", pid,
60 EXPECT_EQ(log_msg.entry.pid, pid);
H A Dlog_wrap_test.cpp79 pid_t pid = fork(); local
81 if (pid == 0) {
99 int ret = waitid(P_PID, pid, &info, WEXITED);
111 kill(pid, SIGTERM);
/system/core/libunwindstack/tests/
H A DMapInfoCreateMemoryTest.cpp169 pid_t pid; local
170 if ((pid = fork()) == 0) {
175 ASSERT_LT(0, pid);
177 ASSERT_TRUE(ptrace(PTRACE_ATTACH, pid, 0, 0) != -1);
180 while (TEMP_FAILURE_RETRY(ptrace(PTRACE_GETSIGINFO, pid, 0, &si)) < 0 && errno == ESRCH) {
192 memory.reset(info.CreateMemory(pid));
203 ASSERT_TRUE(ptrace(PTRACE_DETACH, pid, 0, 0) == 0);
205 kill(pid, SIGKILL);
206 ASSERT_EQ(pid, wait(nullptr));
H A DMemoryRemoteTest.cpp48 static bool Attach(pid_t pid) { argument
49 if (ptrace(PTRACE_ATTACH, pid, 0, 0) == -1) {
55 while (TEMP_FAILURE_RETRY(ptrace(PTRACE_GETSIGINFO, pid, 0, &si)) < 0 && errno == ESRCH) {
57 printf("%d: Failed to stop after 10 seconds.\n", pid);
65 static bool Detach(pid_t pid) { argument
66 return ptrace(PTRACE_DETACH, pid, 0, 0) == 0;
76 pid_t pid; local
77 if ((pid = fork()) == 0) {
81 ASSERT_LT(0, pid);
83 ASSERT_TRUE(Attach(pid));
108 pid_t pid; local
149 pid_t pid; local
[all...]
/system/extras/ext4_utils/
H A Dsetup_fs.c18 pid_t pid; local
57 while ((pid=waitpid(-1, &status, 0)) != child) {
58 if (pid == -1) {
/system/tools/hidl/test/
H A Dhidl_test_servers.cpp73 pid_t pid; local
75 if ((pid = fork()) == 0) {
82 gPidList.push_back({serviceName, pid});
86 static void killServer(pid_t pid, const char *serverName) { argument
87 if (kill(pid, SIGTERM)) {
92 waitpid(pid, &status, 0);
/system/core/healthd/
H A DBatteryPropertiesRegistrar.cpp96 const int pid = self->getCallingPid(); local
100 String16("android.permission.DUMP"), pid, uid))

Completed in 9517 milliseconds

1234567