Lines Matching refs:result
44 ReportResult* result) { in KmemReportRawFile() argument
45 result->success = false; in KmemReportRawFile()
51 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); in KmemReportRawFile()
52 ASSERT_TRUE(!result->content.empty()); in KmemReportRawFile()
54 android::base::Split(result->content, "\n"); in KmemReportRawFile()
55 result->lines.clear(); in KmemReportRawFile()
59 result->lines.push_back(s); in KmemReportRawFile()
62 ASSERT_GE(result->lines.size(), 2u); in KmemReportRawFile()
63 result->success = true; in KmemReportRawFile()
68 ReportResult* result) { in KmemReportFile() argument
69 KmemReportRawFile(GetTestData(perf_data), additional_args, result); in KmemReportFile()
103 ReportResult result; in TEST()
104 KmemReportRawFile(tmp_file.path, {}, &result); in TEST()
105 ASSERT_TRUE(result.success); in TEST()
113 ReportResult result; in TEST()
114 KmemReportRawFile(tmp_file.path, {"-g"}, &result); in TEST()
115 ASSERT_TRUE(result.success); in TEST()
122 ReportResult result; in TEST() local
123 KmemReportFile(PERF_DATA_WITH_KMEM_SLAB_CALLGRAPH_RECORD, {}, &result); in TEST()
124 ASSERT_TRUE(result.success); in TEST()
125 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
126 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
130 ReportResult result; in TEST() local
135 &result); in TEST()
136 ASSERT_TRUE(result.success); in TEST()
137 ASSERT_NE(result.content.find("Ptr"), std::string::npos); in TEST()
138 ASSERT_NE(result.content.find("GfpFlags"), std::string::npos); in TEST()
142 ReportResult result; in TEST() local
143 KmemReportFile(PERF_DATA_WITH_KMEM_SLAB_CALLGRAPH_RECORD, {"-g"}, &result); in TEST()
144 ASSERT_TRUE(result.success); in TEST()
145 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
146 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
147 ASSERT_NE(result.content.find("system_call_fastpath"), std::string::npos); in TEST()