Lines Matching refs:Root

8   void SetUp() override { memset(&Root, 0, sizeof(ContextRoot)); }  in SetUp()
12 ContextRoot Root; member in ContextTest
43 auto *Ctx = __llvm_ctx_profile_start_context(&Root, 1, 10, 4); in TEST_F()
45 EXPECT_NE(Root.CurrentMem, nullptr); in TEST_F()
46 EXPECT_EQ(Root.FirstMemBlock, Root.CurrentMem); in TEST_F()
51 EXPECT_EQ(__llvm_ctx_profile_current_context_root, &Root); in TEST_F()
52 Root.Taken.CheckLocked(); in TEST_F()
53 EXPECT_FALSE(Root.Taken.TryLock()); in TEST_F()
54 __llvm_ctx_profile_release_context(&Root); in TEST_F()
56 EXPECT_TRUE(Root.Taken.TryLock()); in TEST_F()
57 Root.Taken.Unlock(); in TEST_F()
61 auto *Ctx = __llvm_ctx_profile_start_context(&Root, 1, 10, 4); in TEST_F()
81 __llvm_ctx_profile_release_context(&Root); in TEST_F()
96 auto *Ctx = __llvm_ctx_profile_start_context(&Root, 1, 10, 4); in TEST_F()
128 __llvm_ctx_profile_release_context(&Root); in TEST_F()
132 auto *Ctx = __llvm_ctx_profile_start_context(&Root, 1, 10, 4); in TEST_F()
136 const auto *CurrentMem = Root.CurrentMem; in TEST_F()
143 EXPECT_NE(CurrentMem, Root.CurrentMem); in TEST_F()
144 EXPECT_NE(Root.CurrentMem, nullptr); in TEST_F()
155 auto *Ctx = __llvm_ctx_profile_start_context(&Root, 1, 10, 4); in TEST_F()
163 __llvm_ctx_profile_release_context(&Root); in TEST_F()
174 auto *Ctx = __llvm_ctx_profile_start_context(&Root, 1, 10, 4); in TEST_F()
180 __llvm_ctx_profile_release_context(&Root); in TEST_F()
183 ContextRoot *const Root; in TEST_F() member
186 Writer(ContextRoot *Root, size_t Entries) : Root(Root), Entries(Entries) {} in TEST_F()
189 EXPECT_FALSE(Root->Taken.TryLock()); in TEST_F()
208 Writer W(&Root, 1); in TEST_F()
217 Writer W2(&Root, 0); in TEST_F()