Lines Matching refs:hookCtx
454 void HookManager::FlushRawStackArray(const std::shared_ptr<HookManagerCtx>& hookCtx,
457 if (hookCtx == nullptr || rawStack == nullptr) {
460 hookCtx->rawDataArray[hookCtx->rawStackCount] = rawStack;
461 ++hookCtx->rawStackCount;
462 if (hookCtx->rawStackCount == CACHE_ARRAY_SIZE) {
463 hookCtx->FlushStackArray();
467 void HookManager::ReadShareMemory(const std::shared_ptr<HookManagerCtx>& hookCtx)
469 CHECK_NOTNULL(hookCtx->shareMemoryBlock, NO_RETVAL, "smb is null!");
470 hookCtx->eventNotifier->Take();
473 auto rawStack = hookCtx->stackData->GetRawStack();
474 bool ret = hookCtx->shareMemoryBlock->TakeData([&](const int8_t data[], uint32_t size) -> bool {
510 rawStack->jsStackData = hookCtx->stackPreprocess->GetJsRawStack(rawStack->stackConext->jsChainId);
527 FlushRawStackArray(hookCtx, rawStack);
532 hookCtx->stackPreprocess->SaveMemTag(rawStack->stackConext->tagId, tagName);
535 hookCtx->stackPreprocess->SaveJsRawStack(rawStack->stackConext->jsChainId,
539 hookCtx->FlushStackArray();
540 if (!hookCtx->stackData->PutRawStack(rawStack, hookCtx->isRecordAccurately)) {
543 if (!hookCtx->stackData->PutRawStack(nullptr, false)) {
550 FlushRawStackArray(hookCtx, rawStack);