Lines Matching refs:ips
461 callchain_data.ips = reinterpret_cast<uint64_t*>(p); in SampleRecord()
506 const std::vector<uint64_t>& ips, const std::vector<char>& stack, in SampleRecord() argument
522 callchain_data.ip_nr = ips.size(); in SampleRecord()
551 size += sizeof(uint64_t) * (ips.size() + 1); in SampleRecord()
584 callchain_data.ips = reinterpret_cast<uint64_t*>(p); in SampleRecord()
585 MoveToBinaryFormat(ips.data(), ips.size(), p); in SampleRecord()
602 void SampleRecord::ReplaceRegAndStackWithCallChain(const std::vector<uint64_t>& ips) { in ReplaceRegAndStackWithCallChain() argument
603 uint32_t size_added_in_callchain = sizeof(uint64_t) * (ips.size() + 1); in ReplaceRegAndStackWithCallChain()
607 BuildBinaryWithNewCallChain(new_size, ips); in ReplaceRegAndStackWithCallChain()
616 if (callchain_data.ips[i] == PERF_CONTEXT_USER) { in ExcludeKernelCallChain()
620 callchain_data.ips[i] = PERF_CONTEXT_USER; in ExcludeKernelCallChain()
623 if (callchain_data.ips[i] < PERF_CONTEXT_MAX) { in ExcludeKernelCallChain()
625 ip_data.ip = callchain_data.ips[i]; in ExcludeKernelCallChain()
643 if (in_user_context && callchain_data.ips[i] < PERF_CONTEXT_MAX) { in HasUserCallChain()
646 if (callchain_data.ips[i] == PERF_CONTEXT_USER) { in HasUserCallChain()
656 if (callchain_data.ips[i] == PERF_CONTEXT_USER) { in UpdateUserCallChain()
672 const std::vector<uint64_t>& ips) { in BuildBinaryWithNewCallChain() argument
673 size_t callchain_pos = reinterpret_cast<char*>(callchain_data.ips) - binary_ - sizeof(uint64_t); in BuildBinaryWithNewCallChain()
708 p64 -= ips.size(); in BuildBinaryWithNewCallChain()
709 memcpy(p64, ips.data(), ips.size() * sizeof(uint64_t)); in BuildBinaryWithNewCallChain()
713 memcpy(p64, callchain_data.ips, callchain_data.ip_nr * sizeof(uint64_t)); in BuildBinaryWithNewCallChain()
715 callchain_data.ips = p64; in BuildBinaryWithNewCallChain()
716 callchain_data.ip_nr += 1 + ips.size(); in BuildBinaryWithNewCallChain()
754 PrintIndented(indent + 1, "0x%" PRIx64 "\n", callchain_data.ips[i]); in DumpData()
809 uint64_t* ips = callchain_data.ips; in AdjustCallChainGeneratedByKernel() local
814 if (ips[i] < PERF_CONTEXT_MAX) { in AdjustCallChainGeneratedByKernel()
818 if (ips[i] < 2) { in AdjustCallChainGeneratedByKernel()
820 ips[i] = context; in AdjustCallChainGeneratedByKernel()
829 ips[i] -= 2; in AdjustCallChainGeneratedByKernel()
831 ips[i]--; in AdjustCallChainGeneratedByKernel()
836 context = ips[i]; in AdjustCallChainGeneratedByKernel()
842 std::vector<uint64_t> ips; in GetCallChain() local
844 ips.push_back(ip_data.ip); in GetCallChain()
847 return ips; in GetCallChain()
851 uint64_t ip = callchain_data.ips[i]; in GetCallChain()
871 ips.push_back(ip); in GetCallChain()
877 return ips; in GetCallChain()
1181 ips = reinterpret_cast<uint64_t*>(p); in CallChainRecord()
1189 uint64_t time, const std::vector<uint64_t>& ips, in CallChainRecord() argument
1191 CHECK_EQ(ips.size(), sps.size()); in CallChainRecord()
1197 this->ip_nr = ips.size(); in CallChainRecord()
1198 SetSize(header_size() + (4 + ips.size() * 2) * sizeof(uint64_t)); in CallChainRecord()
1207 this->ips = reinterpret_cast<uint64_t*>(p); in CallChainRecord()
1208 MoveToBinaryFormat(ips.data(), ips.size(), p); in CallChainRecord()
1228 PrintIndented(indent + 1, "ip 0x%" PRIx64 ", sp 0x%" PRIx64 "\n", ips[i], sps[i]); in DumpData()