Lines Matching refs:callchain_data
450 MoveFromBinaryFormat(callchain_data.ip_nr, p); in SampleRecord()
451 callchain_data.ips = reinterpret_cast<uint64_t*>(p); in SampleRecord()
452 p += callchain_data.ip_nr * sizeof(uint64_t); in SampleRecord()
511 callchain_data.ip_nr = ips.size(); in SampleRecord()
572 MoveToBinaryFormat(callchain_data.ip_nr, p); in SampleRecord()
573 callchain_data.ips = reinterpret_cast<uint64_t*>(p); in SampleRecord()
604 for (i = 0; i < callchain_data.ip_nr; ++i) { in ExcludeKernelCallChain()
605 if (callchain_data.ips[i] == PERF_CONTEXT_USER) { in ExcludeKernelCallChain()
609 callchain_data.ips[i] = PERF_CONTEXT_USER; in ExcludeKernelCallChain()
611 while (++i < callchain_data.ip_nr) { in ExcludeKernelCallChain()
612 if (callchain_data.ips[i] < PERF_CONTEXT_MAX) { in ExcludeKernelCallChain()
614 ip_data.ip = callchain_data.ips[i]; in ExcludeKernelCallChain()
631 for (size_t i = 0; i < callchain_data.ip_nr; ++i) { in HasUserCallChain()
632 if (in_user_context && callchain_data.ips[i] < PERF_CONTEXT_MAX) { in HasUserCallChain()
635 if (callchain_data.ips[i] == PERF_CONTEXT_USER) { in HasUserCallChain()
644 for (size_t i = 0; i < callchain_data.ip_nr; ++i) { in UpdateUserCallChain()
645 if (callchain_data.ips[i] == PERF_CONTEXT_USER) { in UpdateUserCallChain()
650 if (kernel_ip_count + 1 + user_ips.size() <= callchain_data.ip_nr) { in UpdateUserCallChain()
655 size() + (kernel_ip_count + 1 + user_ips.size() - callchain_data.ip_nr) * sizeof(uint64_t); in UpdateUserCallChain()
656 callchain_data.ip_nr = kernel_ip_count; in UpdateUserCallChain()
662 size_t callchain_pos = reinterpret_cast<char*>(callchain_data.ips) - binary_ - sizeof(uint64_t); in BuildBinaryWithNewCallChain()
700 if (callchain_data.ip_nr > 0) { in BuildBinaryWithNewCallChain()
701 p64 -= callchain_data.ip_nr; in BuildBinaryWithNewCallChain()
702 memcpy(p64, callchain_data.ips, callchain_data.ip_nr * sizeof(uint64_t)); in BuildBinaryWithNewCallChain()
704 callchain_data.ips = p64; in BuildBinaryWithNewCallChain()
705 callchain_data.ip_nr += 1 + ips.size(); in BuildBinaryWithNewCallChain()
706 *--p64 = callchain_data.ip_nr; in BuildBinaryWithNewCallChain()
741 PrintIndented(indent, "callchain nr=%" PRIu64 "\n", callchain_data.ip_nr); in DumpData()
742 for (uint64_t i = 0; i < callchain_data.ip_nr; ++i) { in DumpData()
743 PrintIndented(indent + 1, "0x%" PRIx64 "\n", callchain_data.ips[i]); in DumpData()
802 uint64_t* ips = callchain_data.ips; in AdjustCallChainGeneratedByKernel()
806 for (size_t i = 0; i < callchain_data.ip_nr; ++i) { in AdjustCallChainGeneratedByKernel()
843 for (uint64_t i = 0; i < callchain_data.ip_nr; ++i) { in GetCallChain()
844 uint64_t ip = callchain_data.ips[i]; in GetCallChain()