Home
last modified time | relevance | path

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

12345678

/external/perfetto/src/profiling/memory/
Dclient_api_benchmark.cc62 PERFETTO_CHECK(ringbuf); in ConstructClient()
63 PERFETTO_CHECK(cli_sock); in ConstructClient()
64 PERFETTO_CHECK(srv_sock); in ConstructClient()
78 PERFETTO_CHECK(AHeapProfile_initSession(malloc, free)); in BM_ClientApiOneTenthAllocation()
80 PERFETTO_CHECK(g_shmem_fd); in BM_ClientApiOneTenthAllocation()
99 PERFETTO_CHECK(AHeapProfile_initSession(malloc, free)); in BM_ClientApiOneHundrethAllocation()
101 PERFETTO_CHECK(g_shmem_fd); in BM_ClientApiOneHundrethAllocation()
120 PERFETTO_CHECK(AHeapProfile_initSession(malloc, free)); in BM_ClientApiAlmostNoAllocation()
122 PERFETTO_CHECK(g_shmem_fd); in BM_ClientApiAlmostNoAllocation()
141 PERFETTO_CHECK(AHeapProfile_initSession(malloc, free)); in BM_ClientApiSample()
[all …]
Dshared_ring_buffer_write_fuzzer.cc55 PERFETTO_CHECK(fd); in FuzzRingBufferWrite()
74 PERFETTO_CHECK(ftruncate(*fd, static_cast<off_t>(total_size_pages * in FuzzRingBufferWrite()
76 PERFETTO_CHECK(base::WriteAll(*fd, &metadata_page, sizeof(metadata_page)) != in FuzzRingBufferWrite()
78 PERFETTO_CHECK(lseek(*fd, base::kPageSize, SEEK_SET) != -1); in FuzzRingBufferWrite()
79 PERFETTO_CHECK(base::WriteAll(*fd, payload, payload_size) != -1); in FuzzRingBufferWrite()
82 PERFETTO_CHECK(!!buf); in FuzzRingBufferWrite()
87 PERFETTO_CHECK(lock.locked()); in FuzzRingBufferWrite()
Dclient_api_unittest.cc63 PERFETTO_CHECK(ringbuf); in ConstructClient()
64 PERFETTO_CHECK(cli_sock); in ConstructClient()
65 PERFETTO_CHECK(srv_sock); in ConstructClient()
91 PERFETTO_CHECK(g_shmem_fd); in TEST()
94 PERFETTO_CHECK(ringbuf); in TEST()
113 PERFETTO_CHECK(g_shmem_fd); in TEST()
116 PERFETTO_CHECK(ringbuf); in TEST()
Dshared_ring_buffer_fuzzer.cc50 PERFETTO_CHECK(fd); in FuzzRingBuffer()
70 PERFETTO_CHECK(ftruncate(*fd, static_cast<off_t>(total_size_pages * in FuzzRingBuffer()
72 PERFETTO_CHECK(base::WriteAll(*fd, &header, sizeof(header)) != -1); in FuzzRingBuffer()
73 PERFETTO_CHECK(lseek(*fd, base::kPageSize, SEEK_SET) != -1); in FuzzRingBuffer()
74 PERFETTO_CHECK(base::WriteAll(*fd, payload, payload_size) != -1); in FuzzRingBuffer()
77 PERFETTO_CHECK(!!buf); in FuzzRingBuffer()
/external/perfetto/src/base/
Dpipe.cc43 PERFETTO_CHECK(::CreatePipe(&fds[0], &fds[1], /*lpPipeAttributes=*/nullptr, in Create()
46 PERFETTO_CHECK(pipe(fds) == 0); in Create()
47 PERFETTO_CHECK(fcntl(fds[0], F_SETFD, FD_CLOEXEC) == 0); in Create()
48 PERFETTO_CHECK(fcntl(fds[1], F_SETFD, FD_CLOEXEC) == 0); in Create()
57 PERFETTO_CHECK(cur_flags >= 0); in Create()
58 PERFETTO_CHECK(fcntl(*p.rd, F_SETFL, cur_flags | O_NONBLOCK) == 0); in Create()
63 PERFETTO_CHECK(cur_flags >= 0); in Create()
64 PERFETTO_CHECK(fcntl(*p.wr, F_SETFL, cur_flags | O_NONBLOCK) == 0); in Create()
67 PERFETTO_CHECK(flags == kBothBlock); in Create()
Dutils.cc106 PERFETTO_CHECK(::_putenv_s(key.c_str(), value.c_str()) == 0); in SetEnv()
108 PERFETTO_CHECK(::setenv(key.c_str(), value.c_str(), /*overwrite=*/true) == 0); in SetEnv()
121 PERFETTO_CHECK(setsid() != -1); in Daemonize()
124 PERFETTO_CHECK(null); in Daemonize()
125 PERFETTO_CHECK(dup2(*null, STDIN_FILENO) != -1); in Daemonize()
126 PERFETTO_CHECK(dup2(*null, STDOUT_FILENO) != -1); in Daemonize()
127 PERFETTO_CHECK(dup2(*null, STDERR_FILENO) != -1); in Daemonize()
Dunix_socket.cc115 PERFETTO_CHECK(false); // For GCC. in GetSockFamily()
132 PERFETTO_CHECK(false); // For GCC. in GetSockType()
159 PERFETTO_CHECK(static_cast<size_t>(size) <= sizeof(saddr)); in MakeSockAddr()
164 PERFETTO_CHECK(parts.size() == 2); in MakeSockAddr()
168 PERFETTO_CHECK(getaddrinfo(parts[0].c_str(), parts[1].c_str(), &hints, in MakeSockAddr()
170 PERFETTO_CHECK(addr_info->ai_family == AF_INET); in MakeSockAddr()
178 PERFETTO_CHECK(parts.size() == 2); in MakeSockAddr()
180 PERFETTO_CHECK(address.size() == 1); in MakeSockAddr()
182 PERFETTO_CHECK(port.size() == 1); in MakeSockAddr()
186 PERFETTO_CHECK(getaddrinfo(address[0].c_str(), port[0].c_str(), &hints, in MakeSockAddr()
[all …]
Dtemp_file.cc42 PERFETTO_CHECK(_mktemp_s(name, sizeof(name)) == 0); in GetTempName()
83 PERFETTO_CHECK(PlatformHandleChecker::IsValid(h)); in Create()
122 PERFETTO_CHECK(DeleteFileA(path_.c_str())); in Unlink()
124 PERFETTO_CHECK(unlink(path_.c_str()) == 0); in Unlink()
137 PERFETTO_CHECK(_mkdir(temp_dir.path_.c_str()) == 0); in Create()
140 PERFETTO_CHECK(mkdtemp(&temp_dir.path_[0])); in Create()
152 PERFETTO_CHECK(Rmdir(path_)); in ~TempDir()
Dpaged_memory.cc55 PERFETTO_CHECK(rounded_up_size >= req_size); in Allocate()
61 PERFETTO_CHECK(ptr); in Allocate()
68 PERFETTO_CHECK(ptr && ptr != MAP_FAILED); in Allocate()
72 PERFETTO_CHECK(res == 0); in Allocate()
107 PERFETTO_CHECK(size_); in ~PagedMemory()
111 PERFETTO_CHECK(res != 0); in ~PagedMemory()
115 PERFETTO_CHECK(res == 0); in ~PagedMemory()
155 PERFETTO_CHECK(res); in EnsureCommitted()
Dsubprocess_windows.cc66 PERFETTO_CHECK( in Start()
71 PERFETTO_CHECK( in Start()
80 PERFETTO_CHECK(::SetHandleInformation(*nul_handle, HANDLE_FLAG_INHERIT, 1)); in Start()
94 PERFETTO_CHECK( in Start()
98 PERFETTO_CHECK(false); in Start()
108 PERFETTO_CHECK( in Start()
112 PERFETTO_CHECK(false); in Start()
220 PERFETTO_CHECK(s_->status != kNotStarted); in Wait()
246 PERFETTO_CHECK(::GetExitCodeProcess(*s_->win_proc_handle, &exit_code)); in Wait()
294 PERFETTO_CHECK(wait_res != WAIT_FAILED); in Wait()
/external/perfetto/src/perfetto_cmd/
Dperfetto_cmd_android.cc38 PERFETTO_CHECK(save_to_incidentd_); in SaveTraceIntoDropboxAndIncidentOrCrash()
39 PERFETTO_CHECK( in SaveTraceIntoDropboxAndIncidentOrCrash()
61 PERFETTO_CHECK(incident_fn(cfg.destination_package().c_str(), in SaveTraceIntoDropboxAndIncidentOrCrash()
79 PERFETTO_CHECK(unlink(kTempIncidentTracePath) == 0 || errno == ENOENT); in SaveOutputToIncidentTraceOrCrash()
84 PERFETTO_CHECK(fflush(*trace_out_stream_) == 0); in SaveOutputToIncidentTraceOrCrash()
85 PERFETTO_CHECK(fseek(*trace_out_stream_, 0, SEEK_SET) == 0); in SaveOutputToIncidentTraceOrCrash()
90 PERFETTO_CHECK(staging_fd); in SaveOutputToIncidentTraceOrCrash()
124 PERFETTO_CHECK(rename(kTempIncidentTracePath, kIncidentTracePath) == 0); in SaveOutputToIncidentTraceOrCrash()
/external/perfetto/src/protozero/filtering/
Dfilter_bytecode_generator.cc40 PERFETTO_CHECK(field_id > last_field_id_); in AddSimpleField()
51 PERFETTO_CHECK(range_start > last_field_id_); in AddSimpleFieldRange()
52 PERFETTO_CHECK(range_len > 0); in AddSimpleFieldRange()
66 PERFETTO_CHECK(field_id > last_field_id_); in AddNestedField()
79 PERFETTO_CHECK(endmessage_called_); in Serialize()
80 PERFETTO_CHECK(max_msg_index_ < num_messages_); in Serialize()
/external/perfetto/src/ipc/
Dbuffered_frame_deserializer.cc41 PERFETTO_CHECK(max_capacity % base::GetSysPageSize() == 0); in BufferedFrameDeserializer()
42 PERFETTO_CHECK(max_capacity >= base::GetSysPageSize()); in BufferedFrameDeserializer()
63 PERFETTO_CHECK(capacity_ > size_); in BeginReceive()
69 PERFETTO_CHECK(recv_size + size_ <= capacity_); in EndReceive()
137 PERFETTO_CHECK(move_begin > buf()); in EndReceive()
138 PERFETTO_CHECK(move_begin + size_ <= buf() + capacity_); in EndReceive()
149 PERFETTO_CHECK(madvise_begin > buf() + size_); in EndReceive()
150 PERFETTO_CHECK(madvise_begin + madvise_size <= buf() + capacity_); in EndReceive()
/external/perfetto/tools/cpu_utilization/
Dcpu_utilization.cc41 PERFETTO_CHECK(ts.tv_sec >= 0 && ts.tv_nsec >= 0); in TimespecToMs()
48 PERFETTO_CHECK(clock_gettime(clk, &ts) == 0); in ReadWallTimeMs()
57 PERFETTO_CHECK(read(stat_fd.get(), buf, sizeof(buf)) > 0); in ReadUtimeStime()
60 PERFETTO_CHECK( in ReadUtimeStime()
102 PERFETTO_CHECK(ticks >= 100); in CpuUtilizationMain()
108 PERFETTO_CHECK(clock_getres(clk, &ts) == 0); in CpuUtilizationMain()
109 PERFETTO_CHECK(ts.tv_sec == 0 && ts.tv_nsec <= 1 * 1000 * 1000); in CpuUtilizationMain()
121 PERFETTO_CHECK(fd); in CpuUtilizationMain()
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc58 PERFETTO_CHECK(size <= std::numeric_limits<uint16_t>::max()); in InitChunkSizes()
132 PERFETTO_CHECK(chunk_header.chunk_id.load() == kMaxChunkID); in Initialize()
135 PERFETTO_CHECK(kMaxWriterID <= chunk_header.writer_id.load()); in Initialize()
137 PERFETTO_CHECK(page_size >= kMinPageSize); in Initialize()
138 PERFETTO_CHECK(page_size <= kMaxPageSize); in Initialize()
139 PERFETTO_CHECK(page_size % kMinPageSize == 0); in Initialize()
140 PERFETTO_CHECK(reinterpret_cast<uintptr_t>(start) % kMinPageSize == 0); in Initialize()
141 PERFETTO_CHECK(size % page_size == 0); in Initialize()
253 PERFETTO_CHECK(chunk.size() == page_chunk_size); in ReleaseChunk()
269 PERFETTO_CHECK(chunk_state == expected_chunk_state); in ReleaseChunk()
[all …]
Dtrace_writer_for_testing.cc38 PERFETTO_CHECK(cur_packet_->is_finalized()); in Flush()
46 PERFETTO_CHECK(cur_packet_->is_finalized()); in GetAllTracePackets()
52 PERFETTO_CHECK(fld.id() == protos::pbzero::Trace::kPacketFieldNumber); in GetAllTracePackets()
57 PERFETTO_CHECK(trace.bytes_left() == 0); in GetAllTracePackets()
63 PERFETTO_CHECK(packets.size() == 1); in GetOnlyTracePacket()
Dshared_memory_arbiter_impl.cc42 PERFETTO_CHECK(reservation_id > 0); in MakeTargetBufferIdForReservation()
436 PERFETTO_CHECK(ptr <= chunk.end() - SharedMemoryABI::kPacketHeaderSize); in TryDirectPatchLocked()
574 PERFETTO_CHECK(target_buffer > 0); in CreateTraceWriter()
580 PERFETTO_CHECK(!initially_bound_); in CreateStartupTraceWriter()
591 PERFETTO_CHECK(!initially_bound_); in BindToProducerEndpoint()
597 PERFETTO_CHECK(!fully_bound_); in BindToProducerEndpoint()
598 PERFETTO_CHECK(!producer_endpoint_ && !task_runner_); in BindToProducerEndpoint()
612 PERFETTO_CHECK(IsReservationTargetBufferId(entry.second)); in BindToProducerEndpoint()
634 PERFETTO_CHECK(!initially_bound_); in BindStartupTargetBuffer()
639 PERFETTO_CHECK(!fully_bound_); in BindStartupTargetBuffer()
[all …]
/external/perfetto/tools/ftrace_proto_gen/
Dproto_gen_utils.cc44 PERFETTO_CHECK(clang_fmt.Call()); in RunClangFmt()
57 PERFETTO_CHECK(base::ReadFile(filename_, &expected_)); in VerifyStream()
85 PERFETTO_CHECK(valid_); in name()
90 PERFETTO_CHECK(valid_); in group()
114 PERFETTO_CHECK(type == NUMERIC); in GetSigned()
128 PERFETTO_CHECK(false); in ToString()
140 PERFETTO_CHECK(false); // for GCC. in ToString()
155 PERFETTO_CHECK(size == 32 || size == 64); in Numeric()
234 PERFETTO_CHECK(field); in Proto()
266 PERFETTO_CHECK(name == other.name); in MergeFrom()
Dmain.cc102 PERFETTO_CHECK(!event_list_path.empty()); in main()
103 PERFETTO_CHECK(!output_dir.empty()); in main()
104 PERFETTO_CHECK(!proto_descriptor.empty()); in main()
122 PERFETTO_CHECK(descriptor_pool.BuildFile(d)); in main()
217 PERFETTO_CHECK(!fout->fail()); in main()
225 PERFETTO_CHECK(!out->fail()); in main()
232 PERFETTO_CHECK(!out->fail()); in main()
266 PERFETTO_CHECK(!f->fail()); in main()
/external/perfetto/src/tracing/ipc/
Dposix_shared_memory.cc62 PERFETTO_CHECK(fd); in Create()
64 PERFETTO_CHECK(res == 0); in Create()
83 PERFETTO_CHECK(HasMemfdSupport()); in AttachToFd()
101 PERFETTO_CHECK(res == 0 && stat_buf.st_size > 0); in AttachToFd()
112 PERFETTO_CHECK(start != MAP_FAILED); in MapFD()
/external/perfetto/src/traced/service/
Dservice.cc47 PERFETTO_CHECK(!socket_name.empty()); in SetSocketPermissions()
48 PERFETTO_CHECK(!group_name.empty()); in SetSocketPermissions()
132 PERFETTO_CHECK(parts.size() == 4); in ServiceMain()
133 PERFETTO_CHECK( in ServiceMain()
161 PERFETTO_CHECK((!env_prod && !env_cons) || (env_prod && env_cons)); in ServiceMain()
165 PERFETTO_CHECK(false); in ServiceMain()
/external/perfetto/src/trace_processor/sqlite/
Dsqlite_vtable_benchmark.cc96 PERFETTO_CHECK(col < column_buffer_.size()); in Column()
115 PERFETTO_CHECK(sqlite3_open(":memory:", &raw_db) == SQLITE_OK); in BM_SqliteStepAndResult()
127 PERFETTO_CHECK(res == SQLITE_OK); in BM_SqliteStepAndResult()
174 PERFETTO_CHECK(res == SQLITE_OK); in BM_SqliteStepAndResult()
181 PERFETTO_CHECK(err == SQLITE_OK); in BM_SqliteStepAndResult()
189 PERFETTO_CHECK(sqlite3_step(*stmt) == SQLITE_ROW); in BM_SqliteStepAndResult()
194 PERFETTO_CHECK(value != 42); in BM_SqliteStepAndResult()
Dquery_constraints.cc114 PERFETTO_CHECK(splitter.Next() && splitter.cur_token_size() > 1); in FromString()
118 PERFETTO_CHECK(splitter.Next()); in FromString()
120 PERFETTO_CHECK(splitter.Next()); in FromString()
126 PERFETTO_CHECK(splitter.Next() && splitter.cur_token_size() > 1); in FromString()
130 PERFETTO_CHECK(splitter.Next()); in FromString()
132 PERFETTO_CHECK(splitter.Next()); in FromString()
/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()
151 PERFETTO_CHECK(chunk_size >= in PadTo()
/external/perfetto/test/
Dproducer_socket_fuzzer.cc35 PERFETTO_CHECK(false); in OnNewIncomingConnection()
39 PERFETTO_CHECK(connected && self->is_connected()); in OnConnect()
44 void OnDisconnect(base::UnixSocket*) override { PERFETTO_CHECK(false); } in OnDisconnect()
45 void OnDataAvailable(base::UnixSocket*) override { PERFETTO_CHECK(false); } in OnDataAvailable()

12345678