Skip to content

Commit

Permalink
Refactor dtb variables in plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bischof committed Aug 24, 2023
1 parent 528334d commit 5d41f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/apitracing/src/lib/FunctionHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ namespace ApiTracing
void FunctionHook::hookFunction(VmiCore::addr_t moduleBaseAddress,
std::shared_ptr<const VmiCore::ActiveProcessInformation> processInformation)
{
auto processDtb = moduleBaseAddress >= 0xFFFF800000000000 ? processInformation->kernelProcessDTB
: processInformation->userProcessDTB;
auto processDtb = moduleBaseAddress >= 0xFFFF800000000000 ? processInformation->processKernelDTB
: processInformation->processUserDTB;

auto functionEntrypoint =
introspectionAPI->translateUserlandSymbolToVA(moduleBaseAddress, processDtb, functionName);
Expand Down

0 comments on commit 5d41f24

Please sign in to comment.