Lines Matching refs:recordSample
370 void SubCommandDump::ExprotUserStack(const PerfRecordSample &recordSample) in ExprotUserStack() argument
372 if (recordSample.data_.reg_nr > 0 and recordSample.data_.dyn_size > 0) { in ExprotUserStack()
375 StringPrintf("hiperf_%d_%d_user_regs_%zu.dump", recordSample.data_.pid, in ExprotUserStack()
376 recordSample.data_.tid, exportSampleIndex_); in ExprotUserStack()
379 fwrite(recordSample.data_.user_regs, sizeof(u64), recordSample.data_.reg_nr, in ExprotUserStack()
383 StringPrintf("hiperf_%d_%d_user_data_%zu.dump", recordSample.data_.pid, in ExprotUserStack()
384 recordSample.data_.tid, exportSampleIndex_); in ExprotUserStack()
387 fwrite(recordSample.data_.stack_data, sizeof(u8), recordSample.data_.dyn_size, in ExprotUserStack()
398 PerfRecordSample *recordSample = static_cast<PerfRecordSample *>(record.get()); in ExprotUserData() local
399 ExprotUserStack(*recordSample); in ExprotUserData()
402 StringPrintf("hiperf_%d_%d_sample_record_%zu_%" PRIu64 ".dump", recordSample->data_.pid, in ExprotUserData()
403 recordSample->data_.tid, exportSampleIndex_, recordSample->data_.time); in ExprotUserData()
407 if (!recordSample->GetBinary(buf)) { in ExprotUserData()
411 fwrite(buf.data(), sizeof(u8), recordSample->GetSize(), fpUserData.get()); in ExprotUserData()
413 HLOGD("export user data index %d time %llu", exportSampleIndex_, recordSample->data_.time); in ExprotUserData()