/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() 69 …HILOG_INFO(LOG_CORE, "CreatePluginSession for %s %s!", pluginConfig_.name().c_str(), retval ? "OK"… in Create() 71 CHECK_TRUE(retval, false, "call PluginService::CreatePluginSession failed!"); in Create() 74 return retval; in Create() 92 bool retval = pluginService->DestroyPluginSession(pluginConfig_.name()); in Destroy() local 93 …HILOG_INFO(LOG_CORE, "DestroyPluginSession for %s %s!", pluginConfig_.name().c_str(), retval ? "OK… in Destroy() 94 CHECK_TRUE(retval, false, "call PluginService::DestroyPluginSession failed!"); in Destroy() [all …]
|
D | plugin_service.cpp | 418 int retval = 0; in ReadShareMemoryOffline() local 420 retval = traceWriter_->Write(data, size); in ReadShareMemoryOffline() 421 CHECK_TRUE(retval != -1, false, "need to splite file"); in ReadShareMemoryOffline() 422 CHECK_TRUE(retval > 0, false, "write %d bytes failed!", size); in ReadShareMemoryOffline() 426 if (retval == -1) { in ReadShareMemoryOffline() 432 dataFlushSize_ += static_cast<uint32_t>(retval); in ReadShareMemoryOffline() 433 stopTakeDataSize += static_cast<uint32_t>(retval); in ReadShareMemoryOffline() 458 int retval = pluginData->ParseFromArray(reinterpret_cast<const char*>(data), size); in ReadShareMemoryOnline() local 459 CHECK_TRUE(retval, false, "parse %d bytes failed!", size); in ReadShareMemoryOnline()
|
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
D | trace_ops.cpp | 72 int retval = ExecuteCommand(true, true); in ListCategories() local 73 HILOG_INFO(LOG_CORE, "exec %s exit %d!", bin_.c_str(), retval); in ListCategories() 130 int retval = ExecuteCommand(); in EnableCategories() local 131 HILOG_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 HILOG_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 HILOG_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 | 48 int retval = g_mainController->LoadConfig(configData, configSize); in TracePluginStartSession() local 49 CHECK_TRUE(retval == 0, retval, "LoadConfig failed!"); in TracePluginStartSession()
|
D | ftrace_parser.cpp | 563 bool retval = false; in ParseSavedCmdlines() local 575 retval = true; in ParseSavedCmdlines() 582 return retval; in ParseSavedCmdlines() 673 bool retval = false; in ParsePage() local 676 retval = ParsePaddingData(eventHeader); in ParsePage() 677 CHECK_TRUE(retval, false, "parse PADDING data failed!"); in ParsePage() 680 retval = ParseTimeExtend(eventHeader); in ParsePage() 681 CHECK_TRUE(retval, false, "parse TIME_EXTEND failed!"); in ParsePage() 684 retval = ParseTimeStamp(eventHeader); in ParsePage() 685 CHECK_TRUE(retval, false, "parse TIME_STAMP failed!"); in ParsePage() [all …]
|
D | file_utils.cpp | 98 int retval = write(fd, content.data(), content.size()); in WriteFile() local 100 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/services/profiler_service/src/ |
D | trace_file_helper.cpp | 37 int retval = 0; in AddSegment() local 40 retval = SHA256_Update(shaCtx_.get(), data, size); in AddSegment() 41 CHECK_TRUE(retval, false, "[%u] SHA256_Update FAILED, s:%u!", header_.data_.segments, size); in AddSegment() 47 int retval = 0; in Finish() local 48 retval = SHA256_Final(header_.data_.sha256, shaCtx_.get()); in Finish() 49 CHECK_TRUE(retval, false, "[%u] SHA256_Final FAILED!", header_.data_.segments); in Finish()
|
/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/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() 51 T retval = {}; in ParseVectorIntField() local 52 ReadData(start, end, &retval, retvalSize); in ParseVectorIntField() 53 retvalVec.push_back(retval); in ParseVectorIntField()
|
/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 | 196 #define CHECK_NOTNULL(ptr, retval, fmt, ...) … argument 201 …return retval; … 206 #define CHECK_TRUE(expr, retval, fmt, ...) … argument 210 …return retval; … 214 #define CHECK_TRUE(expr, retval, fmt, ...) \ argument 217 return retval; \ 222 #define RETURN_IF(expr, retval, fmt, ...) \ argument 226 return retval; \
|
/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/profiler_service/test/unittest/ |
D | trace_file_writer_test.cpp | 41 int retval = unlink(path.c_str()); in TearDown() local 42 HILOG_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()
|
/developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/default/ |
D | vmscan.proto | 28 int32 retval = 6; field
|
/developtools/profiler/protos/types/plugins/ftrace_data/default/ |
D | vmscan.proto | 28 int32 retval = 6; field
|
/developtools/profiler/host/smartperf/trace_streamer/src/protos/types/plugins/ftrace_data/ |
D | vmscan.proto | 28 int32 retval = 6; field
|
/developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/ |
D | vmscan.proto | 28 int32 retval = 6; field
|
/developtools/profiler/host/smartperf/trace_streamer/src/protos/types/plugins/ftrace_data/default/ |
D | vmscan.proto | 28 int32 retval = 6; field
|