Home | History | Annotate | Download | only in simpleperf

Lines Matching refs:result

43                               ReportResult* result) {
44 result->success = false;
50 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content));
51 ASSERT_TRUE(!result->content.empty());
53 android::base::Split(result->content, "\n");
54 result->lines.clear();
58 result->lines.push_back(s);
61 ASSERT_GE(result->lines.size(), 2u);
62 result->success = true;
67 ReportResult* result) {
68 KmemReportRawFile(GetTestData(perf_data), additional_args, result);
102 ReportResult result;
103 KmemReportRawFile(tmp_file.path, {}, &result);
104 ASSERT_TRUE(result.success);
112 ReportResult result;
113 KmemReportRawFile(tmp_file.path, {"-g"}, &result);
114 ASSERT_TRUE(result.success);
121 ReportResult result;
122 KmemReportFile(PERF_DATA_WITH_KMEM_SLAB_CALLGRAPH_RECORD, {}, &result);
123 ASSERT_TRUE(result.success);
124 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos);
125 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos);
129 ReportResult result;
134 &result);
135 ASSERT_TRUE(result.success);
136 ASSERT_NE(result.content.find("Ptr"), std::string::npos);
137 ASSERT_NE(result.content.find("GfpFlags"), std::string::npos);
141 ReportResult result;
142 KmemReportFile(PERF_DATA_WITH_KMEM_SLAB_CALLGRAPH_RECORD, {"-g"}, &result);
143 ASSERT_TRUE(result.success);
144 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos);
145 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos);
146 ASSERT_NE(result.content.find("system_call_fastpath"), std::string::npos);