/external/perfetto/src/ipc/ |
D | buffered_frame_deserializer.cc | 42 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()
|
D | unix_socket.cc | 179 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()
|
D | buffered_frame_deserializer_unittest.cc | 49 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/ |
D | shared_memory_abi.cc | 53 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 …]
|
D | trace_writer_for_testing.cc | 39 PERFETTO_CHECK(cur_packet_->is_finalized()); in Flush() 46 PERFETTO_CHECK(cur_packet_->is_finalized()); in ParseProto()
|
/external/perfetto/src/base/ |
D | temp_file.cc | 38 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()
|
D | page_allocator.cc | 39 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 ()()
|
D | watchdog_posix.cc | 101 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()
|
D | unix_task_runner.cc | 35 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()
|
D | android_task_runner.cc | 32 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/ |
D | service_ipc_host_impl.cc | 45 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()
|
D | producer_ipc_service.cc | 44 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/ |
D | fake_packet.cc | 34 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/ |
D | posix_shared_memory.cc | 59 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/ |
D | cpu_reader.cc | 71 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, ¤t_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()
|
D | end_to_end_integrationtest.cc | 53 PERFETTO_CHECK(message); in Finalize() 74 PERFETTO_CHECK(!currently_writing_); in GetBundleForCpu() 83 PERFETTO_CHECK(currently_writing_); in OnBundleComplete()
|
D | ftrace_procfs.cc | 103 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()
|
D | event_info_constants.h | 128 PERFETTO_CHECK(false); in ToString() 172 PERFETTO_CHECK(false); in ToString()
|
/external/perfetto/src/ftrace_reader/test/ |
D | cpu_reader_support.cc | 54 PERFETTO_CHECK(text.size() >= in PageFromXxd() 56 PERFETTO_CHECK(*(ptr++) == ' '); in PageFromXxd() 58 PERFETTO_CHECK(n == 2); in PageFromXxd()
|
D | scattered_stream_delegate_for_testing.cc | 29 PERFETTO_CHECK(writer_); in GetNewBuffer() 52 PERFETTO_CHECK(chunk_size <= chunk_size_); in StitchChunks()
|
/external/perfetto/src/traced/probes/filesystem/ |
D | inode_file_data_source_unittest.cc | 53 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/ |
D | perfetto_cmd.cc | 224 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/ |
D | watchdog_posix.h | 98 PERFETTO_CHECK(filled_); in OldestWhenFull() 105 PERFETTO_CHECK(filled_); in NewestWhenFull()
|
D | logging.h | 130 #define PERFETTO_CHECK(x) PERFETTO_DCHECK(x) macro 132 #define PERFETTO_CHECK(x) \ macro
|
/external/perfetto/test/ |
D | fake_producer.cc | 86 PERFETTO_CHECK(trace_writer_); in ProduceEventBatch() 87 PERFETTO_CHECK(message_size_ > 1); in ProduceEventBatch()
|