Home
last modified time | relevance | path

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

/developtools/hiperf/src/
Dsubcommand.cpp149 bool SubCommand::RegisterSubCommand(std::string cmdName, std::unique_ptr<SubCommand> subCommand) in RegisterSubCommand() argument
151 HLOGV("%s", cmdName.c_str()); in RegisterSubCommand()
152 if (cmdName.empty()) { in RegisterSubCommand()
156 if (cmdName.front() == '-') { in RegisterSubCommand()
157 HLOGE("unable use '-' at the begin of subcommand '%s'", cmdName.c_str()); in RegisterSubCommand()
161 if (g_SubCommandsMap.count(cmdName) == 0) { in RegisterSubCommand()
163 g_SubCommandsMap.insert(std::make_pair(cmdName, std::move(subCommand))); in RegisterSubCommand()
166 HLOGE("subcommand '%s' already registered!", cmdName.c_str()); in RegisterSubCommand()
182 SubCommand *SubCommand::FindSubCommand(std::string cmdName) in FindSubCommand() argument
184 HLOGV("%s", cmdName.c_str()); in FindSubCommand()
[all …]
Dutilities.cpp482 bool IsSameCommand(const std::string &cmdLine, const std::string &cmdName) in IsSameCommand() argument
486 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.h176 bool IsSameCommand(std::string cmdLine, std::string cmdName);
/developtools/hiperf/include/
Dutilities.h178 bool IsSameCommand(const std::string &cmdLine, const std::string &cmdName);