Lines Matching refs:sr
164 void DumpSampleRecord(const SampleRecord& sr);
165 void DumpSampleCallchain(const SampleRecord& sr);
530 void MonitorCommand::DumpSampleRecord(const SampleRecord& sr) { in DumpSampleRecord() argument
532 StringAppendF(&output, " name=%s", event_names_[sr.id_data.id].c_str()); in DumpSampleRecord()
533 StringAppendF(&output, " ip=%p", reinterpret_cast<void*>(sr.ip_data.ip)); in DumpSampleRecord()
534 SymbolInfo s = GetSymbolInfo(sr.tid_data.pid, sr.tid_data.tid, sr.ip_data.ip, sr.InKernel()); in DumpSampleRecord()
537 StringAppendF(&output, " pid=%u tid=%u", sr.tid_data.pid, sr.tid_data.tid); in DumpSampleRecord()
538 StringAppendF(&output, " cpu=%u", sr.cpu_data.cpu); in DumpSampleRecord()
543 void MonitorCommand::DumpSampleCallchain(const SampleRecord& sr) { in DumpSampleCallchain() argument
544 bool in_kernel = sr.InKernel(); in DumpSampleCallchain()
545 if (sr.sample_type & PERF_SAMPLE_CALLCHAIN) { in DumpSampleCallchain()
546 for (size_t i = 0; i < sr.callchain_data.ip_nr; ++i) { in DumpSampleCallchain()
547 if (sr.callchain_data.ips[i] >= PERF_CONTEXT_MAX) { in DumpSampleCallchain()
548 if (sr.callchain_data.ips[i] == PERF_CONTEXT_USER) { in DumpSampleCallchain()
554 GetSymbolInfo(sr.tid_data.pid, sr.tid_data.tid, sr.callchain_data.ips[i], in_kernel); in DumpSampleCallchain()