• Home
  • Raw
  • Download

Lines Matching refs:result

42                               ReportResult* result) {  in KmemReportRawFile()  argument
43 result->success = false; in KmemReportRawFile()
49 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); in KmemReportRawFile()
50 ASSERT_TRUE(!result->content.empty()); in KmemReportRawFile()
52 android::base::Split(result->content, "\n"); in KmemReportRawFile()
53 result->lines.clear(); in KmemReportRawFile()
57 result->lines.push_back(s); in KmemReportRawFile()
60 ASSERT_GE(result->lines.size(), 2u); in KmemReportRawFile()
61 result->success = true; in KmemReportRawFile()
66 ReportResult* result) { in KmemReportFile() argument
67 KmemReportRawFile(GetTestData(perf_data), additional_args, result); in KmemReportFile()
101 ReportResult result; in TEST()
102 KmemReportRawFile(tmp_file.path, {}, &result); in TEST()
103 ASSERT_TRUE(result.success); in TEST()
111 ReportResult result; in TEST()
112 KmemReportRawFile(tmp_file.path, {"-g"}, &result); in TEST()
113 ASSERT_TRUE(result.success); in TEST()
120 ReportResult result; in TEST() local
121 KmemReportFile(PERF_DATA_WITH_KMEM_SLAB_CALLGRAPH_RECORD, {}, &result); in TEST()
122 ASSERT_TRUE(result.success); in TEST()
123 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
124 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
128 ReportResult result; in TEST() local
133 &result); in TEST()
134 ASSERT_TRUE(result.success); in TEST()
135 ASSERT_NE(result.content.find("Ptr"), std::string::npos); in TEST()
136 ASSERT_NE(result.content.find("GfpFlags"), std::string::npos); in TEST()
140 ReportResult result; in TEST() local
141 KmemReportFile(PERF_DATA_WITH_KMEM_SLAB_CALLGRAPH_RECORD, {"-g"}, &result); in TEST()
142 ASSERT_TRUE(result.success); in TEST()
143 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
144 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
145 ASSERT_NE(result.content.find("system_call_fastpath"), std::string::npos); in TEST()