OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SharedMemoryABI
(Results
1 - 19
of
19
) sorted by null
/external/perfetto/src/tracing/core/
shared_memory_arbiter_impl.h
72
SharedMemoryABI
::Chunk GetNewChunk(const
SharedMemoryABI
::ChunkHeader&,
83
void ReturnCompletedChunk(
SharedMemoryABI
::Chunk,
98
SharedMemoryABI
* shmem_abi_for_testing() { return &shmem_abi_; }
100
static void set_default_layout_for_testing(
SharedMemoryABI
::PageLayout l) {
118
static
SharedMemoryABI
::PageLayout default_page_layout;
123
void UpdateCommitDataRequest(
SharedMemoryABI
::Chunk chunk,
136
SharedMemoryABI
shmem_abi_;
shared_memory_abi.cc
45
return ((page_size - sizeof(
SharedMemoryABI
::PageHeader)) / divider) & ~3UL;
49
std::array<uint16_t,
SharedMemoryABI
::kNumPageLayouts> InitChunkSizes(
51
static_assert(
SharedMemoryABI
::kNumPageLayouts ==
52
base::ArraySize(
SharedMemoryABI
::kNumChunksForLayout),
54
std::array<uint16_t,
SharedMemoryABI
::kNumPageLayouts> res = {};
55
for (size_t i = 0; i <
SharedMemoryABI
::kNumPageLayouts; i++) {
56
size_t num_chunks =
SharedMemoryABI
::kNumChunksForLayout[i];
64
inline void ClearChunkHeader(
SharedMemoryABI
::ChunkHeader* header) {
73
constexpr uint32_t
SharedMemoryABI
::kNumChunksForLayout[];
74
constexpr const char*
SharedMemoryABI
::kChunkStateStr[]
[
all
...]
shared_memory_abi_unittest.cc
28
using Chunk =
SharedMemoryABI
::Chunk;
29
using ChunkHeader =
SharedMemoryABI
::ChunkHeader;
37
SharedMemoryABI
abi(buf(), buf_size(), page_size());
52
ASSERT_TRUE(abi.TryPartitionPage(0,
SharedMemoryABI
::kPageDiv1));
55
ASSERT_TRUE(abi.TryPartitionPage(1,
SharedMemoryABI
::kPageDiv2));
58
ASSERT_TRUE(abi.TryPartitionPage(2,
SharedMemoryABI
::kPageDiv4));
61
ASSERT_TRUE(abi.TryPartitionPage(3,
SharedMemoryABI
::kPageDiv7));
64
ASSERT_TRUE(abi.TryPartitionPage(4,
SharedMemoryABI
::kPageDiv14));
68
ASSERT_FALSE(abi.TryPartitionPage(0,
SharedMemoryABI
::kPageDiv1));
69
ASSERT_FALSE(abi.TryPartitionPage(4,
SharedMemoryABI
::kPageDiv14))
[
all
...]
trace_writer_impl_unittest.cc
40
SharedMemoryABI
::PageLayout::kPageDiv4);
79
SharedMemoryABI
* abi = arbiter_->shmem_abi_for_testing();
83
size_t num_chunks =
SharedMemoryABI
::GetNumChunksForLayout(page_layout);
86
ASSERT_TRUE(chunk_state ==
SharedMemoryABI
::kChunkFree ||
87
chunk_state ==
SharedMemoryABI
::kChunkComplete);
120
SharedMemoryABI
* abi = arbiter_->shmem_abi_for_testing();
125
ASSERT_EQ(
SharedMemoryABI
::kChunkComplete, abi->GetChunkState(0u, 0u));
130
SharedMemoryABI
::ChunkHeader::kChunkNeedsPatching);
132
SharedMemoryABI
::ChunkHeader::kLastPacketContinuesOnNextChunk);
trace_writer_impl.h
48
void ResetChunkForTesting() { cur_chunk_ =
SharedMemoryABI
::Chunk(); }
73
SharedMemoryABI
::Chunk cur_chunk_;
startup_trace_writer_unittest.cc
41
SharedMemoryABI
::PageLayout::kPageDiv4);
73
SharedMemoryABI
* abi = arbiter_->shmem_abi_for_testing();
80
size_t num_chunks =
SharedMemoryABI
::GetNumChunksForLayout(page_layout);
83
ASSERT_TRUE(chunk_state ==
SharedMemoryABI
::kChunkFree ||
84
chunk_state ==
SharedMemoryABI
::kChunkComplete);
100
SharedMemoryABI
::ChunkHeader::kFirstPacketContinuesFromPrevChunk) {
startup_trace_writer.cc
29
using ChunkHeader = perfetto::
SharedMemoryABI
::ChunkHeader;
35
SharedMemoryABI
::Chunk NewChunk(SharedMemoryArbiterImpl* arbiter,
61
size_t ReadBytes(
SharedMemoryABI
::Chunk* target_chunk,
320
SharedMemoryABI
::Chunk cur_chunk =
336
SharedMemoryABI
::kPacketHeaderSize));
340
cur_payload_size +=
SharedMemoryABI
::kPacketHeaderSize;
357
max_payload_size -
SharedMemoryABI
::kPacketHeaderSize ||
patch_list.h
37
using PatchContent = std::array<uint8_t,
SharedMemoryABI
::kPacketHeaderSize>;
shared_memory_arbiter_impl.cc
33
using Chunk =
SharedMemoryABI
::Chunk;
36
SharedMemoryABI
::PageLayout SharedMemoryArbiterImpl::default_page_layout =
37
SharedMemoryABI
::PageLayout::kPageDiv1;
63
const
SharedMemoryABI
::ChunkHeader& header,
75
//
SharedMemoryABI
. But let's not be too adventurous for the moment.
92
free_chunks = (1 <<
SharedMemoryABI
::kNumChunksForLayout[layout]) - 1;
shared_memory_arbiter_impl_unittest.cc
89
SharedMemoryABI
::PageLayout::kPageDiv14);
91
SharedMemoryABI
::Chunk chunks[kTotChunks];
trace_writer_impl.cc
33
using ChunkHeader = perfetto::
SharedMemoryABI
::ChunkHeader;
38
constexpr size_t kPacketHeaderSize =
SharedMemoryABI
::kPacketHeaderSize;
startup_trace_writer_registry.cc
26
using ChunkHeader = perfetto::
SharedMemoryABI
::ChunkHeader;
trace_buffer.cc
54
SharedMemoryABI
::ChunkHeader::kFirstPacketContinuesFromPrevChunk;
56
SharedMemoryABI
::ChunkHeader::kLastPacketContinuesOnNextChunk;
58
SharedMemoryABI
::ChunkHeader::kChunkNeedsPatching;
75
static_assert(sizeof(ChunkRecord) == sizeof(
SharedMemoryABI
::PageHeader) +
76
sizeof(
SharedMemoryABI
::ChunkHeader),
77
"ChunkRecord out of sync with the layout of
SharedMemoryABI
");
428
static_assert(Patch::kSize ==
SharedMemoryABI
::kPacketHeaderSize,
429
"Patch::kSize out of sync with
SharedMemoryABI
");
[
all
...]
tracing_service_impl.cc
[
all
...]
tracing_service_impl.h
133
SharedMemoryABI
shmem_abi_;
trace_buffer_unittest.cc
47
SharedMemoryABI
::ChunkHeader::kFirstPacketContinuesFromPrevChunk;
49
SharedMemoryABI
::ChunkHeader::kLastPacketContinuesOnNextChunk;
51
SharedMemoryABI
::ChunkHeader::kChunkNeedsPatching;
[
all
...]
/external/perfetto/include/perfetto/tracing/core/
shared_memory_abi.h
143
class
SharedMemoryABI
{
418
friend class
SharedMemoryABI
;
428
SharedMemoryABI
(uint8_t* start, size_t size, size_t page_size);
429
SharedMemoryABI
();
563
SharedMemoryABI
(const
SharedMemoryABI
&) = delete;
564
SharedMemoryABI
& operator=(const
SharedMemoryABI
&) = delete;
/external/perfetto/src/tracing/test/
fake_packet.cc
113
SharedMemoryABI
::ChunkHeader::kFirstPacketContinuesFromPrevChunk) ||
116
!(flags &
SharedMemoryABI
::ChunkHeader::kLastPacketContinuesOnNextChunk));
/external/perfetto/src/tracing/ipc/service/
consumer_ipc_service.cc
238
// the max chunk size of the
SharedMemoryABI
). When sending a TracePacket,
241
static_assert(ipc::kIPCBufferSize >=
SharedMemoryABI
::kMaxPageSize * 2,
Completed in 269 milliseconds