Lines Matching refs:r
86 void ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord() argument
87 if (use_branch_address_ && (r.sample_type & PERF_SAMPLE_BRANCH_STACK)) { in ProcessSampleRecord()
88 for (uint64_t i = 0; i < r.branch_stack_data.stack_nr; ++i) { in ProcessSampleRecord()
89 auto& item = r.branch_stack_data.stack[i]; in ProcessSampleRecord()
91 CreateBranchSample(r, item); in ProcessSampleRecord()
96 bool in_kernel = r.InKernel(); in ProcessSampleRecord()
98 EntryT* sample = CreateSample(r, in_kernel, &acc_info); in ProcessSampleRecord()
104 if (r.sample_type & PERF_SAMPLE_CALLCHAIN) { in ProcessSampleRecord()
105 ips.insert(ips.end(), r.callchain_data.ips, in ProcessSampleRecord()
106 r.callchain_data.ips + r.callchain_data.ip_nr); in ProcessSampleRecord()
111 if (thread != nullptr && (r.sample_type & PERF_SAMPLE_REGS_USER) && in ProcessSampleRecord()
112 (r.regs_user_data.reg_mask != 0) && in ProcessSampleRecord()
113 (r.sample_type & PERF_SAMPLE_STACK_USER) && in ProcessSampleRecord()
114 (r.GetValidStackSize() > 0)) { in ProcessSampleRecord()
115 RegSet regs(r.regs_user_data.abi, r.regs_user_data.reg_mask, r.regs_user_data.regs); in ProcessSampleRecord()
118 if (offline_unwinder_->UnwindCallChain(*thread, regs, r.stack_user_data.data, in ProcessSampleRecord()
119 r.GetValidStackSize(), &user_ips, &sps)) { in ProcessSampleRecord()
145 if (ip == r.ip_data.ip) { in ProcessSampleRecord()
189 virtual EntryT* CreateSample(const SampleRecord& r, bool in_kernel,
191 virtual EntryT* CreateBranchSample(const SampleRecord& r,