Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 30) sorted by relevance

12

/base/startup/init/services/modules/seccomp/scripts/tools/
Dlibc_static_analysis.py91 def get_direct_use_syscall_of_svc(arch, lines, func_list): argument
102 for line in reversed(lines):
128 def get_direct_use_syscall_of_syscall(arch, lines, func_list): argument
140 for line in reversed(lines):
179 def get_direct_use_syscall(arch, lines): argument
181 get_direct_use_syscall_of_svc(arch, lines, func_list)
182 get_direct_use_syscall_of_syscall(arch, lines, func_list)
187 def get_call_graph(arch, lines, func_list): argument
190 for line in lines:
229 lines = fp.readlines()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dsmaps_memory_info.cpp202 vector<string> lines; in CalcSmapsGroup() local
204 MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.size), lines, values, true); in CalcSmapsGroup()
205 MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.rss), lines, values, true); in CalcSmapsGroup()
206 MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.pss), lines, values, true); in CalcSmapsGroup()
207 …MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.sharedClean), lines, values, tru… in CalcSmapsGroup()
208 …MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.sharedDirty), lines, values, tru… in CalcSmapsGroup()
209 …MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.privateClean), lines, values, tr… in CalcSmapsGroup()
210 …MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.privateDirty), lines, values, tr… in CalcSmapsGroup()
211 MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.swap), lines, values, true); in CalcSmapsGroup()
212 … MemoryUtil::GetInstance().SetMemTotalValue(to_string(memSmapsInfo.swapPss), lines, values, true); in CalcSmapsGroup()
[all …]
Dmemory_info.cpp181 vector<string> lines; in CalcGroup() local
184 MemoryUtil::GetInstance().SetMemTotalValue("Total", lines, values); in CalcGroup()
185 …MemoryUtil::GetInstance().SetMemTotalValue(to_string(meminfo.pss + meminfo.swapPss), lines, values… in CalcGroup()
186 MemoryUtil::GetInstance().SetMemTotalValue(to_string(meminfo.sharedClean), lines, values); in CalcGroup()
187 MemoryUtil::GetInstance().SetMemTotalValue(to_string(meminfo.sharedDirty), lines, values); in CalcGroup()
188 MemoryUtil::GetInstance().SetMemTotalValue(to_string(meminfo.privateClean), lines, values); in CalcGroup()
189 MemoryUtil::GetInstance().SetMemTotalValue(to_string(meminfo.privateDirty), lines, values); in CalcGroup()
190 MemoryUtil::GetInstance().SetMemTotalValue(to_string(meminfo.swap), lines, values); in CalcGroup()
191 MemoryUtil::GetInstance().SetMemTotalValue(to_string(meminfo.swapPss), lines, values); in CalcGroup()
192 MemoryUtil::GetInstance().SetMemTotalValue(to_string(meminfo.heapSize), lines, values); in CalcGroup()
[all …]
Dmemory_util.cpp187 void MemoryUtil::SetMemTotalValue(const string &value, vector<string> &lines, vector<string> &value… in SetMemTotalValue() argument
194 lines.push_back(separator); in SetMemTotalValue()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_multiline_content.cpp63 std::string lines {}; in Dump() local
65 …allLines_.begin(), allLines_.end(), [&lines](const std::string &line) { lines += " " + line + ",";… in Dump()
66 lines.pop_back(); in Dump()
71 ", allLines = [" + lines + "]" + in Dump()
/base/startup/init/services/etc/appender/
Dfile_appender.gni17 # Append something (files or lines) to a file and install it.
25 # lines: lines of strings to be appended to the end of souce file (Optional)
32 # lines = [ "tses::1222:1222:/bin/false", "tses2::1223:1223:/bin/false" ]
35 # It will append files and lines to source passwd file after deps targets
75 if (defined(invoker.lines)) {
76 foreach(line, invoker.lines) {
Dfile_appender.py49 if options.lines:
50 for line in options.lines:
/base/hiviewdfx/hilog/services/hilogtool/
Dlog_display.cpp98 uint32_t lines = 0; in GetTotalLines() local
100 lines += rsp.lines[i]; in GetTotalLines()
102 return lines; in GetTotalLines()
279 uint32_t lines = 0; in HilogShowLogStatsInfo() local
282 lines += rsp.totalLines[i]; in HilogShowLogStatsInfo()
285 if (lines == 0) { in HilogShowLogStatsInfo()
288 cout << "Total lines: " << lines << ", length: " << Size2Str(lens) << endl; in HilogShowLogStatsInfo()
293 …"(" << setprecision(FLOAT_PRECSION) << (static_cast<float>(rsp.totalLines[i] * PERCENT) / lines) << in HilogShowLogStatsInfo()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_common_utils.cpp218 bool DumpCommonUtils::GetLinesInFile(const std::string& file, std::vector<std::string>& lines) in GetLinesInFile() argument
227 SplitStr(content, "\n", lines); in GetLinesInFile()
284 std::vector<std::string> lines; in GetProcessInfo() local
285 if (!GetLinesInFile(file, lines)) { in GetProcessInfo()
290 for (size_t i = 0; i < lines.size(); i++) { in GetProcessInfo()
292 SplitStr(lines[i], splitKeyValueToken, keyValue); in GetProcessInfo()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dsa_dumper.cpp68 std::vector<std::string> lines; in WriteLine() local
69 lines.push_back(Line); in WriteLine()
70 spData_->push_back(lines); in WriteLine()
/base/security/code_signature/services/key_enable/src/
Dkey_enable.rs121 let lines = BufReader::new(file).lines(); in get_keyring_id() localVariable
122 for line in lines.flatten() { in get_keyring_id()
/base/security/selinux_adapter/scripts/
Dbuild_contexts.py82 lines = []
84 lines = fp.readlines()
85 if len(lines) == 0:
87 last_line = lines[-1]
91 for line in lines:
Dbuild_policy_api.py115 lines = fp.readlines()
116 if len(lines) == 0:
118 last_line = lines[-1]
/base/startup/init/services/etc/param/
Dparam_fixer.py59 lines = f.readlines()
60 for line in lines:
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dfreeze_detector_plugin.cpp93 std::vector<std::string> lines; in RemoveRedundantNewline() local
94 StringUtil::SplitStr(content, "\\n", lines, false, false); in RemoveRedundantNewline()
97 for (const auto& line : lines) { in RemoveRedundantNewline()
/base/hiviewdfx/hilog/services/hilogd/
Dlog_stats.cpp67 entry.lines[lvl]++; in UpdateStats()
87 for (uint32_t &i : entry.lines) { in ResetStatsEntry()
107 for (uint32_t &i : entry.lines) { in StatsInfo2NewStatsEntry()
114 entry.lines[lvl] = 1; in StatsInfo2NewStatsEntry()
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_stats.h49 uint32_t lines[LevelNum]; member
97 for (const uint32_t &i : lines) { in GetTotalLines()
/base/global/i18n/tools/
Ddata_process.py30 lines = f.readlines()
31 for line in lines:
/base/hiviewdfx/hidumper/interfaces/native/innerkits/include/
Ddump_common_utils.h59 static bool GetLinesInFile(const std::string& file, std::vector<std::string>& lines);
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp183 static int32_t ExecuteTransferCommand(int fd, const std::vector<std::string> &lines, Uscript::UScri… in ExecuteTransferCommand() argument
200 if (!tm->CommandsParser(fd, lines)) { in ExecuteTransferCommand()
280 …Hpackage::PkgManager::StreamPtr &outStream, const std::vector<std::string> &lines, Uscript::UScrip… in DoExecuteUpdateBlock() argument
288 int32_t ret = ExecuteTransferCommand(fd, lines, env, context, infos.partitionName); in DoExecuteUpdateBlock()
361 std::vector<std::string> lines = in ExecuteUpdateBlock() local
379 int32_t ret = DoExecuteUpdateBlock(infos, env, outStream, lines, context); in ExecuteUpdateBlock()
/base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/
Dmemory_util.h53 …void SetMemTotalValue(const std::string &value, std::vector<std::string> &lines, std::vector<std::…
/base/security/selinux_adapter/
DBUILD.gn342 "list lines")
348 "list lines")
417 "list lines")
423 "list lines")
466 "list lines")
472 "list lines")
/base/update/updater/services/script/script_interpreter/
Dscript_lex.l68 loc.lines(yyleng); // 使用lines函数来更新位置信息中的行号
/base/hiviewdfx/hilog/test/unittest/common/
Dhilogtool_test.cpp390 int lines = 5; variable
391 std::string cmd = "hilog -a " + std::to_string(lines);
392 EXPECT_EQ(GetCmdLinesFromPopen(cmd), lines);
394 cmd = "hilog -z " + std::to_string(lines);
395 EXPECT_EQ(GetCmdLinesFromPopen(cmd), lines);
/base/hiviewdfx/faultloggerd/test/utils/
Ddfx_test_util.cpp148 long lines = CountLines(filePath); in CheckKeyWords() local
149 std::vector<std::string> t(lines * 4); // 4 : max string blocks of one line in CheckKeyWords()

12