Lines Matching refs:pszSymbol

66 static DECLCALLBACK(int) pdmR3GetImportRC(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser);
327 * @param pszSymbol Symbol name, NULL if uSymbol should be used.
328 * @param uSymbol Symbol ordinal, ~0 if pszSymbol should be used.
332 static DECLCALLBACK(int) pdmR3GetImportRC(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol,
351 if (!strcmp(pszSymbol, "g_VM"))
353 else if (!strcmp(pszSymbol, "g_CPUM"))
355 else if ( !strncmp(pszSymbol, "g_TRPM", 6)
356 || !strncmp(pszSymbol, "g_trpm", 6)
357 || !strncmp(pszSymbol, "TRPM", 4))
360 rc = TRPMR3GetImportRC(pVM, pszSymbol, &RCPtr);
364 else if ( !strncmp(pszSymbol, "VMM", 3)
365 || !strcmp(pszSymbol, "g_Logger")
366 || !strcmp(pszSymbol, "g_RelLogger"))
369 rc = VMMR3GetImportRC(pVM, pszSymbol, &RCPtr);
373 else if ( !strncmp(pszSymbol, "TM", 2)
374 || !strcmp(pszSymbol, "g_pSUPGlobalInfoPage"))
377 rc = TMR3GetImportRC(pVM, pszSymbol, &RCPtr);
383 AssertMsg(!pszModule, ("Unknown builtin symbol '%s' for module '%s'!\n", pszSymbol, pModule->szName)); NOREF(pModule);
389 LogRel(("PDMLdr: Couldn't find symbol '%s' in module '%s'!\n", pszSymbol, pszModule));
408 int rc = RTLdrGetSymbolEx(pCur->hLdrMod, pCur->pvBits, pCur->ImageBase, UINT32_MAX, pszSymbol, pValue);
414 pszSymbol, (RTRCPTR)*pValue));
421 AssertLogRelMsgFailed(("PDMLdr: Couldn't find symbol '%s' in module '%s'!\n", pszSymbol, pszModule));
431 AssertLogRelMsgFailed(("Couldn't find module '%s' for resolving symbol '%s'!\n", pszModule, pszSymbol));
717 * @param pszSymbol Symbol name. If it's value is less than 64k it's treated like a
721 VMMR3_INT_DECL(int) PDMR3LdrGetSymbolR3(PVM pVM, const char *pszModule, const char *pszSymbol, void **ppvValue)
742 int rc = RTLdrGetSymbolEx(pModule->hLdrMod, pModule->pvBits, pModule->ImageBase, UINT32_MAX, pszSymbol, &Value);
751 if ((uintptr_t)pszSymbol < 0x10000)
752 AssertMsg(rc, ("Couldn't symbol '%u' in module '%s'\n", (unsigned)(uintptr_t)pszSymbol, pszModule));
754 AssertMsg(rc, ("Couldn't symbol '%s' in module '%s'\n", pszSymbol, pszModule));
771 * @param pszSymbol Symbol name. If it's value is less than 64k it's treated like a
775 VMMR3DECL(int) PDMR3LdrGetSymbolR0(PVM pVM, const char *pszModule, const char *pszSymbol, PRTR0PTR ppvValue)
803 int rc = SUPR3GetSymbolR0((void *)(uintptr_t)pModule->ImageBase, pszSymbol, (void **)ppvValue);
807 AssertMsgRC(rc, ("Couldn't find symbol '%s' in module '%s'\n", pszSymbol, pszModule));
808 LogRel(("PDMGetSymbol: Couldn't find symbol '%s' in module '%s'\n", pszSymbol, pszModule));
829 * @param pszSymbol Symbol name. If it's value is less than 64k it's treated like a
833 VMMR3DECL(int) PDMR3LdrGetSymbolR0Lazy(PVM pVM, const char *pszModule, const char *pszSearchPath, const char *pszSymbol,
867 return PDMR3LdrGetSymbolR0(pVM, pszModule, pszSymbol, ppvValue);
878 * @param pszSymbol Symbol name. If it's value is less than 64k it's treated like a
882 VMMR3DECL(int) PDMR3LdrGetSymbolRC(PVM pVM, const char *pszModule, const char *pszSymbol, PRTRCPTR pRCPtrValue)
912 int rc = RTLdrGetSymbolEx(pModule->hLdrMod, pModule->pvBits, pModule->ImageBase, UINT32_MAX, pszSymbol, &Value);
921 if ((uintptr_t)pszSymbol < 0x10000)
922 AssertMsg(rc, ("Couldn't symbol '%u' in module '%s'\n", (unsigned)(uintptr_t)pszSymbol, pszModule));
924 AssertMsg(rc, ("Couldn't symbol '%s' in module '%s'\n", pszSymbol, pszModule));
945 * @param pszSymbol Symbol name. If it's value is less than 64k it's treated like a
949 VMMR3DECL(int) PDMR3LdrGetSymbolRCLazy(PVM pVM, const char *pszModule, const char *pszSearchPath, const char *pszSymbol,
987 return PDMR3LdrGetSymbolRC(pVM, pszModule, pszSymbol, pRCPtrValue);
1200 * @param pszSymbol Symbol name. NULL if ordinal only.
1205 static DECLCALLBACK(int) pdmR3QueryModFromEIPEnumSymbols(RTLDRMOD hLdrMod, const char *pszSymbol, unsigned uSymbol,
1220 if (pszSymbol)
1221 strncat(pArgs->pszNearSym1, pszSymbol, pArgs->cchNearSym1);
1239 if (pszSymbol)
1240 strncat(pArgs->pszNearSym2, pszSymbol, pArgs->cchNearSym2);