Home
last modified time | relevance | path

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

12345

/external/perfetto/src/base/
Dpipe.cc33 PERFETTO_CHECK(pipe(fds) == 0); in Create()
38 PERFETTO_CHECK(fcntl(*p.rd, F_SETFD, FD_CLOEXEC) == 0); in Create()
39 PERFETTO_CHECK(fcntl(*p.wr, F_SETFD, FD_CLOEXEC) == 0); in Create()
43 PERFETTO_CHECK(cur_flags >= 0); in Create()
44 PERFETTO_CHECK(fcntl(*p.rd, F_SETFL, cur_flags | O_NONBLOCK) == 0); in Create()
49 PERFETTO_CHECK(cur_flags >= 0); in Create()
50 PERFETTO_CHECK(fcntl(*p.wr, F_SETFL, cur_flags | O_NONBLOCK) == 0); in Create()
Dpaged_memory.cc52 PERFETTO_CHECK(ptr); in Allocate()
59 PERFETTO_CHECK(ptr && ptr != MAP_FAILED); in Allocate()
63 PERFETTO_CHECK(res == 0); in Allocate()
96 PERFETTO_CHECK(size_); in ~PagedMemory()
100 PERFETTO_CHECK(res != 0); in ~PagedMemory()
104 PERFETTO_CHECK(res == 0); in ~PagedMemory()
142 PERFETTO_CHECK(res); in EnsureCommitted()
Dtemp_file.cc44 PERFETTO_CHECK(temp_file.fd_); in Create()
69 PERFETTO_CHECK(unlink(path_.c_str()) == 0); in Unlink()
81 PERFETTO_CHECK(mkdtemp(&temp_dir.path_[0])); in Create()
88 PERFETTO_CHECK(rmdir(path_.c_str()) == 0); in ~TempDir()
Dunix_socket.cc75 PERFETTO_CHECK(false); in GetUnixSockType()
119 PERFETTO_CHECK(n == 0); in ShiftMsgHdr()
142 PERFETTO_CHECK(fd_); in UnixSocketRaw()
151 PERFETTO_CHECK(fcntl_res == 0); in UnixSocketRaw()
163 PERFETTO_CHECK(fcntl_res == 0); in SetBlocking()
171 PERFETTO_CHECK(fcntl_res == 0); in RetainOnExec()
264 PERFETTO_CHECK(control_buf_len <= sizeof(control_buf)); in Send()
295 PERFETTO_CHECK(msg_hdr.msg_controllen <= sizeof(control_buf)); in Receive()
301 PERFETTO_CHECK(static_cast<size_t>(sz) <= len); in Receive()
312 PERFETTO_CHECK(fds == nullptr); in Receive()
[all …]
Dwatchdog_posix.cc112 PERFETTO_CHECK(IsMultipleOf(window_ms, polling_interval_ms_) || bytes == 0); in SetMemoryLimit()
122 PERFETTO_CHECK(percentage <= 100); in SetCpuLimit()
123 PERFETTO_CHECK(IsMultipleOf(window_ms, polling_interval_ms_) || in SetCpuLimit()
157 PERFETTO_CHECK( in ThreadMain()
252 PERFETTO_CHECK(timer_create(CLOCK_MONOTONIC, &sev, &timerid_) != -1); in Timer()
256 PERFETTO_CHECK(timer_settime(timerid_, 0, &its, nullptr) != -1); in Timer()
/external/perfetto/tools/ftrace_proto_gen/
Dproto_gen_utils.cc43 PERFETTO_CHECK(dup2(*input_pipe.rd, STDIN_FILENO) != -1); in RunClangFmt()
44 PERFETTO_CHECK(dup2(*output_pipe.wr, STDOUT_FILENO) != -1); in RunClangFmt()
47 PERFETTO_CHECK(execl("buildtools/linux64/clang-format", "clang-format", in RunClangFmt()
50 PERFETTO_CHECK(pid > 0); in RunClangFmt()
88 PERFETTO_CHECK(WIFEXITED(wstatus) && WEXITSTATUS(wstatus) == 0); in RunClangFmt()
100 PERFETTO_CHECK(base::ReadFile(filename_, &expected_)); in VerifyStream()
128 PERFETTO_CHECK(valid_); in name()
133 PERFETTO_CHECK(valid_); in group()
157 PERFETTO_CHECK(type == NUMERIC); in GetSigned()
171 PERFETTO_CHECK(false); in ToString()
[all …]
Dmain.cc86 PERFETTO_CHECK(!whitelist_path.empty()); in main()
87 PERFETTO_CHECK(!output_dir.empty()); in main()
88 PERFETTO_CHECK(!proto_descriptor.empty()); in main()
114 PERFETTO_CHECK(descriptor_pool.BuildFile(d)); in main()
220 PERFETTO_CHECK(!fout->fail()); in main()
228 PERFETTO_CHECK(!out->fail()); in main()
235 PERFETTO_CHECK(!out->fail()); in main()
269 PERFETTO_CHECK(!f->fail()); in main()
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer_write_fuzzer.cc54 PERFETTO_CHECK(fd); in FuzzRingBufferWrite()
73 PERFETTO_CHECK(ftruncate(*fd, static_cast<off_t>(total_size_pages * in FuzzRingBufferWrite()
75 PERFETTO_CHECK(base::WriteAll(*fd, &metadata_page, sizeof(metadata_page)) != in FuzzRingBufferWrite()
77 PERFETTO_CHECK(lseek(*fd, base::kPageSize, SEEK_SET) != -1); in FuzzRingBufferWrite()
78 PERFETTO_CHECK(base::WriteAll(*fd, payload, payload_size) != -1); in FuzzRingBufferWrite()
81 PERFETTO_CHECK(!!buf); in FuzzRingBufferWrite()
86 PERFETTO_CHECK(lock.locked()); in FuzzRingBufferWrite()
Dshared_ring_buffer_fuzzer.cc49 PERFETTO_CHECK(fd); in FuzzRingBuffer()
68 PERFETTO_CHECK(ftruncate(*fd, static_cast<off_t>(total_size_pages * in FuzzRingBuffer()
70 PERFETTO_CHECK(base::WriteAll(*fd, &header, sizeof(header)) != -1); in FuzzRingBuffer()
71 PERFETTO_CHECK(lseek(*fd, base::kPageSize, SEEK_SET) != -1); in FuzzRingBuffer()
72 PERFETTO_CHECK(base::WriteAll(*fd, payload, payload_size) != -1); in FuzzRingBuffer()
75 PERFETTO_CHECK(!!buf); in FuzzRingBuffer()
Dheapprofd_end_to_end_test.cc338 PERFETTO_CHECK(kill(pid, SIGKILL) == 0); in Smoke()
339 PERFETTO_CHECK(PERFETTO_EINTR(waitpid(pid, nullptr, 0)) == pid); in Smoke()
371 PERFETTO_CHECK(kill(pid, SIGKILL) == 0); in TwoProcesses()
372 PERFETTO_CHECK(PERFETTO_EINTR(waitpid(pid, nullptr, 0)) == pid); in TwoProcesses()
373 PERFETTO_CHECK(kill(pid2, SIGKILL) == 0); in TwoProcesses()
374 PERFETTO_CHECK(PERFETTO_EINTR(waitpid(pid2, nullptr, 0)) == pid2); in TwoProcesses()
402 PERFETTO_CHECK(kill(pid, SIGKILL) == 0); in FinalFlush()
403 PERFETTO_CHECK(PERFETTO_EINTR(waitpid(pid, nullptr, 0)) == pid); in FinalFlush()
443 PERFETTO_CHECK(execle("/proc/self/exe", "heapprofd_continuous_malloc", in NativeStartup()
456 PERFETTO_CHECK(kill(pid, SIGKILL) == 0); in NativeStartup()
[all …]
Dproc_utils_unittest.cc53 PERFETTO_CHECK(pipe(pipefds) == 0); in TEST()
55 PERFETTO_CHECK(pid >= 0); in TEST()
72 PERFETTO_CHECK(PERFETTO_EINTR(waitpid(pid, nullptr, 0)) == pid); in TEST()
/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()
63 PERFETTO_CHECK(capacity_ > size_); in BeginReceive()
68 PERFETTO_CHECK(recv_size + size_ <= capacity_); in EndReceive()
136 PERFETTO_CHECK(move_begin > buf()); in EndReceive()
137 PERFETTO_CHECK(move_begin + size_ <= buf() + capacity_); in EndReceive()
148 PERFETTO_CHECK(madvise_begin > buf() + size_); in EndReceive()
149 PERFETTO_CHECK(madvise_begin + madvise_size <= buf() + capacity_); in EndReceive()
/external/perfetto/src/perfetto_cmd/
Dperfetto_cmd.cc133 PERFETTO_CHECK(handle); in StartIncidentReport()
136 PERFETTO_CHECK(fn); in StartIncidentReport()
339 PERFETTO_CHECK(limiter.ClearState()); in Main()
372 PERFETTO_CHECK(!detach_key_.empty()); in Main()
378 PERFETTO_CHECK(!attach_key_.empty()); in Main()
385 PERFETTO_CHECK(!attach_key_.empty()); in Main()
524 PERFETTO_CHECK(setsid() != -1); in Main()
527 PERFETTO_CHECK(null); in Main()
528 PERFETTO_CHECK(dup2(*null, STDIN_FILENO) != -1); in Main()
529 PERFETTO_CHECK(dup2(*null, STDOUT_FILENO) != -1); in Main()
[all …]
Dpbtxt_to_pb.cc104 PERFETTO_CHECK(start != std::string::npos); in Format()
106 PERFETTO_CHECK(result.find(key_value.first) == std::string::npos); in Format()
213 PERFETTO_CHECK(field_type == FieldDescriptorProto::TYPE_STRING || in StringField()
300 PERFETTO_CHECK(enum_descriptor); in IdentifierField()
311 PERFETTO_CHECK(found_value); in IdentifierField()
328 PERFETTO_CHECK(nested_descriptor); in BeginNestedMessage()
359 PERFETTO_CHECK(ParseInteger(t.txt, &n)); in VarIntField()
372 PERFETTO_CHECK(ParseInteger(t.txt, &n)); in FixedField()
386 PERFETTO_CHECK(sscanf(s.ToStdString().c_str(), "%" PRIu64, &n) == 1); in ParseInteger()
387 PERFETTO_CHECK(n <= std::numeric_limits<T>::max()); in ParseInteger()
[all …]
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc58 PERFETTO_CHECK(size <= std::numeric_limits<uint16_t>::max()); in InitChunkSizes()
130 PERFETTO_CHECK(chunk_header.chunk_id.load() == kMaxChunkID); in Initialize()
133 PERFETTO_CHECK(kMaxWriterID <= chunk_header.writer_id.load()); in Initialize()
135 PERFETTO_CHECK(page_size >= base::kPageSize); in Initialize()
136 PERFETTO_CHECK(page_size <= kMaxPageSize); in Initialize()
137 PERFETTO_CHECK(page_size % base::kPageSize == 0); in Initialize()
138 PERFETTO_CHECK(reinterpret_cast<uintptr_t>(start) % base::kPageSize == 0); in Initialize()
139 PERFETTO_CHECK(size % page_size == 0); in Initialize()
251 PERFETTO_CHECK(chunk.size() == page_chunk_size); in ReleaseChunk()
267 PERFETTO_CHECK(chunk_state == expected_chunk_state); in ReleaseChunk()
[all …]
Dtrace_writer_for_testing.cc42 PERFETTO_CHECK(cur_packet_->is_finalized()); in Flush()
49 PERFETTO_CHECK(cur_packet_->is_finalized()); in GetAllTracePackets()
64 PERFETTO_CHECK(cur_packet_->is_finalized()); in ParseProto()
67 PERFETTO_CHECK(!trace.empty()); in ParseProto()
/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()
146 PERFETTO_CHECK(chunk_size >= in PadTo()
/external/perfetto/src/trace_processor/
Dquery_constraints.cc110 PERFETTO_CHECK(splitter.Next() && splitter.cur_token_size() > 1); in FromString()
114 PERFETTO_CHECK(splitter.Next()); in FromString()
116 PERFETTO_CHECK(splitter.Next()); in FromString()
122 PERFETTO_CHECK(splitter.Next() && splitter.cur_token_size() > 1); in FromString()
126 PERFETTO_CHECK(splitter.Next()); in FromString()
128 PERFETTO_CHECK(splitter.Next()); in FromString()
Dstring_pool.cc28 PERFETTO_CHECK(blocks_.back().TryInsert(NullTermStringView())); in StringPool()
38 PERFETTO_CHECK(str.size() < std::numeric_limits<uint16_t>::max()); in InsertString()
47 PERFETTO_CHECK(sizeof(uint8_t*) == 4); in InsertString()
54 PERFETTO_CHECK(ptr); in InsertString()
Dsqlite3_str_split_unittest.cc34 PERFETTO_CHECK(sqlite3_open(":memory:", &db) == SQLITE_OK); in Sqlite3StrSplitTest()
45 PERFETTO_CHECK(sqlite3_prepare_v2(*db_, sql.c_str(), in SplitStmt()
49 PERFETTO_CHECK(sqlite3_step(stmt) == SQLITE_ROW); in SplitStmt()
Dwasm_bridge.cc151 PERFETTO_CHECK(cell.type == SqlValue::Type::kLong || in trace_processor_rawQuery()
161 PERFETTO_CHECK(cell.type == SqlValue::Type::kString); in trace_processor_rawQuery()
167 PERFETTO_CHECK(cell.type == SqlValue::Type::kLong || in trace_processor_rawQuery()
/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()
82 PERFETTO_CHECK(producer_service_exposed); in DoStart()
86 PERFETTO_CHECK(consumer_service_exposed); in DoStart()
/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/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/traced/probes/ftrace/test/
Dcpu_reader_support.cc80 PERFETTO_CHECK(text.size() >= in PageFromXxd()
82 PERFETTO_CHECK(*(ptr++) == ' '); in PageFromXxd()
84 PERFETTO_CHECK(n == 2); in PageFromXxd()

12345