Home
last modified time | relevance | path

Searched refs:PERFETTO_CHECK (Results 1 – 25 of 51) sorted by relevance

123

/external/perfetto/src/ipc/
Dbuffered_frame_deserializer.cc42 PERFETTO_CHECK(max_capacity % base::kPageSize == 0); in BufferedFrameDeserializer()
43 PERFETTO_CHECK(max_capacity > base::kPageSize); in BufferedFrameDeserializer()
65 PERFETTO_CHECK(capacity_ > size_); in BeginReceive()
70 PERFETTO_CHECK(recv_size + size_ <= capacity_); in EndReceive()
138 PERFETTO_CHECK(move_begin > buf()); in EndReceive()
139 PERFETTO_CHECK(move_begin + size_ <= buf() + capacity_); in EndReceive()
150 PERFETTO_CHECK(madvise_begin > buf() + size_); in EndReceive()
151 PERFETTO_CHECK(madvise_begin + madvise_size <= buf() + capacity_); in EndReceive()
Dunix_socket.cc179 PERFETTO_CHECK(false); // Unfeasible. in UnixSocket()
192 PERFETTO_CHECK(fcntl_res == 0); in UnixSocket()
254 PERFETTO_CHECK(res == 0); in ReadPeerCredentials()
260 PERFETTO_CHECK(res == 0 && user_cred.cr_version == XUCRED_VERSION); in ReadPeerCredentials()
329 PERFETTO_CHECK(control_buf_len <= sizeof(control_buf)); in Send()
411 PERFETTO_CHECK(msg_hdr.msg_controllen <= sizeof(control_buf)); in Receive()
423 PERFETTO_CHECK(static_cast<size_t>(sz) <= len); in Receive()
464 PERFETTO_CHECK(static_cast<size_t>(rsize) <= max_length); in ReceiveString()
488 PERFETTO_CHECK(fcntl_res == 0); in SetBlockingIO()
Dbuffered_frame_deserializer_unittest.cc49 PERFETTO_CHECK(size_left >= 2); // We cannot produce frames < 2 bytes. in GetSimpleFrame()
65 PERFETTO_CHECK(frame.ByteSize() == static_cast<int>(payload_size)); in GetSimpleFrame()
69 PERFETTO_CHECK(frame.SerializeToArray(enc_buf + kHeaderSize, in GetSimpleFrame()
72 PERFETTO_CHECK(encoded_frame.size() == size); in GetSimpleFrame()
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc53 PERFETTO_CHECK(size <= std::numeric_limits<uint16_t>::max()); in InitChunkSizes()
119 PERFETTO_CHECK(chunk_header.chunk_id.load() == kMaxChunkID); in Initialize()
122 PERFETTO_CHECK(kMaxWriterID <= chunk_header.writer_id.load()); in Initialize()
124 PERFETTO_CHECK(page_size >= base::kPageSize); in Initialize()
125 PERFETTO_CHECK(page_size <= kMaxPageSize); in Initialize()
126 PERFETTO_CHECK(page_size % base::kPageSize == 0); in Initialize()
127 PERFETTO_CHECK(reinterpret_cast<uintptr_t>(start) % base::kPageSize == 0); in Initialize()
128 PERFETTO_CHECK(size % page_size == 0); in Initialize()
235 PERFETTO_CHECK(chunk.size() == page_chunk_size); in ReleaseChunk()
251 PERFETTO_CHECK(chunk_state == expected_chunk_state); in ReleaseChunk()
[all …]
Dtrace_writer_for_testing.cc39 PERFETTO_CHECK(cur_packet_->is_finalized()); in Flush()
46 PERFETTO_CHECK(cur_packet_->is_finalized()); in ParseProto()
/external/perfetto/src/base/
Dtemp_file.cc38 PERFETTO_CHECK(temp_file.fd_); in Create()
63 PERFETTO_CHECK(unlink(path_.c_str()) == 0); in Unlink()
75 PERFETTO_CHECK(mkdtemp(&temp_dir.path_[0])); in Create()
82 PERFETTO_CHECK(rmdir(path_.c_str()) == 0); in ~TempDir()
Dpage_allocator.cc39 PERFETTO_CHECK(ptr && ptr != MAP_FAILED); in AllocateInternal()
43 PERFETTO_CHECK(res == 0); in AllocateInternal()
55 PERFETTO_CHECK(size_); in operator ()()
59 PERFETTO_CHECK(res == 0); in operator ()()
Dwatchdog_posix.cc101 PERFETTO_CHECK(IsMultipleOf(window_ms, polling_interval_ms_) || bytes == 0); in SetMemoryLimit()
111 PERFETTO_CHECK(percentage <= 100); in SetCpuLimit()
112 PERFETTO_CHECK(IsMultipleOf(window_ms, polling_interval_ms_) || in SetCpuLimit()
146 PERFETTO_CHECK( in ThreadMain()
237 PERFETTO_CHECK(timer_create(CLOCK_MONOTONIC, &sev, &timerid_) != -1); in Timer()
241 PERFETTO_CHECK(timer_settime(timerid_, 0, &its, nullptr) != -1); in Timer()
Dunix_task_runner.cc35 PERFETTO_CHECK(pipe(pipe_fds) == 0); in UnixTaskRunner()
41 PERFETTO_CHECK(flags != -1); in UnixTaskRunner()
42 PERFETTO_CHECK(fcntl(fd, F_SETFL, flags | O_NONBLOCK) == 0); in UnixTaskRunner()
43 PERFETTO_CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in UnixTaskRunner()
52 PERFETTO_CHECK(fcntl(control_read_.get(), F_SETPIPE_SZ, 1) > 0); in UnixTaskRunner()
83 PERFETTO_CHECK(ret >= 0); in Run()
Dandroid_task_runner.cc32 PERFETTO_CHECK(immediate_event_); in AndroidTaskRunner()
33 PERFETTO_CHECK(delayed_timer_); in AndroidTaskRunner()
194 PERFETTO_CHECK(ALooper_addFd(looper_, fd, ALOOPER_POLL_CALLBACK, in AddFileDescriptorWatch()
/external/perfetto/src/tracing/ipc/service/
Dservice_ipc_host_impl.cc45 PERFETTO_CHECK(!svc_); // Check if already started. in Start()
57 PERFETTO_CHECK(!svc_); // Check if already started. in Start()
87 PERFETTO_CHECK(producer_service_exposed); in DoStart()
91 PERFETTO_CHECK(consumer_service_exposed); in DoStart()
Dproducer_ipc_service.cc44 PERFETTO_CHECK(ipc_client_id); in GetProducerForCurrentRequest()
57 PERFETTO_CHECK(ipc_client_id); in InitializeConnection()
233 PERFETTO_CHECK(service_endpoint->shared_memory()); in OnTracingSetup()
/external/perfetto/src/tracing/test/
Dfake_packet.cc34 PERFETTO_CHECK(size > 1); in FakePacketFragment()
77 PERFETTO_CHECK(payload_size <= 4096 - 2); in FakePacketFragment()
97 PERFETTO_CHECK(GetSizeHeader() == o.GetSizeHeader()); in operator ==()
111 PERFETTO_CHECK( in AddPacket()
115 PERFETTO_CHECK( in AddPacket()
/external/perfetto/src/tracing/ipc/
Dposix_shared_memory.cc59 PERFETTO_CHECK(fd); in Create()
61 PERFETTO_CHECK(res == 0); in Create()
76 PERFETTO_CHECK(res == 0 && stat_buf.st_size > 0); in AttachToFd()
87 PERFETTO_CHECK(start != MAP_FAILED); in MapFD()
/external/perfetto/src/ftrace_reader/
Dcpu_reader.cc71 PERFETTO_CHECK(fcntl(fd, F_SETFL, flags) == 0); in SetBlocking()
113 PERFETTO_CHECK(pipe(&pipe_fds[0]) == 0); in CpuReader()
118 PERFETTO_CHECK(trace_fd_); in CpuReader()
134 PERFETTO_CHECK(sigaction(SIGPIPE, nullptr, &current_act) == 0); in CpuReader()
142 PERFETTO_CHECK(sigaction(SIGPIPE, &act, nullptr) == 0); in CpuReader()
237 PERFETTO_CHECK(static_cast<size_t>(bytes) == base::kPageSize); in Drain()
304 PERFETTO_CHECK(false); in ParsePage()
356 PERFETTO_CHECK(event_header.type_or_length <= kTypeDataTypeLengthMax); in ParsePage()
507 PERFETTO_CHECK(false); in ParseField()
Dend_to_end_integrationtest.cc53 PERFETTO_CHECK(message); in Finalize()
74 PERFETTO_CHECK(!currently_writing_); in GetBundleForCpu()
83 PERFETTO_CHECK(currently_writing_); in OnBundleComplete()
Dftrace_procfs.cc103 PERFETTO_CHECK(ClearFile(path)); // Could not clear. in ClearTrace()
209 PERFETTO_CHECK(written == length || written == -1); in WriteToFile()
221 PERFETTO_CHECK(fd); in ReadOneCharFromFile()
224 PERFETTO_CHECK(bytes == 1 || bytes == -1); in ReadOneCharFromFile()
Devent_info_constants.h128 PERFETTO_CHECK(false); in ToString()
172 PERFETTO_CHECK(false); in ToString()
/external/perfetto/src/ftrace_reader/test/
Dcpu_reader_support.cc54 PERFETTO_CHECK(text.size() >= in PageFromXxd()
56 PERFETTO_CHECK(*(ptr++) == ' '); in PageFromXxd()
58 PERFETTO_CHECK(n == 2); in PageFromXxd()
Dscattered_stream_delegate_for_testing.cc29 PERFETTO_CHECK(writer_); in GetNewBuffer()
52 PERFETTO_CHECK(chunk_size <= chunk_size_); in StitchChunks()
/external/perfetto/src/traced/probes/filesystem/
Dinode_file_data_source_unittest.cc53 PERFETTO_CHECK(lstat("src/traced/probes/filesystem/testdata", &buf) != -1); in TestInodeFileDataSource()
87 PERFETTO_CHECK(lstat("src/traced/probes/filesystem/testdata/file2", &buf) != in TEST_F()
111 PERFETTO_CHECK(lstat("src/traced/probes/filesystem/testdata/file2", &buf) != in TEST_F()
130 PERFETTO_CHECK(lstat("src/traced/probes/filesystem/testdata/file2", &buf) != in TEST_F()
/external/perfetto/src/perfetto_cmd/
Dperfetto_cmd.cc224 PERFETTO_CHECK(daemon(0 /*nochdir*/, 0 /*noclose*/) == 0); in Main()
333 PERFETTO_CHECK(read_only_fd); in FinalizeTraceAndExit()
372 PERFETTO_CHECK(trace_out_stream_); in OpenOutputFile()
379 PERFETTO_CHECK(pipe(pipe_fds) == 0); in SetupCtrlCSignalHandler()
394 PERFETTO_CHECK(PERFETTO_EINTR(write(g_consumer_cmd->ctrl_c_pipe_wr(), &one, in SetupCtrlCSignalHandler()
/external/perfetto/include/perfetto/base/
Dwatchdog_posix.h98 PERFETTO_CHECK(filled_); in OldestWhenFull()
105 PERFETTO_CHECK(filled_); in NewestWhenFull()
Dlogging.h130 #define PERFETTO_CHECK(x) PERFETTO_DCHECK(x) macro
132 #define PERFETTO_CHECK(x) \ macro
/external/perfetto/test/
Dfake_producer.cc86 PERFETTO_CHECK(trace_writer_); in ProduceEventBatch()
87 PERFETTO_CHECK(message_size_ > 1); in ProduceEventBatch()

123