Home
last modified time | relevance | path

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

/external/perfetto/src/tracing/core/
Dtrace_packet_unittest.cc91 size_t preamble_size; in TEST() local
95 std::tie(preamble, preamble_size) = tp.GetProtoPreamble(); in TEST()
96 ASSERT_EQ(2u, preamble_size); in TEST()
109 std::tie(preamble, preamble_size) = tp.GetProtoPreamble(); in TEST()
110 ASSERT_EQ(3u, preamble_size); in TEST()
114 memcpy(buf, preamble, preamble_size); in TEST()
116 memcpy(&buf[preamble_size], tp.slices()[0].start, tp.slices()[0].size); in TEST()
118 ASSERT_TRUE(trace.ParseFromArray(buf, preamble_size + tp.size())); in TEST()
Dtrace_packet.cc59 size_t preamble_size = reinterpret_cast<uintptr_t>(ptr) - in GetProtoPreamble() local
61 PERFETTO_DCHECK(preamble_size <= sizeof(preamble_)); in GetProtoPreamble()
62 return std::make_tuple(&preamble_[0], preamble_size); in GetProtoPreamble()
Dtracing_service_impl.cc3207 size_t preamble_size = 0; in MaybeSaveTraceForBugreport() local
3208 std::tie(preamble, preamble_size) = packet.GetProtoPreamble(); in MaybeSaveTraceForBugreport()
3209 base::WriteAll(fd, preamble, preamble_size); in MaybeSaveTraceForBugreport()
/external/perfetto/src/perfetto_cmd/
Dpacket_writer.cc71 size_t preamble_size = reinterpret_cast<uintptr_t>(ptr) - in GetPreamble() local
73 PERFETTO_DCHECK(preamble_size < preamble->size()); in GetPreamble()
74 return preamble_size; in GetPreamble()
219 size_t preamble_size = GetPreamble<kCompressedPacketsId>(size, &preamble); in FinalizeCompressedPacket() local
223 out_packet.AddSlice(preamble.data(), preamble_size); in FinalizeCompressedPacket()
/external/vboot_reference/firmware/include/
Dvboot_struct.h107 uint64_t preamble_size; member
149 uint64_t preamble_size; member
198 uint64_t preamble_size; member
235 uint64_t preamble_size; member
/external/vboot_reference/host/lib/
Dextract_vmlinuz.c32 now += preamble->preamble_size; in ExtractVmlinuz()
59 preamble->preamble_size; in ExtractVmlinuz()
Dhost_common.c46 h->preamble_size = block_size; in CreateFirmwarePreamble()
108 h->preamble_size = block_size; in CreateKernelPreamble()
/external/vboot_reference/firmware/lib/
Dvboot_common.c324 if (size < preamble->preamble_size) { in VerifyFirmwarePreamble()
330 if (VerifySignatureInside(preamble, preamble->preamble_size, sig)) { in VerifyFirmwarePreamble()
336 if (preamble->preamble_size < sig->data_size) { in VerifyFirmwarePreamble()
410 if (size < preamble->preamble_size) { in VerifyKernelPreamble()
416 if (VerifySignatureInside(preamble, preamble->preamble_size, sig)) { in VerifyKernelPreamble()
Dvboot_kernel.c337 preamble->preamble_size; in LoadKernel()
/external/vboot_reference/firmware/lib20/
Dcommon.c227 if (size < preamble->preamble_size) { in vb2_verify_fw_preamble()
233 if (vb2_verify_signature_inside(preamble, preamble->preamble_size, in vb2_verify_fw_preamble()
240 if (preamble->preamble_size < sig->data_size) { in vb2_verify_fw_preamble()
Dmisc.c166 pre_size = pre->preamble_size; in vb2_load_fw_preamble()
/external/perfetto/src/trace_processor/rpc/
Dquery_result_serializer.cc213 uint32_t preamble_size = static_cast<uint32_t>(preamble_end - &preamble[0]); in SerializeBatch() local
218 static_cast<uint32_t>(writer.written() + preamble_size); in SerializeBatch()
231 batch->AppendRawProtoBytes(preamble, preamble_size); in SerializeBatch()
/external/vboot_reference/futility/
Dcmd_vbutil_firmware.c160 (1 != fwrite(preamble, preamble->preamble_size, 1, f))); in Vblock()
251 now += preamble->preamble_size; in Verify()
256 preamble->preamble_size); in Verify()
Dvb1_helper.c332 Debug("Preamble is 0x%" PRIx64 " bytes\n", preamble->preamble_size); in UnpackKPart()
333 now += preamble->preamble_size; in UnpackKPart()
433 outsize = keyblock->key_block_size + preamble->preamble_size; in SignKernelBlob()
438 preamble, preamble->preamble_size); in SignKernelBlob()
565 g_preamble->preamble_size, rsa)) { in VerifyKernelBlob()
572 g_preamble->preamble_size); in VerifyKernelBlob()
Ddump_kernel_config_lib.c97 to_skip = preamble.preamble_size - sizeof(preamble); in FindKernelConfigFromStream()
102 now += preamble.preamble_size; in FindKernelConfigFromStream()
Dcmd_show.c346 preamble->preamble_size); in futil_cb_show_fw_preamble()
458 preamble->preamble_size); in futil_cb_show_kernel_preamble()
Dcmd_sign.c360 preamble, preamble->preamble_size); in futil_cb_sign_raw_firmware()
409 memcpy(vblock->buf + more, preamble, preamble->preamble_size); in write_new_preamble()
Dcmd_vbutil_kernel.c620 preamble->preamble_size; in do_vbutil_kernel()
/external/vboot_reference/tests/
Dvb20_misc_tests.c106 pre->preamble_size = sizeof(mock_vblock.p); in reset_common_data()
286 TEST_EQ(sd->workbuf_preamble_size, pre->preamble_size, "preamble size"); in verify_preamble_tests()
323 pre->preamble_size = sizeof(mock_vblock); in verify_preamble_tests()
Dvboot_kernel_tests.c169 kph.preamble_size = 4096 - kbh.key_block_size; in ResetMocks()
722 kph.preamble_size |= 0x07; in LoadKernelTest()
727 kph.preamble_size += 65536; in LoadKernelTest()
Dvboot_common2_tests.c135 hsize = (unsigned) hdr->preamble_size; in VerifyKernelPreambleTest()
Dvboot_common3_tests.c184 hsize = (unsigned) hdr->preamble_size; in VerifyFirmwarePreambleTest()
Dvb20_common3_tests.c200 hsize = (uint32_t) hdr->preamble_size; in test_verify_fw_preamble()
/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h144 uint32_t preamble_size; member
/external/perfetto/src/profiling/memory/
Dheapprofd_end_to_end_test.cc505 size_t preamble_size = std::get<1>(preamble); in ReadTraceData() local
506 size_t buf_size = preamble_size + payload.size(); in ReadTraceData()
509 memcpy(&buf[0], preamble_payload, preamble_size); in ReadTraceData()
510 memcpy(&buf[preamble_size], payload.data(), payload.size()); in ReadTraceData()