Home
last modified time | relevance | path

Searched refs:block (Results 1 - 25 of 30) sorted by relevance

12

/developtools/profiler/device/plugins/ftrace_plugin/src/
H A Dpaged_mem_pool.cpp53 void* block = nullptr; in Allocate() local
55 block = freeList_.back(); in Allocate()
57 return block; in Allocate()
60 block = mmap(nullptr, blockSize_, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in Allocate()
61 CHECK_NOTNULL(block, nullptr, "mmap failed, %d", errno); in Allocate()
62 blockSet_.insert(block); in Allocate()
63 PROFILER_LOG_INFO(LOG_CORE, "PagedMemPool::Allocate %zuB block done!", blockSize_); in Allocate()
64 return block; in Allocate()
67 bool PagedMemPool::Recycle(void* block) in Recycle() argument
69 CHECK_TRUE(Valid(block), fals in Recycle()
80 Free(void* block) Free() argument
86 Valid(void* block) Valid() argument
[all...]
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
H A Dpaged_mem_pool_test.cpp57 void* block = memPool->Allocate(); in HWTEST_F() local
58 EXPECT_NE(block, nullptr); in HWTEST_F()
62 EXPECT_TRUE(memPool->Recycle(block)); in HWTEST_F()
78 void* block = memPool->Allocate(); in HWTEST_F() local
79 EXPECT_NE(block, nullptr); in HWTEST_F()
83 EXPECT_TRUE(memPool->Recycle(block)); in HWTEST_F()
85 block = memPool->Allocate(); in HWTEST_F()
86 EXPECT_NE(block, nullptr); in HWTEST_F()
90 EXPECT_TRUE(memPool->Recycle(block)); in HWTEST_F()
106 void* block in HWTEST_F() local
[all...]
/developtools/profiler/device/services/shared_memory/src/
H A Dshare_memory_allocator.cpp65 auto block = std::make_shared<ShareMemoryBlock>(name, size); in CreateMemoryBlockLocal() local
66 if (!block->Valid()) { in CreateMemoryBlockLocal()
70 memoryBlocks[name] = block; in CreateMemoryBlockLocal()
71 return block; in CreateMemoryBlockLocal()
80 auto block = std::make_shared<ShareMemoryBlock>(name, size, fd); in CreateMemoryBlockRemote() local
81 if (!block->Valid()) { in CreateMemoryBlockRemote()
85 memoryBlocks[name] = block; in CreateMemoryBlockRemote()
86 return block; in CreateMemoryBlockRemote()
H A Dshare_memory_block.cpp85 smbCtx_.block = this; in CreateBlockWithFd()
88 return smbCtx->block->GetMemory(size, memory, offset); in CreateBlockWithFd()
92 return smbCtx->block->Seek(offset); in CreateBlockWithFd()
/developtools/profiler/device/plugins/ftrace_plugin/include/
H A Dpaged_mem_pool.h30 bool Recycle(void* block);
36 bool Free(void* block);
37 bool Valid(void* block);
/developtools/hapsigner/hapsigntool_cpp_test/unittest/codeSigning/datastructure/
H A Delf_sign_block_test.cpp50 ElfSignBlock block; in HWTEST_F() local
51 bool flag = elfSignBlock.FromByteArray(arr, block); in HWTEST_F()
73 ElfSignBlock block; in HWTEST_F() local
74 bool flag = elfSignBlock.FromByteArray(arr, block); in HWTEST_F()
/developtools/hapsigner/hapsigntool_cpp_test/unittest/codeSigning/sign/
H A Dverify_code_signature_test.cpp203 * @tc.desc: verify hap with invalid block header
424 * @tc.desc: parse elf sign block error
496 OptionalBlock block; in HWTEST_F() local
497 block.optionalType = HapUtils::HAP_PROPERTY_BLOCK_ID; in HWTEST_F()
500 block.optionalBlockValue = bf; in HWTEST_F()
501 optionalBlocks.push_back(block); in HWTEST_F()
521 OptionalBlock block; in HWTEST_F() local
522 block.optionalType = HapUtils::HAP_PROPERTY_BLOCK_ID; in HWTEST_F()
525 block.optionalBlockValue = bf; in HWTEST_F()
526 optionalBlocks.push_back(block); in HWTEST_F()
546 OptionalBlock block; HWTEST_F() local
[all...]
/developtools/profiler/device/plugins/ffrt_profiler/service/src/
H A Dffrt_profiler_socket_service.cpp85 void FfrtProfilerSocketService::SetConfig(int32_t shmSize, int32_t flushCount, bool block, int32_t clockType) in SetConfig() argument
89 config_.block = block; in SetConfig()
/developtools/profiler/device/plugins/network_profiler/service/src/
H A Dnetwork_profiler_socket_service.cpp85 void NetworkProfilerSocketService::SetConfig(int32_t shmSize, int32_t flushCount, bool block, int32_t clockType) in SetConfig() argument
89 config_.block = block; in SetConfig()
/developtools/hapsigner/hapsigntool_cpp_test/unittest/hapVerify/
H A Dhap_signer_block_utils_test.cpp50 char block[TEST_FILE_BLOCK_LENGTH] = { 0 }; in CreatTestZipFile() local
53 hapFile.write(block, sizeof(block)); in CreatTestZipFile()
54 /* input sign block */ in CreatTestZipFile()
63 hapFile.write(block, sizeof(block)); in CreatTestZipFile()
67 int64_t signBlockSize = (sizeof(HapSubSignBlockHead) + sizeof(block)) * in CreatTestZipFile()
78 hapFile.write(block, sizeof(block)); in CreatTestZipFile()
83 uint32_t centralDirLen = sizeof(block); in CreatTestZipFile()
[all...]
/developtools/hapsigner/hapsigntool_cpp/utils/src/
H A Dhap_signer_block_utils.cpp57 * hap signatures block, central directory and end of central directory.
58 * The function will find the data segment of hap signature block from hap file.
77 SIGNATURE_TOOLS_LOGE("find signing block failed"); in FindHapSignature()
86 * EoCD has an optional comment block. Most hap packages do not contain this block. in FindEocdInHap()
87 * For hap packages without comment block, EoCD is the last 22 bytes of hap file. in FindEocdInHap()
88 * Try as a hap without comment block first to avoid unnecessarily reading more data. in FindEocdInHap()
95 * If EoCD contain the comment block, we should find it from the offset of (fileLen - maxCommentSize - 22). in FindEocdInHap()
96 * The max size of comment block is 65535, because the comment length is an unsigned 16-bit number. in FindEocdInHap()
147 * n-bytes: ZIP Comment block dat
628 char block[TEST_FILE_BLOCK_LENGTH] = {0}; CreatTestZipFile() local
[all...]
/developtools/profiler/device/plugins/ffrt_profiler/client/src/
H A Dffrt_profiler_socker_client.cpp74 block_ = config->block; in ProtocolProc()
76 PROFILER_LOG_INFO(LOG_CORE, "ffrt profiler client: flushInterval: %d, block: %d, clock: %d", in ProtocolProc()
80 writer_ = std::make_shared<FfrtProfilerWriter>(smbName, config->shmSize, smbFd_, eventFd_, config->block); in ProtocolProc()
H A Dffrt_profiler_write.cpp30 bool block) in FfrtProfilerWriter()
31 : pluginName_(name), block_(block) in FfrtProfilerWriter()
26 FfrtProfilerWriter(std::string name, uint32_t size, int smbFd, int eventFd, bool block) FfrtProfilerWriter() argument
/developtools/profiler/device/plugins/network_profiler/client/src/
H A Dnetwork_profiler_write.cpp30 bool block) in NetworkProfilerWriter()
31 : pluginName_(name), block_(block) in NetworkProfilerWriter()
26 NetworkProfilerWriter(std::string name, uint32_t size, int smbFd, int eventFd, bool block) NetworkProfilerWriter() argument
H A Dnetwork_profiler_socker_client.cpp74 writer_ = std::make_shared<NetworkProfilerWriter>(smbName, config->shmSize, smbFd_, eventFd_, config->block); in ProtocolProc()
/developtools/profiler/device/services/shared_memory/include/
H A Dshare_memory_block.h70 ShareMemoryBlock* block = nullptr; member
111 .block = nullptr,
/developtools/profiler/device/base/include/
H A Dschedule_task_manager.h48 bool block = true);
/developtools/profiler/device/plugins/ffrt_profiler/service/include/
H A Dffrt_profiler_socket_service.h34 void SetConfig(int32_t shmSize, int32_t flushCount, bool block, int32_t clockType);
H A Dffrt_profiler_common.h35 bool block = 0; member
/developtools/profiler/device/plugins/network_profiler/service/include/
H A Dnetwork_profiler_common.h34 bool block = 0; member
H A Dnetwork_profiler_socket_service.h34 void SetConfig(int32_t shmSize, int32_t flushCount, bool block, int32_t clockType);
/developtools/profiler/device/base/src/
H A Dschedule_task_manager.cpp64 bool block) in ScheduleTask()
102 if (block) { in ScheduleTask()
63 ScheduleTask(const std::function<void(void)>& callback, const uint64_t interval, bool once, bool block) ScheduleTask() argument
/developtools/profiler/device/plugins/ffrt_profiler/client/include/
H A Dffrt_profiler_write.h35 bool block);
/developtools/profiler/device/plugins/network_profiler/client/include/
H A Dnetwork_profiler_write.h35 bool block);
/developtools/hapsigner/hapsigntool_cpp/hap/verify/src/
H A Dverify_hap.cpp243 for (const OptionalBlock& block : optionalBlocks) { in CheckCodeSign()
244 map.emplace(block.optionalType, block.optionalBlockValue); in CheckCodeSign()
289 SIGNATURE_TOOLS_LOGI("can not find codesign block."); in CheckCodeSign()
344 * int: block number in GetDigestAndAlgorithm()
346 * each digest block format: in GetDigestAndAlgorithm()

Completed in 10 milliseconds

12