Home
last modified time | relevance | path

Searched refs:DumpStatus (Results 1 – 25 of 52) sorted by relevance

123

/base/hiviewdfx/hidumper/test/unittest/common/
Dhidumper_dumpers_test.cpp81 DumpStatus ret = file_dumper->DoPreExecute(parameter, dump_datas);
82 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed.";
84 ret = DumpStatus::DUMP_MORE_DATA;
85 while (ret == DumpStatus::DUMP_MORE_DATA) {
88 … ASSERT_TRUE(ret == DumpStatus::DUMP_OK || ret == DumpStatus::DUMP_MORE_DATA) << "Execute failed.";
90 … ASSERT_TRUE(ret == DumpStatus::DUMP_OK || ret == DumpStatus::DUMP_MORE_DATA) << "Execute failed.";
110 DumpStatus ret = file_dumper->DoPreExecute(parameter, dump_datas);
111 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed.";
113 ret = DumpStatus::DUMP_MORE_DATA;
114 while (ret == DumpStatus::DUMP_MORE_DATA) {
[all …]
Dhidumper_output_test.cpp91 DumpStatus ret = zip_output->PreExecute(parameter, dump_datas);
92 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed.";
95 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "Execute failed.";
98 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "AfterExecute failed.";
129 DumpStatus ret = zip_output->PreExecute(parameter, dump_datas);
130 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed.";
133 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "Execute failed.";
136 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "AfterExecute failed.";
171 DumpStatus ret = zip_output->PreExecute(parameter, dump_datas);
172 ASSERT_TRUE(ret == DumpStatus::DUMP_OK) << "PreExecute failed.";
[all …]
Dhidumper_manager_test.cpp88 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/executor/
Dcmd_dumper.cpp35 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 …]
Dzip_output.cpp34 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 …]
Dversion_dumper.cpp31 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()
Ddumper_group.cpp26 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()
Dcolumn_rows_filter.cpp28 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()
Dproperties_dumper.cpp27 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()
Denv_param_dumper.cpp27 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()
Dfile_stream_dumper.cpp36 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::ReadLine() in ReadLine()
102 DumpStatus ret = DumpStatus::DUMP_MORE_DATA; in ReadLine()
104 return DumpStatus::DUMP_FAIL; in ReadLine()
120 ret = DumpStatus::DUMP_FAIL; in ReadLine()
127 ret = DumpStatus::DUMP_MORE_DATA; in ReadLine()
129 ret = DumpStatus::DUMP_OK; in ReadLine()
131 ret = DumpStatus::DUMP_FAIL; in ReadLine()
[all …]
Dmemory_dumper.cpp32 DumpStatus MemoryDumper::PreExecute(const shared_ptr<DumperParameter> &parameter, StringMatrix dump… in PreExecute()
37 return DumpStatus::DUMP_OK; in PreExecute()
40 DumpStatus MemoryDumper::Execute() in Execute()
46 status_ = DumpStatus::DUMP_OK; in Execute()
48 status_ = DumpStatus::DUMP_FAIL; in Execute()
58 DumpStatus MemoryDumper::AfterExecute() in AfterExecute()
Dzipfolder_output.cpp46 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()
Dfd_output.cpp36 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()
Dfile_format_dump_filter.cpp39 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()
Dhidumper_executor.cpp35 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()
Dsa_dumper.cpp148 DumpStatus SADumper::PreExecute(const std::shared_ptr<DumperParameter> &parameter, StringMatrix dum… in PreExecute()
156 return DumpStatus::DUMP_OK; in PreExecute()
159 DumpStatus SADumper::GetData(const std::string &name, const sptr<ISystemAbilityManager> &sam) in GetData()
164 return DumpStatus::DUMP_FAIL; in GetData()
169 return DumpStatus::DUMP_FAIL; in GetData()
176 return DumpStatus::DUMP_FAIL; in GetData()
185 return DumpStatus::DUMP_OK; in GetData()
188 DumpStatus SADumper::Execute() in Execute()
193 return DumpStatus::DUMP_FAIL; in Execute()
200 if (GetData(names_[i], sam) != DumpStatus::DUMP_OK) { in Execute()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/src/util/
Ddump_compressor.cpp33 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/frameworks/native/src/manager/
Ddump_implement.cpp75 DumpStatus DumpImplement::Main(int argc, char *argv[], const std::shared_ptr<RawParam> &reqCtl) in Main()
81 DumpStatus ret = CmdParse(argc, argv, ptrDumperParameter); in Main()
82 if (ret != DumpStatus::DUMP_OK) { in Main()
92 return DumpStatus::DUMP_FAIL; in Main()
100 return DumpStatus::DUMP_FAIL; in Main()
111 if (ret != DumpStatus::DUMP_OK) { in Main()
115 return DumpStatus::DUMP_OK; in Main()
118 DumpStatus DumpImplement::CmdParse(int argc, char *argv[], std::shared_ptr<DumperParameter> &dumpPa… in CmdParse()
122 return DumpStatus::DUMP_FAIL; in CmdParse()
127 return DumpStatus::DUMP_FAIL; in CmdParse()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/include/executor/
Dcmd_dumper.h26 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 ReadLine();
Dzip_output.h28 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);
Dfile_stream_dumper.h26 DumpStatus PreExecute(const std::shared_ptr<DumperParameter>& parameter,
28 DumpStatus Execute() override;
29 DumpStatus AfterExecute() override;
32 DumpStatus ReadFile();
33 DumpStatus ReadLine();
Dhidumper_executor.h31 …virtual DumpStatus PreExecute(const std::shared_ptr<DumperParameter>& parameter, StringMatrix dump…
32 virtual DumpStatus Execute() = 0;
33 virtual DumpStatus AfterExecute() = 0;
36DumpStatus DoPreExecute(const std::shared_ptr<DumperParameter>& parameter, StringMatrix dumpDatas);
37 DumpStatus DoExecute();
38 DumpStatus DoAfterExecute();
/base/hiviewdfx/hidumper/frameworks/native/include/manager/
Ddump_implement.h39 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(DumperOpts& opts_, const struct option longOptions[],
77 DumpStatus ParseShortCmdOption(int c, DumperOpts& opts_, int argc, char* argv[]);
82 DumpStatus CheckProcessAlive(const DumperOpts& opts_);
/base/hiviewdfx/hidumper/client/native/
Ddump_client_main.cpp39 return DumpStatus::DUMP_INVALID_ARG; in Main()
44 return DumpStatus::DUMP_INVALID_ARG; in Main()
49 return DumpStatus::DUMP_INVALID_ARG; in Main()
53 return DumpStatus::DUMP_INVALID_ARG; in Main()
68 if (ret < DumpStatus::DUMP_OK) { in Main()
69 if (ret != DumpStatus::DUMP_INVALID_ARG) { in Main()

123