/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | cmd_dumper.cpp | 35 DumpStatus CMDDumper::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 39 return DumpStatus::DUMP_FAIL; in PreExecute() 46 return DumpStatus::DUMP_FAIL; in PreExecute() 59 return DumpStatus::DUMP_FAIL; in PreExecute() 71 return DumpStatus::DUMP_OK; in PreExecute() 74 DumpStatus CMDDumper::Execute() in Execute() 76 DumpStatus ret = DumpStatus::DUMP_OK; in Execute() 87 } while (ret == DumpStatus::DUMP_MORE_DATA); in Execute() 92 DumpStatus CMDDumper::AfterExecute() in AfterExecute() 107 return DumpStatus::DUMP_OK; in AfterExecute() [all …]
|
D | zip_output.cpp | 34 DumpStatus ZipOutput::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 39 return DumpStatus::DUMP_FAIL; in PreExecute() 50 return DumpStatus::DUMP_FAIL; in PreExecute() 54 return DumpStatus::DUMP_OK; in PreExecute() 57 DumpStatus ZipOutput::Execute() in Execute() 60 return DumpStatus::DUMP_FAIL; in Execute() 65 return DumpStatus::DUMP_FAIL; in Execute() 92 return DumpStatus::DUMP_FAIL; in Execute() 102 return DumpStatus::DUMP_OK; in Execute() 105 DumpStatus ZipOutput::CompressAndWriteToFd() in CompressAndWriteToFd() [all …]
|
D | version_dumper.cpp | 31 DumpStatus VersionDumper::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 36 return DumpStatus::DUMP_OK; in PreExecute() 38 return DumpStatus::DUMP_FAIL; in PreExecute() 41 DumpStatus VersionDumper::Execute() in Execute() 46 return DumpStatus::DUMP_OK; in Execute() 49 DumpStatus VersionDumper::AfterExecute() in AfterExecute() 51 return DumpStatus::DUMP_OK; in AfterExecute()
|
D | dumper_group.cpp | 26 DumpStatus DumperGroup::PreExecute(const std::shared_ptr<DumperParameter>& parameter, StringMatrix … in PreExecute() 28 return DumpStatus::DUMP_OK; in PreExecute() 31 DumpStatus DumperGroup::Execute() in Execute() 33 return DumpStatus::DUMP_OK; in Execute() 36 DumpStatus DumperGroup::AfterExecute() in AfterExecute() 38 return DumpStatus::DUMP_OK; in AfterExecute()
|
D | column_rows_filter.cpp | 28 DumpStatus ColumnRowsFilter::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 32 return DumpStatus::DUMP_OK; in PreExecute() 35 DumpStatus ColumnRowsFilter::Execute() in Execute() 37 return DumpStatus::DUMP_OK; in Execute() 40 DumpStatus ColumnRowsFilter::AfterExecute() in AfterExecute() 42 return DumpStatus::DUMP_OK; in AfterExecute()
|
D | env_param_dumper.cpp | 27 DumpStatus EnvParamDumper::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 30 return DumpStatus::DUMP_OK; in PreExecute() 33 DumpStatus EnvParamDumper::Execute() in Execute() 35 return DumpStatus::DUMP_OK; in Execute() 38 DumpStatus EnvParamDumper::AfterExecute() in AfterExecute() 40 return DumpStatus::DUMP_OK; in AfterExecute()
|
D | properties_dumper.cpp | 27 DumpStatus PropertiesDumper::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 30 return DumpStatus::DUMP_OK; in PreExecute() 33 DumpStatus PropertiesDumper::Execute() in Execute() 35 return DumpStatus::DUMP_OK; in Execute() 38 DumpStatus PropertiesDumper::AfterExecute() in AfterExecute() 40 return DumpStatus::DUMP_OK; in AfterExecute()
|
D | memory_dumper.cpp | 35 DumpStatus MemoryDumper::PreExecute(const shared_ptr<DumperParameter> ¶meter, StringMatrix dump… in PreExecute() 41 return DumpStatus::DUMP_OK; in PreExecute() 44 DumpStatus MemoryDumper::Execute() in Execute() 50 status_ = isShowMapsFlag ? DumpStatus::DUMP_OK : DumpStatus::DUMP_FAIL; in Execute() 55 status_ = DumpStatus::DUMP_OK; in Execute() 57 status_ = DumpStatus::DUMP_FAIL; in Execute() 66 DumpStatus MemoryDumper::AfterExecute() in AfterExecute()
|
D | file_stream_dumper.cpp | 36 DumpStatus FileStreamDumper::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 61 return DumpStatus::DUMP_FAIL; in PreExecute() 65 return DumpStatus::DUMP_OK; in PreExecute() 100 DumpStatus FileStreamDumper::ReadLineInFile() in ReadLineInFile() 102 DumpStatus ret = DumpStatus::DUMP_MORE_DATA; in ReadLineInFile() 104 return DumpStatus::DUMP_FAIL; in ReadLineInFile() 120 ret = DumpStatus::DUMP_FAIL; in ReadLineInFile() 127 ret = DumpStatus::DUMP_MORE_DATA; in ReadLineInFile() 129 ret = DumpStatus::DUMP_OK; in ReadLineInFile() 131 ret = DumpStatus::DUMP_FAIL; in ReadLineInFile() [all …]
|
D | zipfolder_output.cpp | 46 DumpStatus ZipFolderOutput::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 51 return DumpStatus::DUMP_FAIL; in PreExecute() 59 return DumpStatus::DUMP_FAIL; in PreExecute() 67 return DumpStatus::DUMP_FAIL; in PreExecute() 71 return DumpStatus::DUMP_OK; in PreExecute() 74 DumpStatus ZipFolderOutput::Execute() in Execute() 78 return DumpStatus::DUMP_FAIL; in Execute() 102 return DumpStatus::DUMP_OK; in Execute() 105 DumpStatus ZipFolderOutput::AfterExecute() in AfterExecute() 111 return DumpStatus::DUMP_OK; in AfterExecute()
|
D | fd_output.cpp | 36 DumpStatus FDOutput::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 42 return DumpStatus::DUMP_FAIL; in PreExecute() 49 return DumpStatus::DUMP_FAIL; in PreExecute() 52 return DumpStatus::DUMP_OK; in PreExecute() 55 DumpStatus FDOutput::Execute() in Execute() 60 return DumpStatus::DUMP_OK; in Execute() 63 DumpStatus FDOutput::AfterExecute() in AfterExecute() 68 return DumpStatus::DUMP_OK; in AfterExecute()
|
D | file_format_dump_filter.cpp | 39 DumpStatus FileFormatDumpFilter::PreExecute(const std::shared_ptr<DumperParameter>& parameter, in PreExecute() 43 return DumpStatus::DUMP_OK; in PreExecute() 46 DumpStatus FileFormatDumpFilter::Execute() in Execute() 49 return DumpStatus::DUMP_FAIL; in Execute() 58 return DumpStatus::DUMP_OK; in Execute() 61 DumpStatus FileFormatDumpFilter::AfterExecute() in AfterExecute() 64 return DumpStatus::DUMP_OK; in AfterExecute()
|
D | sa_dumper.cpp | 140 DumpStatus SADumper::PreExecute(const std::shared_ptr<DumperParameter> ¶meter, StringMatrix dum… in PreExecute() 148 return DumpStatus::DUMP_OK; in PreExecute() 151 DumpStatus SADumper::GetData(const std::string &name, const sptr<ISystemAbilityManager> &sam) in GetData() 156 return DumpStatus::DUMP_FAIL; in GetData() 161 return DumpStatus::DUMP_FAIL; in GetData() 168 return DumpStatus::DUMP_FAIL; in GetData() 177 return DumpStatus::DUMP_OK; in GetData() 180 DumpStatus SADumper::Execute() in Execute() 185 return DumpStatus::DUMP_FAIL; in Execute() 192 if (GetData(names_[i], sam) != DumpStatus::DUMP_OK) { in Execute() [all …]
|
D | hidumper_executor.cpp | 35 DumpStatus HidumperExecutor::DoPreExecute(const std::shared_ptr<DumperParameter>& parameter, String… in DoPreExecute() 52 return DumpStatus::DUMP_OK; in DoPreExecute() 57 DumpStatus ret = PreExecute(parameter, dumpDatas); in DoPreExecute() 61 DumpStatus HidumperExecutor::DoExecute() in DoExecute() 64 return DumpStatus::DUMP_OK; in DoExecute() 67 DumpStatus ret = Execute(); in DoExecute() 71 DumpStatus HidumperExecutor::DoAfterExecute() in DoAfterExecute() 74 return DumpStatus::DUMP_OK; in DoAfterExecute() 77 DumpStatus ret = AfterExecute(); in DoAfterExecute()
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
D | dump_compressor.cpp | 33 DumpStatus DumpCompressor::Compress(CompressBuffer*& srcBuffer, CompressBuffer*& destBuffer) in Compress() 40 return DumpStatus::DUMP_FAIL; in Compress() 45 return DumpStatus::DUMP_FAIL; in Compress() 49 return DumpStatus::DUMP_FAIL; in Compress() 64 return DumpStatus::DUMP_FAIL; in Compress() 71 …if (FillBuffer(flush, srcBuffer, buffInV, toRead, srcPos, srcBufferOffset) == DumpStatus::DUMP_FAI… in Compress() 72 return DumpStatus::DUMP_FAIL; in Compress() 74 if (DeflateBuffer(flush, buffOutV, dstPos) == DumpStatus::DUMP_FAIL) { in Compress() 75 return DumpStatus::DUMP_FAIL; in Compress() 85 return DumpStatus::DUMP_FAIL; in Compress() [all …]
|
/base/hiviewdfx/hidumper/test/unittest/common/ |
D | hidumper_output_test.cpp | 92 DumpStatus ret = zip_output->PreExecute(parameter, dump_datas); 93 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed."; 96 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "Execute failed."; 99 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "AfterExecute failed."; 130 DumpStatus ret = zip_output->PreExecute(parameter, dump_datas); 131 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed."; 134 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "Execute failed."; 137 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "AfterExecute failed."; 172 DumpStatus ret = zip_output->PreExecute(parameter, dump_datas); 173 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed."; [all …]
|
D | hidumper_dumpers_test.cpp | 97 DumpStatus ret = DumpStatus::DUMP_FAIL; in HandleDumperExcute() 99 ASSERT_EQ(ret, DumpStatus::DUMP_OK); in HandleDumperExcute() 101 ASSERT_EQ(ret, DumpStatus::DUMP_OK); in HandleDumperExcute() 104 ASSERT_EQ(ret, DumpStatus::DUMP_OK); in HandleDumperExcute() 107 DumpStatus ret = dumper->DoPreExecute(g_parameter, g_dump_datas); in HandleDumperExcute() 108 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed."; in HandleDumperExcute() 110 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "Execute failed."; in HandleDumperExcute() 112 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "AfterExecute failed."; in HandleDumperExcute() 125 DumpStatus ret = DumpStatus::DUMP_FAIL; in HandleCpuDumperTest() 127 ASSERT_EQ(ret, DumpStatus::DUMP_OK); in HandleCpuDumperTest() [all …]
|
D | hidumper_manager_test.cpp | 88 ASSERT_EQ(ret, DumpStatus::DUMP_HELP); 106 ASSERT_EQ(ret, DumpStatus::DUMP_OK); 124 ASSERT_EQ(ret, DumpStatus::DUMP_OK); 143 ASSERT_EQ(ret, DumpStatus::DUMP_OK); 162 ASSERT_EQ(ret, DumpStatus::DUMP_OK); 180 ASSERT_EQ(ret, DumpStatus::DUMP_OK); 198 ASSERT_EQ(ret, DumpStatus::DUMP_OK); 217 ASSERT_EQ(ret, DumpStatus::DUMP_OK); 238 ASSERT_EQ(ret, DumpStatus::DUMP_OK); 256 ASSERT_EQ(ret, DumpStatus::DUMP_OK); [all …]
|
/base/hiviewdfx/hidumper/frameworks/native/src/manager/ |
D | dump_implement.cpp | 77 DumpStatus DumpImplement::Main(int argc, char *argv[], const std::shared_ptr<RawParam> &reqCtl) in Main() 83 DumpStatus ret = CmdParse(argc, argv, ptrDumperParameter); in Main() 84 if (ret != DumpStatus::DUMP_OK) { in Main() 94 return DumpStatus::DUMP_FAIL; in Main() 102 return DumpStatus::DUMP_FAIL; in Main() 113 if (ret != DumpStatus::DUMP_OK) { in Main() 117 return DumpStatus::DUMP_OK; in Main() 120 DumpStatus DumpImplement::CmdParse(int argc, char *argv[], std::shared_ptr<DumperParameter> &dumpPa… in CmdParse() 124 return DumpStatus::DUMP_FAIL; in CmdParse() 129 return DumpStatus::DUMP_FAIL; in CmdParse() [all …]
|
/base/hiviewdfx/hidumper/frameworks/native/include/executor/ |
D | cmd_dumper.h | 26 DumpStatus PreExecute(const std::shared_ptr<DumperParameter>& parameter, 28 DumpStatus Execute() override; 29 DumpStatus AfterExecute() override; 30 DumpStatus GetLineData(FILE* fp, StringMatrix dumpDatas); 31 DumpStatus GetCmdInterface(const std::string& cmd, StringMatrix dumpDatas); 34 DumpStatus ReadLineInCmd();
|
D | zip_output.h | 28 DumpStatus PreExecute(const std::shared_ptr<DumperParameter>& parameter, 30 DumpStatus Execute() override; 31 DumpStatus AfterExecute() override; 34 DumpStatus CompressAndWriteToFd(); 35 DumpStatus CompressBigLine(const char* content, uint16_t size);
|
D | file_stream_dumper.h | 26 DumpStatus PreExecute(const std::shared_ptr<DumperParameter>& parameter, 28 DumpStatus Execute() override; 29 DumpStatus AfterExecute() override; 32 DumpStatus ReadFile(); 33 DumpStatus ReadLineInFile();
|
D | hidumper_executor.h | 31 …virtual DumpStatus PreExecute(const std::shared_ptr<DumperParameter>& parameter, StringMatrix dump… 32 virtual DumpStatus Execute() = 0; 33 virtual DumpStatus AfterExecute() = 0; 36 …DumpStatus DoPreExecute(const std::shared_ptr<DumperParameter>& parameter, StringMatrix dumpDatas); 37 DumpStatus DoExecute(); 38 DumpStatus DoAfterExecute();
|
/base/hiviewdfx/hidumper/client/native/ |
D | dump_client_main.cpp | 39 return DumpStatus::DUMP_INVALID_ARG; in Main() 43 return DumpStatus::DUMP_INVALID_ARG; in Main() 48 return DumpStatus::DUMP_INVALID_ARG; in Main() 53 return DumpStatus::DUMP_INVALID_ARG; in Main() 57 return DumpStatus::DUMP_INVALID_ARG; in Main() 72 if (ret < DumpStatus::DUMP_OK) { in Main() 73 if (ret != DumpStatus::DUMP_INVALID_ARG) { in Main()
|
/base/hiviewdfx/hidumper/frameworks/native/include/manager/ |
D | dump_implement.h | 39 DumpStatus Main(int argc, char *argv[], const std::shared_ptr<RawParam>& reqCtl); 43 DumpStatus CmdParse(int argc, char* argv[], std::shared_ptr<DumperParameter>& dumpParameter); 51 DumpStatus CmdParseWithParameter(int argc, char* argv[], DumperOpts& opts_); 52 DumpStatus CmdParseWithParameter(std::shared_ptr<DumperParameter>& dumpParameter, 54 DumpStatus SetCmdParameter(int argc, char* argv[], DumperOpts& opts_); 55 DumpStatus SetCmdIntegerParameter(const std::string& str, int& value); 59 DumpStatus DumpDatas(const std::vector<std::shared_ptr<HidumperExecutor>>& executors, 75 DumpStatus ParseLongCmdOption(int argc, DumperOpts& opts_, const struct option longOptions[], 77 DumpStatus ParseShortCmdOption(int c, DumperOpts& opts_, int argc, char* argv[]); 82 DumpStatus CheckProcessAlive(const DumperOpts& opts_);
|