/developtools/profiler/device/services/plugin_service/src/ |
D | plugin_session.cpp | 62 bool retval = false; in Create() local 64 retval = pluginService->CreatePluginSession(pluginConfig_, bufferConfig_, dataRepeater_); in Create() 66 retval ? "OK" : "FAIL"); in Create() 68 retval = pluginService->CreatePluginSession(pluginConfig_, dataRepeater_); in Create() 70 pluginConfig_.name().c_str(), retval ? "OK" : "FAIL"); in Create() 72 CHECK_TRUE(retval, false, "call PluginService::CreatePluginSession failed!"); in Create() 75 return retval; in Create() 93 bool retval = pluginService->DestroyPluginSession(pluginConfig_.name()); in Destroy() local 95 pluginConfig_.name().c_str(), retval ? "OK" : "FAIL"); in Destroy() 96 CHECK_TRUE(retval, false, "call PluginService::DestroyPluginSession failed!"); in Destroy() [all …]
|
D | plugin_service.cpp | 440 int retval = 0; in ReadShareMemoryOffline() local 442 retval = traceWriter_->Write(data, size); in ReadShareMemoryOffline() 443 CHECK_TRUE(retval != -1, false, "need to splite file"); in ReadShareMemoryOffline() 444 CHECK_TRUE(retval > 0, false, "write %d bytes failed!", size); in ReadShareMemoryOffline() 448 if (retval == -1) { in ReadShareMemoryOffline() 454 dataFlushSize_ += static_cast<uint32_t>(retval); in ReadShareMemoryOffline() 455 stopTakeDataSize += static_cast<uint32_t>(retval); in ReadShareMemoryOffline() 482 int retval = pluginData->ParseFromArray(reinterpret_cast<const char*>(data), size); in ReadShareMemoryOnline() local 483 CHECK_TRUE(retval, false, "parse %d bytes failed!", size); in ReadShareMemoryOnline() 502 int retval = traceWriter_->Write(data, size); in FlushShareMemory() local [all …]
|
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
D | trace_ops.cpp | 72 int retval = ExecuteCommand(true, true); in ListCategories() local 73 PROFILER_LOG_INFO(LOG_CORE, "exec %s exit %d!", bin_.c_str(), retval); in ListCategories() 130 int retval = ExecuteCommand(); in EnableCategories() local 131 PROFILER_LOG_INFO(LOG_CORE, "exec %s exit %d!", bin_.c_str(), retval); in EnableCategories() 132 CHECK_TRUE(retval == 0, false, "exec %s failed with %d", bin_.c_str(), retval); in EnableCategories() 141 int retval = ExecuteCommand(); in DisableCategories() local 142 PROFILER_LOG_INFO(LOG_CORE, "exec %s exit %d!", bin_.c_str(), retval); in DisableCategories() 145 CHECK_TRUE(retval == 0, false, "exec %s failed with %d", bin_.c_str(), retval); in DisableCategories() 161 int retval = ProcessUtils::Execute(execArgs, output_); in ExecuteCommand() local 162 return retval; in ExecuteCommand()
|
D | ftrace_field_parser.cpp | 64 std::string retval; in ParseStrField() local 66 return retval; in ParseStrField() 79 retval = ReadString(start, end, format.size); in ParseStrField() 85 retval = ReadString(start, end, strSize); in ParseStrField() 87 retval = ReadString(start, end, strSize); in ParseStrField() 94 retval = PrintkFormatsParser::GetInstance().GetSymbol(strPtr); in ParseStrField() 102 retval = ReadString(data + dataOffset, end, dataLength); in ParseStrField() 108 return retval; in ParseStrField()
|
D | process_utils.cpp | 160 int retval = execv(bin.c_str(), argv.data()); in ExecuteProcess() local 162 CHECK_TRUE(retval != -1, false, "execv %s failed, %d!", cmdline.c_str(), errno); in ExecuteProcess() 203 int retval = 0; in GetProcessExitCode() local 205 retval = WEXITSTATUS(wstatus); in GetProcessExitCode() 206 PROFILER_LOG_INFO(LOG_CORE, "process %d exited with status %d", pid, retval); in GetProcessExitCode() 208 retval = -1; in GetProcessExitCode() 211 retval = -1; in GetProcessExitCode() 214 return retval; in GetProcessExitCode() 245 int retval = GetProcessExitCode(pid); in Execute() local 249 if (retval != 0 && cmdline != "hitrace -l") { in Execute() [all …]
|
D | ftrace_module.cpp | 47 int retval = g_mainController->LoadConfig(configData, configSize); in TracePluginStartSession() local 48 CHECK_TRUE(retval == 0, retval, "LoadConfig failed!"); in TracePluginStartSession()
|
D | file_utils.cpp | 102 int retval = write(fd, content.data(), content.size()); in WriteFile() local 104 return retval; in WriteFile()
|
/developtools/profiler/hiebpf/include/ |
D | fstrace_progs.h | 52 int BPF_KRETPROBE(do_sys_openat2_exit, int64_t retval) in BPF_KRETPROBE() argument 58 return emit_event(ctx, retval, FSTRACE); in BPF_KRETPROBE() 91 int BPF_KRETPROBE(ksys_read_exit, int64_t retval) in BPF_KRETPROBE() argument 97 return emit_event(ctx, retval, FSTRACE); in BPF_KRETPROBE() 130 int BPF_KRETPROBE(ksys_write_exit, int64_t retval) in BPF_KRETPROBE() argument 136 return emit_event(ctx, retval, FSTRACE); in BPF_KRETPROBE() 170 int BPF_KRETPROBE(ksys_pread64_exit, int64_t retval) in BPF_KRETPROBE() argument 176 return emit_event(ctx, retval, FSTRACE); in BPF_KRETPROBE() 210 int BPF_KRETPROBE(ksys_pwrite64_exit, int64_t retval) in BPF_KRETPROBE() argument 216 return emit_event(ctx, retval, FSTRACE); in BPF_KRETPROBE() [all …]
|
D | hhlog.h | 187 #define CHECK_NOTNULL(ptr, retval, fmt, ...) … argument 192 …return retval; … 196 #define CHECK_TRUE(expr, retval, fmt, ...) … argument 200 …return retval; …
|
D | hiebpf_types.h | 31 int32_t retval; member
|
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
D | file_utils_test.cpp | 109 int retval = FileUtils::WriteFile(path, data_, O_CREAT | O_RDWR, FILE_MODE); variable 110 EXPECT_EQ(retval, nbytes); // expect write success! 127 int retval = FileUtils::WriteFile(path, data_); variable 128 EXPECT_LT(retval, 0); 141 int retval = FileUtils::WriteFile(path, data_, O_CREAT | O_RDWR, FILE_MODE); variable 142 EXPECT_EQ(retval, nbytes); 159 int retval = FileUtils::WriteFile(path, data_); variable 160 EXPECT_LT(retval, 0);
|
/developtools/profiler/device/services/profiler_service/src/ |
D | trace_file_helper.cpp | 40 int retval = SHA256_Update(shaCtx_.get(), data, size); in AddSegment() local 41 …CHECK_TRUE(retval, false, "[%u] SHA256_Update FAILED, s:%u, d:%p!", header_.data_.segments, size, … in AddSegment() 48 int retval = 0; in Finish() local 49 retval = SHA256_Final(header_.data_.sha256, shaCtx_.get()); in Finish() 50 CHECK_TRUE(retval, false, "[%u] SHA256_Final FAILED!", header_.data_.segments); in Finish()
|
/developtools/profiler/device/plugins/ftrace_plugin/include/ |
D | ftrace_field_parser.h | 29 T retval = {}; in ParseIntField() local 32 ReadData(start, end, &retval, format.size); in ParseIntField() 33 return retval; in ParseIntField() 52 T retval = {}; in ParseVectorIntField() local 53 ReadData(start, end, &retval, retvalSize); in ParseVectorIntField() 54 retvalVec.push_back(retval); in ParseVectorIntField()
|
D | ftrace_parser.h | 61 bool retval = false; in ParsePage() local 64 retval = ParsePaddingData(eventHeader); in ParsePage() 65 CHECK_TRUE(retval, false, "parse PADDING data failed!"); in ParsePage() 68 retval = ParseTimeExtend(eventHeader); in ParsePage() 69 CHECK_TRUE(retval, false, "parse TIME_EXTEND failed!"); in ParsePage() 72 retval = ParseTimeStamp(eventHeader); in ParsePage() 73 CHECK_TRUE(retval, false, "parse TIME_STAMP failed!"); in ParsePage() 76 retval = ParseDataRecord(eventHeader, ftraceCpuDetailMsg, ftraceEvent); in ParsePage() 77 CHECK_TRUE(retval, false, "parse record data failed!"); in ParsePage()
|
/developtools/smartperf_host/trace_streamer/src/base/ |
D | log.h | 55 #define TS_CHECK_TRUE_RET(expression, retval, ...) \ argument 58 return retval; \ 62 #define TS_CHECK_TRUE(expression, retval, formate, ...) \ argument 66 return retval; \
|
/developtools/profiler/device/base/src/ |
D | event_notifier.cpp | 73 int retval = TEMP_FAILURE_RETRY(read(fd_, &value, sizeof(value))); in Take() local 74 CHECK_TRUE(retval == sizeof(value), 0, "read value from eventfd %d failed, %d!", fd_, errno); in Take() 80 int retval = TEMP_FAILURE_RETRY(write(fd_, &value, sizeof(value))); in Post() local 81 CHECK_TRUE(retval == sizeof(value), false, "write value to eventfd %d failed, %d!", fd_, errno); in Post()
|
D | epoll_event_poller.cpp | 110 int retval = epoll_ctl(epollFd_, op, ctx->fd, &event); in UpdateEvent() local 111 CHECK_TRUE(retval == 0, false, "epoll_ctl %s failed, %d", name.c_str(), errno); in UpdateEvent() 125 … int retval = TEMP_FAILURE_RETRY(epoll_wait(epollFd_, eventVec.data(), eventVec.size(), timeOut_)); in Run() local 126 CHECK_TRUE(retval >= 0, NO_RETVAL, "epoll_wait failed, %d!", errno); in Run() 127 if (retval == 0) { in Run() 131 for (int i = 0; i < retval; i++) { in Run()
|
/developtools/profiler/device/base/include/ |
D | logging.h | 184 #define CHECK_NOTNULL(ptr, retval, fmt, ...) … argument 190 …return retval; … 195 #define CHECK_TRUE(expr, retval, fmt, ...) … argument 201 …return retval; … 205 #define CHECK_TRUE(expr, retval, fmt, ...) \ argument 208 return retval; \ 213 #define RETURN_IF(expr, retval, fmt, ...) \ argument 217 return retval; \
|
/developtools/profiler/device/plugins/native_daemon/include/ |
D | debug_logger.h | 306 #define UNWIND_CHECK_NOTNULL(ptr, retval, fmt, ...) … argument 311 …return retval; … 315 #define UNWIND_CHECK_TRUE(expr, retval, fmt, ...) … argument 319 …return retval; … 368 #define UNWIND_CHECK_NOTNULL(ptr, retval, fmt, ...) … argument 371 …return retval; … 375 #define UNWIND_CHECK_TRUE(expr, retval, fmt, ...) … argument 378 …return retval; …
|
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/ |
D | ftrace_field_processor.h | 53 T retval = {}; in HandleVectorIntField() local 54 HandleTypeData(start, end, &retval, curValueSize); in HandleVectorIntField() 55 curValueVec.push_back(retval); in HandleVectorIntField()
|
D | ftrace_processor.cpp | 619 bool retval = false; in HandlePage() local 622 retval = HandlePaddingData(eventHeader); in HandlePage() 623 TS_CHECK_TRUE(retval, false, "parse PADDING data failed!"); in HandlePage() 626 retval = HandleTimeExtend(eventHeader); in HandlePage() 627 TS_CHECK_TRUE(retval, false, "parse TIME_EXTEND failed!"); in HandlePage() 630 retval = HandleTimeStamp(eventHeader); in HandlePage() 631 TS_CHECK_TRUE(retval, false, "parse TIME_STAMP failed!"); in HandlePage() 634 retval = HandleDataRecord(eventHeader, cpuMsg, cpuDetailParser); in HandlePage() 635 TS_CHECK_TRUE(retval, false, "parse record data failed!"); in HandlePage()
|
/developtools/profiler/hiebpf/src/ |
D | hiebpf.bpf.c | 113 int emit_fstrace_event(void* ctx, int64_t retval) in emit_fstrace_event() argument 146 cmplt_event->retval = retval; in emit_fstrace_event() 244 int handle_return_value(struct pftrace_cmplt_event_t* cmplt_event, long long retval) in handle_return_value() argument 248 struct file *fpin = (struct file *) retval; in handle_return_value() 262 vm_fault_t vmf_flags = (vm_fault_t) retval; in handle_return_value() 276 int emit_pftrace_event(void* ctx, int64_t retval) in emit_pftrace_event() argument 314 err = handle_return_value(cmplt_event, retval); in emit_pftrace_event() 339 int emit_event(void* ctx, int64_t retval, u32 tracer) in emit_event() argument 342 case FSTRACE: return emit_fstrace_event(ctx, retval); in emit_event() 343 case PFTRACE: return emit_pftrace_event(ctx, retval); in emit_event() [all …]
|
/developtools/profiler/device/services/shared_memory/test/unittest/ |
D | shared_memory_block_test.cpp | 473 int retval = pluginData.ParseFromArray(reinterpret_cast<const char*>(data), size); in __anonbe641bce0402() local 474 EXPECT_FALSE(retval); in __anonbe641bce0402() 501 int retval = pluginData.ParseFromArray(reinterpret_cast<const char*>(data), size); in __anonbe641bce0602() local 502 EXPECT_TRUE(retval); in __anonbe641bce0602() 538 int retval = pluginData.ParseFromArray(reinterpret_cast<const char*>(data), size); in __anonbe641bce0802() local 539 EXPECT_TRUE(retval); in __anonbe641bce0802()
|
/developtools/profiler/device/services/profiler_service/test/unittest/ |
D | trace_file_writer_test.cpp | 41 int retval = unlink(path.c_str()); in TearDown() local 42 PROFILER_LOG_DEBUG(LOG_CORE, "unlink(%s): %d", path.c_str(), retval); in TearDown()
|
/developtools/profiler/device/plugins/diskio_plugin/test/unittest/ |
D | diskio_data_plugin_unittest.cpp | 207 int retval = execvp(bin.c_str(), argv.data()); in ExecuteBin() local 208 CHECK_TRUE(retval != -1, false, "execv %s failed, %d!", bin.c_str(), errno); in ExecuteBin()
|