MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / UserPrintStackTrace

Function UserPrintStackTrace

Kernel/include/arch/x86_64/strace.h:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17inline static void UserPrintStackTrace(uint64_t _rbp, address_space_t* addressSpace){
18 uint64_t* rbp = (uint64_t*)_rbp;
19 uint64_t rip = 0;
20 while(rbp && Memory::CheckUsermodePointer((uintptr_t)rbp, 16, addressSpace)){
21 rip = *(rbp + 1);
22 Log::Info(rip);
23 rbp = (uint64_t*)(*rbp);
24 }
25}

Callers 3

isr_handlerFunction · 0.85
SysKernelObjectDestroyFunction · 0.85
PageFaultHandlerFunction · 0.85

Calls 2

CheckUsermodePointerFunction · 0.85
InfoFunction · 0.85

Tested by

no test coverage detected