Lines Matching refs:r

108   void CollectHitFileInfo(const SampleRecord& r, const std::vector<uint64_t>& ips);
229 auto& r = *static_cast<SampleRecord*>(record); in ProcessRecord() local
230 if (selected_time_ != 0u && r.Timestamp() != selected_time_) { in ProcessRecord()
234 if ((r.sample_type & need_type) == need_type && r.regs_user_data.reg_mask != 0 && in ProcessRecord()
235 r.GetValidStackSize() > 0) { in ProcessRecord()
236 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in ProcessRecord()
237 RegSet regs(r.regs_user_data.abi, r.regs_user_data.reg_mask, r.regs_user_data.regs); in ProcessRecord()
240 if (!offline_unwinder_->UnwindCallChain(*thread, regs, r.stack_user_data.data, in ProcessRecord()
241 r.GetValidStackSize(), &ips, &sps)) { in ProcessRecord()
250 if (!writer_->WriteRecord(UnwindingResultRecord(r.time_data.time, unwinding_result))) { in ProcessRecord()
256 if (!writer_->WriteRecord(r)) { in ProcessRecord()
259 r.ReplaceRegAndStackWithCallChain(ips); in ProcessRecord()
260 if (!callchain_joiner_.AddCallChain(r.tid_data.pid, r.tid_data.tid, in ProcessRecord()
264 CollectHitFileInfo(r, ips); in ProcessRecord()
272 void DebugUnwindCommand::CollectHitFileInfo(const SampleRecord& r, in CollectHitFileInfo() argument
274 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CollectHitFileInfo()
314 auto record_callback = [&](std::unique_ptr<Record> r) { in JoinCallChains() argument
315 if (r->type() != PERF_RECORD_SAMPLE) { in JoinCallChains()
316 return writer_->WriteRecord(*r); in JoinCallChains()
318 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in JoinCallChains()