Lines Matching refs:recordSample
380 void SubCommandDump::ExprotUserStack(const PerfRecordSample &recordSample) in ExprotUserStack() argument
382 if (recordSample.data_.reg_nr > 0 and recordSample.data_.dyn_size > 0) { in ExprotUserStack()
385 StringPrintf("hiperf_%d_%d_user_regs_%zu.dump", recordSample.data_.pid, in ExprotUserStack()
386 recordSample.data_.tid, exportSampleIndex_); in ExprotUserStack()
389 fwrite(recordSample.data_.user_regs, sizeof(u64), recordSample.data_.reg_nr, in ExprotUserStack()
393 StringPrintf("hiperf_%d_%d_user_data_%zu.dump", recordSample.data_.pid, in ExprotUserStack()
394 recordSample.data_.tid, exportSampleIndex_); in ExprotUserStack()
397 fwrite(recordSample.data_.stack_data, sizeof(u8), recordSample.data_.dyn_size, in ExprotUserStack()
408 PerfRecordSample *recordSample = static_cast<PerfRecordSample *>(record.get()); in ExprotUserData() local
409 ExprotUserStack(*recordSample); in ExprotUserData()
412 StringPrintf("hiperf_%d_%d_sample_record_%zu_%" PRIu64 ".dump", recordSample->data_.pid, in ExprotUserData()
413 recordSample->data_.tid, exportSampleIndex_, recordSample->data_.time); in ExprotUserData()
417 if (!recordSample->GetBinary(buf)) { in ExprotUserData()
421 fwrite(buf.data(), sizeof(u8), recordSample->GetSize(), fpUserData.get()); in ExprotUserData()
423 HLOGD("export user data index %d time %llu", exportSampleIndex_, recordSample->data_.time); in ExprotUserData()