Home
last modified time | relevance | path

Searched refs:cmdName (Results 1 – 6 of 6) sorted by relevance

/developtools/hiperf/src/
Dsubcommand.cpp156 bool SubCommand::RegisterSubCommand(std::string cmdName, std::unique_ptr<SubCommand> subCommand) in RegisterSubCommand() argument
158 HLOGV("%s", cmdName.c_str()); in RegisterSubCommand()
159 if (cmdName.empty()) { in RegisterSubCommand()
163 if (cmdName.front() == '-') { in RegisterSubCommand()
164 HLOGE("unable use '-' at the begin of subcommand '%s'", cmdName.c_str()); in RegisterSubCommand()
168 if (g_SubCommandsMap.count(cmdName) == 0) { in RegisterSubCommand()
170 g_SubCommandsMap.insert(std::make_pair(cmdName, std::move(subCommand))); in RegisterSubCommand()
173 HLOGE("subcommand '%s' already registered!", cmdName.c_str()); in RegisterSubCommand()
189 SubCommand *SubCommand::FindSubCommand(std::string cmdName) in FindSubCommand() argument
191 HLOGV("%s", cmdName.c_str()); in FindSubCommand()
[all …]
Dutilities.cpp497 bool IsSameCommand(const std::string &cmdLine, const std::string &cmdName) in IsSameCommand() argument
501 if (strcmp(cmdpaths.back().c_str(), cmdName.c_str()) == 0) { in IsSameCommand()
/developtools/hiperf/test/unittest/common/native/
Dtracked_command_test.cpp51 auto cmdName = trackedCMD->GetCommandName(); variable
52 EXPECT_EQ(cmdName, cmd_[0]);
75 auto cmdName = trackedCMD->GetCommandName(); variable
76 EXPECT_EQ(cmdName, cmdNotExist_[0]);
/developtools/profiler/device/plugins/native_daemon/src/
Dutilities.cpp421 bool IsSameCommand(std::string cmdLine, std::string cmdName) in IsSameCommand() argument
425 if (strcmp(cmdpaths.back().c_str(), cmdName.c_str()) == 0) { in IsSameCommand()
/developtools/profiler/device/plugins/native_daemon/include/
Dutilities.h161 bool IsSameCommand(std::string cmdLine, std::string cmdName);
/developtools/hiperf/include/
Dutilities.h177 bool IsSameCommand(const std::string &cmdLine, const std::string &cmdName);