OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Buffers
(Results
1 - 11
of
11
) sorted by relevancy
/src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/
buffer_queue_test.cc
31
BufferQueue
Buffers
(kSize, 1, Success);
37
BufferQueue
Buffers
(kSize, 1, Success);
40
ASSERT_EQ(
Buffers
.getBuffer(Buf), BufferQueue::ErrorCode::Ok);
42
ASSERT_EQ(
Buffers
.releaseBuffer(Buf), BufferQueue::ErrorCode::Ok);
48
BufferQueue
Buffers
(kSize, 1, Success);
51
EXPECT_EQ(
Buffers
.getBuffer(Buf0), BufferQueue::ErrorCode::Ok);
53
EXPECT_EQ(BufferQueue::ErrorCode::NotEnoughMemory,
Buffers
.getBuffer(Buf1));
54
EXPECT_EQ(
Buffers
.releaseBuffer(Buf0), BufferQueue::ErrorCode::Ok);
59
BufferQueue
Buffers
(kSize, 1, Success);
64
Buf.Generation =
Buffers
.generation()
[
all
...]
fdr_log_writer_test.cc
42
BufferQueue
Buffers
(kSize, 1, Success);
44
ASSERT_EQ(
Buffers
.getBuffer(B), BufferQueue::ErrorCode::Ok);
60
ASSERT_EQ(
Buffers
.releaseBuffer(B), BufferQueue::ErrorCode::Ok);
62
ASSERT_EQ(
Buffers
.finalize(), BufferQueue::ErrorCode::Ok);
64
// We then need to go through each element of the
Buffers
, and re-create a
67
std::string Serialized = serialize(
Buffers
, 3);
80
BufferQueue
Buffers
(kSize, 1, Success);
82
ASSERT_EQ(
Buffers
.getBuffer(B), BufferQueue::ErrorCode::Ok);
103
ASSERT_EQ(
Buffers
.releaseBuffer(B), BufferQueue::ErrorCode::Ok);
107
ASSERT_EQ(
Buffers
.getBuffer(B), BufferQueue::ErrorCode::Ok)
[
all
...]
profile_collector_test.cc
117
FunctionCallTrie::Allocators::
Buffers
Buffers
;
118
ASSERT_EQ(BQ.getBuffer(
Buffers
.NodeBuffer), BufferQueue::ErrorCode::Ok);
119
ASSERT_EQ(BQ.getBuffer(
Buffers
.RootsBuffer), BufferQueue::ErrorCode::Ok);
120
ASSERT_EQ(BQ.getBuffer(
Buffers
.ShadowStackBuffer),
122
ASSERT_EQ(BQ.getBuffer(
Buffers
.NodeIdPairBuffer), BufferQueue::ErrorCode::Ok);
123
auto Allocators = FunctionCallTrie::InitAllocatorsFromBuffers(
Buffers
);
137
std::move(
Buffers
), 1);
142
// Then we go through two
buffers
to see whether we're getting the data we
187
thread_local FunctionCallTrie::Allocators::
Buffers
Buffers = []
[
all
...]
test_helpers.cc
71
std::string serialize(BufferQueue &
Buffers
, int32_t Version) {
84
Buffers
.apply([&](const BufferQueue::Buffer &B) {
test_helpers.h
61
std::string serialize(BufferQueue &
Buffers
, int32_t Version);
/src/sys/external/bsd/compiler_rt/dist/lib/xray/
xray_buffer_queue.h
27
/// BufferQueue implements a circular queue of fixed sized
buffers
(much like a
29
/// get from or return
buffers
to the queue. This is one key component of the
35
/// store for all
buffers
and extents managed by a BufferQueue instance. The
79
// Buffer`. Note that we only advance to the "used"
buffers
, when
83
BufferRep *
Buffers
= nullptr;
91
} while (!
Buffers
[Offset].Used && Offset != Max);
101
T &operator*() const { return
Buffers
[Offset].Buff; }
103
T *operator->() const { return &(
Buffers
[Offset].Buff); }
106
:
Buffers
(Root),
111
while (!
Buffers
[Offset].Used && Offset != Max)
[
all
...]
xray_buffer_queue.cc
106
Buffers
= initArray<BufferRep>(BufferCount);
107
if (
Buffers
== nullptr)
110
// At this point we increment the generation number to associate the
buffers
119
// Then we initialise the individual
buffers
that sub-divide the whole backing
123
auto &T =
Buffers
[i];
138
Next =
Buffers
;
139
First =
Buffers
;
154
Buffers
(nullptr),
155
Next(
Buffers
),
156
First(
Buffers
),
[
all
...]
xray_profile_collector.h
36
/// Moves the collection of FunctionCallTrie, Allocators, and
Buffers
associated
42
FunctionCallTrie::Allocators::
Buffers
&&B, tid_t TId);
xray_profile_collector.cc
62
FunctionCallTrie::Allocators::
Buffers
Buffers
;
72
// by the ThreadData array. This lets us host the
buffers
, allocators, and tries
111
FunctionCallTrie::Allocators::
Buffers
&&B,
123
B.~
Buffers
();
142
B.~
Buffers
();
311
// Clear out the profile
buffers
that have been serialized.
321
TD.BQ->releaseBuffer(TD.
Buffers
.NodeBuffer);
322
TD.BQ->releaseBuffer(TD.
Buffers
.RootsBuffer);
323
TD.BQ->releaseBuffer(TD.
Buffers
.ShadowStackBuffer)
[
all
...]
xray_function_call_trie.h
165
struct
Buffers
{
172
explicit Allocators(
Buffers
&B) XRAY_NEVER_INSTRUMENT {
317
InitAllocatorsFromBuffers(Allocators::
Buffers
&Bufs) XRAY_NEVER_INSTRUMENT {
xray_profiling.cc
56
thread_local FunctionCallTrie::Allocators::
Buffers
ThreadBuffers;
98
// Acquire a set of
buffers
for this thread.
195
ThreadBuffers = FunctionCallTrie::Allocators::
Buffers
{};
250
// Now for each of the
buffers
, write out the profile data as we would
326
// Mark then finalize the current generation of
buffers
. This allows us to let
327
// the threads currently holding onto new
buffers
still use them, but let the
399
Report("Failed to initialize preallocated memory
buffers
!");
415
Report("Failed to initialize preallocated memory
buffers
; error: %s",
Completed in 37 milliseconds
Indexes created Sun Oct 26 13:09:57 GMT 2025