• Home
  • Raw
  • Download

Lines Matching refs:stringOut

45     bool FindExpectStr(const std::string &stringOut, const std::string &counterNames) const;
46 uint EffectiveCounter(const std::string &stringOut,
49 uint EffectiveCounter(const std::string &stringOut, const std::string &counterNames,
51 int CounterValue(const std::string &stringOut, const std::string &configName) const;
52 void CheckGroupCoverage(const std::string &stringOut,
115 uint SubCommandStatTest::EffectiveCounter(const std::string &stringOut, in EffectiveCounter() argument
122 return EffectiveCounter(stringOut, StringSplit(filterCounterNames, ","), effectiveHeadCounter); in EffectiveCounter()
125 bool SubCommandStatTest::FindExpectStr(const std::string &stringOut, in FindExpectStr() argument
128 auto lines = StringSplit(stringOut, "\n"); in FindExpectStr()
138 uint SubCommandStatTest::EffectiveCounter(const std::string &stringOut, in EffectiveCounter() argument
144 EXPECT_NE(stringOut.find(name), std::string::npos); in EffectiveCounter()
146 auto lines = StringSplit(stringOut, "\n"); in EffectiveCounter()
176 int SubCommandStatTest::CounterValue(const std::string &stringOut, in CounterValue() argument
180 auto lines = StringSplit(stringOut, "\n"); in CounterValue()
197 void SubCommandStatTest::CheckGroupCoverage(const std::string &stringOut, in CheckGroupCoverage() argument
205 EXPECT_NE(stringOut.find(name), std::string::npos); in CheckGroupCoverage()
208 auto lines = StringSplit(stringOut, "\n"); in CheckGroupCoverage()
237 std::string stringOut = stdoutRecord.Stop(); variable
239 printf("output:\n%s", stringOut.c_str());
244 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
263 std::string stringOut = stdoutRecord.Stop(); variable
264 printf("output:\n%s", stringOut.c_str());
266 printf("output:\n%s", stringOut.c_str());
271 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
290 std::string stringOut = stdoutRecord.Stop(); variable
292 printf("output:\n%s", stringOut.c_str());
297 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
316 std::string stringOut = stdoutRecord.Stop(); variable
318 printf("output:\n%s", stringOut.c_str());
323 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
342 std::string stringOut = stdoutRecord.Stop(); variable
344 printf("output:\n%s", stringOut.c_str());
349 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
387 std::string stringOut = stdoutRecord.Stop(); variable
389 printf("output:\n%s", stringOut.c_str());
393 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
396 EXPECT_NE(stringOut.find("Timeout exit"), std::string::npos);
429 std::string stringOut = stdoutRecord.Stop(); variable
431 printf("output:\n%s", stringOut.c_str());
436 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
466 std::string stringOut = stdoutRecord.Stop(); variable
468 printf("output:\n%s", stringOut.c_str());
473 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
493 std::string stringOut = stdoutRecord.Stop(); variable
495 printf("output:\n%s", stringOut.c_str());
500 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
529 std::string stringOut = stdoutRecord.Stop(); variable
531 printf("output:\n%s", stringOut.c_str());
536 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
565 std::string stringOut = stdoutRecord.Stop(); variable
567 printf("output:\n%s", stringOut.c_str());
572 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
601 std::string stringOut = stdoutRecord.Stop(); variable
603 printf("output:\n%s", stringOut.c_str());
607 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
635 std::string stringOut = stdoutRecord.Stop(); variable
637 printf("output:\n%s", stringOut.c_str());
642 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
669 std::string stringOut = stdoutRecord.Stop(); variable
671 printf("output:\n%s", stringOut.c_str());
676 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
703 std::string stringOut = stdoutRecord.Stop(); variable
705 printf("output:\n%s", stringOut.c_str());
710 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
737 std::string stringOut = stdoutRecord.Stop(); variable
739 printf("output:\n%s", stringOut.c_str());
744 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
771 std::string stringOut = stdoutRecord.Stop(); variable
773 printf("output:\n%s", stringOut.c_str());
778 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
797 std::string stringOut = stdoutRecord.Stop(); variable
799 printf("output:\n%s", stringOut.c_str());
803 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
832 std::string stringOut = stdoutRecord.Stop(); variable
834 printf("output:\n%s", stringOut.c_str());
838 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
867 std::string stringOut = stdoutRecord.Stop(); variable
869 printf("output:\n%s", stringOut.c_str());
873 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
902 std::string stringOut = stdoutRecord.Stop(); variable
904 printf("output:\n%s", stringOut.c_str());
908 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
938 std::string stringOut = stdoutRecord.Stop(); variable
940 printf("output:\n%s", stringOut.c_str());
944 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
976 std::string stringOut = stdoutRecord.Stop(); variable
978 printf("output:\n%s", stringOut.c_str());
982 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
1014 std::string stringOut = stdoutRecord.Stop(); variable
1016 printf("output:\n%s", stringOut.c_str());
1020 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
1049 std::string stringOut = stdoutRecord.Stop(); variable
1051 printf("output:\n%s", stringOut.c_str());
1055 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
1084 std::string stringOut = stdoutRecord.Stop(); variable
1086 printf("output:\n%s", stringOut.c_str());
1090 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
1122 std::string stringOut = stdoutRecord.Stop(); variable
1124 printf("output:\n%s", stringOut.c_str());
1128 EXPECT_GE(EffectiveCounter(stringOut, configNmaes, effectiveHeadCounter), configNmaes.size());
1157 std::string stringOut = stdoutRecord.Stop(); variable
1159 printf("output:\n%s", stringOut.c_str());
1163 EXPECT_GE(EffectiveCounter(stringOut, configNmaes, effectiveHeadCounter), configNmaes.size());
1192 std::string stringOut = stdoutRecord.Stop(); variable
1194 printf("output:\n%s", stringOut.c_str());
1198 EXPECT_GE(EffectiveCounter(stringOut, configNmaes, effectiveHeadCounter), configNmaes.size());
1227 std::string stringOut = stdoutRecord.Stop(); variable
1229 printf("output:\n%s", stringOut.c_str());
1233 EXPECT_GE(EffectiveCounter(stringOut, configNmaes, effectiveHeadCounter), configNmaes.size());
1262 std::string stringOut = stdoutRecord.Stop(); variable
1264 printf("output:\n%s", stringOut.c_str());
1267 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
1298 const std::string stringOut = stdoutRecord.Stop(); variable
1300 printf("output:\n%s", stringOut.c_str());
1309 EXPECT_GE(EffectiveCounter(stringOut, configNmaes, effectiveHeadCounter), configNmaes.size());
1339 const std::string stringOut = stdoutRecord.Stop(); variable
1341 printf("output:\n%s", stringOut.c_str());
1349 EXPECT_GE(EffectiveCounter(stringOut, configNmaes, effectiveHeadCounter), configNmaes.size());
1379 const std::string stringOut = stdoutRecord.Stop(); variable
1381 printf("output:\n%s", stringOut.c_str());
1389 EXPECT_GE(EffectiveCounter(stringOut, configNmaes, effectiveHeadCounter), configNmaes.size());
1419 const std::string stringOut = stdoutRecord.Stop(); variable
1421 printf("output:\n%s", stringOut.c_str());
1425 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
1456 std::string stringOut = stdoutRecord.Stop(); variable
1458 printf("output:\n%s", stringOut.c_str());
1467 EXPECT_GE(EffectiveCounter(stringOut, configNmaes, effectiveHeadCounter), configNmaes.size());
1468 CheckGroupCoverage(stringOut, "hw-branch-misses:k");
1469 CheckGroupCoverage(stringOut, "hw-cpu-cycles:k,hw-instructions:k");
1507 std::string stringOut = stdoutRecord.Stop(); variable
1509 printf("output:\n%s", stringOut.c_str());
1513 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
1549 std::string stringOut = stdoutRecord.Stop(); variable
1551 printf("output:\n%s", stringOut.c_str());
1555 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
1583 std::string stringOut = stdoutRecord.Stop(); variable
1585 printf("output:\n%s", stringOut.c_str());
1589 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
1615 std::string stringOut = stdoutRecord.Stop(); variable
1617 printf("output:\n%s", stringOut.c_str());
1621 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
1655 std::string stringOut = stdoutRecord.Stop(); variable
1657 printf("output:\n%s", stringOut.c_str());
1661 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
1697 std::string stringOut = stdoutRecord.Stop(); variable
1699 printf("output:\n%s", stringOut.c_str());
1703 EXPECT_EQ(FindExpectStr(stringOut, expectStr), true);
1738 std::string stringOut = stdoutRecord.Stop(); variable
1740 printf("output:\n%s", stringOut.c_str());
1744 EXPECT_EQ(FindExpectStr(stringOut, expectStr), false);
1765 std::string stringOut = stdoutRecord.Stop(); variable
1767 printf("output:\n%s", stringOut.c_str());
1771 EXPECT_GE(EffectiveCounter(stringOut, defaultConfigNames_, effectiveHeadCounter),
1795 std::string stringOut = stdoutRecord.Stop(); variable
1797 printf("output:\n%s", stringOut.c_str());
1799 int counterValueWithoutInherit = CounterValue(stringOut, configName);
1851 std::string stringOut = stdoutRecord.Stop(); variable
1852 EXPECT_TRUE(stringOut.find("10000.000000 sec") != std::string::npos);
1866 std::string stringOut = stdoutRecord.Stop(); variable
1867 EXPECT_TRUE(stringOut.find("Usage: hiperf stat [options] [command [command-args]]") !=
1913 std::string stringOut = stdoutRecord.Stop(); variable
1914 EXPECT_TRUE(stringOut.find("test") != std::string::npos);
1915 EXPECT_TRUE(stringOut.find("count name") != std::string::npos);
1956 std::string stringOut = stdoutRecord.Stop(); variable
1957 printf("output: %s\n", stringOut.c_str());
1958 EXPECT_EQ(FindExpectStr(stringOut, "G/sec"), true);
1959 EXPECT_EQ(FindExpectStr(stringOut, "M/sec"), true);
1960 EXPECT_EQ(FindExpectStr(stringOut, "K/sec"), true);
1961 EXPECT_EQ(FindExpectStr(stringOut, "/sec"), true);