Lines Matching defs:child
192 pid_t child = fork();
193 if (child == 0) {
198 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid();
199 auto unwinder = std::make_shared<Unwinder>(child);
200 bool unwRet = DfxPtrace::Attach(child);
203 unwRet = unwinder->UnwindRemote(child);
211 unwRet = unwinder->UnwindRemote(child, false, DEFAULT_MAX_FRAME_NUM, skipFrameNum);
216 DfxPtrace::Detach(child);
228 pid_t child = fork();
229 if (child == 0) {
234 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid();
237 bool unwRet = DfxPtrace::Attach(child);
240 auto it = unwinders_.find(child);
244 unwinder = std::make_shared<Unwinder>(child);
247 unwRet = unwinder->UnwindRemote(child);
255 unwinders_[child] = unwinder;
258 DfxPtrace::Detach(child);
287 pid_t child = fork();
288 if (child == 0) {
293 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid();
294 auto unwinder = std::make_shared<Unwinder>(child);
295 bool unwRet = DfxPtrace::Attach(child);
297 auto regs = DfxRegs::CreateRemoteRegs(child);
299 auto maps = DfxMaps::Create(child);
301 context.pid = child;
313 DfxPtrace::Detach(child);
411 pid_t child = fork();
412 if (child == 0) {
417 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid();
418 auto unwinder = std::make_shared<Unwinder>(child);
419 bool unwRet = DfxPtrace::Attach(child);
421 auto regs = DfxRegs::CreateRemoteRegs(child);
422 auto maps = DfxMaps::Create(child);
425 context.pid = child;
437 DfxPtrace::Detach(child);
484 pid_t child = fork();
485 if (child == 0) {
490 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid();
491 auto unwinder = std::make_shared<Unwinder>(child);
492 bool unwRet = DfxPtrace::Attach(child);
494 auto regs = DfxRegs::CreateRemoteRegs(child);
497 context.pid = child;
501 DfxPtrace::Detach(child);
816 FAIL() << "UnwindLocalWithTidTest001: Failed to create child thread.\n";