Changeset 77775 in vbox
- Timestamp:
- Mar 19, 2019 1:00:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGPlugInLinux.cpp
r76553 r77775 687 687 if (RT_SUCCESS(rc)) 688 688 continue; 689 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Reading '%s' at %RGv: %Rrc\n", aSymbols[i].pszSymbol, Addr.FlatPtr, rc));689 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Reading '%s' at %RGv: %Rrc\n", aSymbols[i].pszSymbol, Addr.FlatPtr, rc)); 690 690 } 691 691 else 692 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Error looking up '%s': %Rrc\n", aSymbols[i].pszSymbol, rc));692 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Error looking up '%s': %Rrc\n", aSymbols[i].pszSymbol, rc)); 693 693 rc = VERR_NOT_FOUND; 694 694 break; … … 713 713 if (pThis->f64Bit ? !LNX64_VALID_ADDRESS(GCPtrLogBuf) : !LNX32_VALID_ADDRESS(GCPtrLogBuf)) 714 714 { 715 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_buf' value %RGv is not valid.\n", GCPtrLogBuf));715 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_buf' value %RGv is not valid.\n", GCPtrLogBuf)); 716 716 return VERR_NOT_FOUND; 717 717 } … … 720 720 || cbLogBuf > 16*_1M) 721 721 { 722 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_buf_len' value %#x is not valid.\n", cbLogBuf));722 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_buf_len' value %#x is not valid.\n", cbLogBuf)); 723 723 return VERR_NOT_FOUND; 724 724 } … … 730 730 if (!pbLogBuf) 731 731 { 732 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Failed to allocate %#x bytes for log buffer\n", cbLogBuf));732 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Failed to allocate %#x bytes for log buffer\n", cbLogBuf)); 733 733 return VERR_NO_MEMORY; 734 734 } … … 737 737 if (RT_FAILURE(rc)) 738 738 { 739 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Error reading %#x bytes of log buffer at %RGv: %Rrc\n",740 cbLogBuf, Addr.FlatPtr, rc));739 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Error reading %#x bytes of log buffer at %RGv: %Rrc\n", 740 cbLogBuf, Addr.FlatPtr, rc)); 741 741 RTMemFree(pbLogBuf); 742 742 return VERR_NOT_FOUND; … … 805 805 if (RT_SUCCESS(rc)) 806 806 continue; 807 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Reading '%s' at %RGv: %Rrc\n", aSymbols[i].pszSymbol, Addr.FlatPtr, rc));807 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Reading '%s' at %RGv: %Rrc\n", aSymbols[i].pszSymbol, Addr.FlatPtr, rc)); 808 808 } 809 809 else 810 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Error looking up '%s': %Rrc\n", aSymbols[i].pszSymbol, rc));810 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Error looking up '%s': %Rrc\n", aSymbols[i].pszSymbol, rc)); 811 811 rc = VERR_NOT_FOUND; 812 812 break; … … 833 833 if (pThis->f64Bit ? !LNX64_VALID_ADDRESS(GCPtrLogBuf) : !LNX32_VALID_ADDRESS(GCPtrLogBuf)) 834 834 { 835 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_buf' value %RGv is not valid.\n", GCPtrLogBuf));835 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_buf' value %RGv is not valid.\n", GCPtrLogBuf)); 836 836 return VERR_NOT_FOUND; 837 837 } … … 840 840 || cbLogBuf > 16*_1M) 841 841 { 842 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_buf_len' value %#x is not valid.\n", cbLogBuf));842 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_buf_len' value %#x is not valid.\n", cbLogBuf)); 843 843 return VERR_NOT_FOUND; 844 844 } … … 847 847 || (idxFirst & (cbLogAlign - 1)) != 0) 848 848 { 849 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_first_idx' value %#x is not valid.\n", idxFirst));849 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_first_idx' value %#x is not valid.\n", idxFirst)); 850 850 return VERR_NOT_FOUND; 851 851 } … … 853 853 || (idxNext & (cbLogAlign - 1)) != 0) 854 854 { 855 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_next_idx' value %#x is not valid.\n", idxNext));855 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: 'log_next_idx' value %#x is not valid.\n", idxNext)); 856 856 return VERR_NOT_FOUND; 857 857 } … … 863 863 if (!pbLogBuf) 864 864 { 865 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Failed to allocate %#x bytes for log buffer\n", cbLogBuf));865 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Failed to allocate %#x bytes for log buffer\n", cbLogBuf)); 866 866 return VERR_NO_MEMORY; 867 867 } … … 870 870 if (RT_FAILURE(rc)) 871 871 { 872 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Error reading %#x bytes of log buffer at %RGv: %Rrc\n",873 cbLogBuf, Addr.FlatPtr, rc));872 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Error reading %#x bytes of log buffer at %RGv: %Rrc\n", 873 cbLogBuf, Addr.FlatPtr, rc)); 874 874 RTMemFree(pbLogBuf); 875 875 return VERR_NOT_FOUND; … … 901 901 || pHdr->cbTotal < (uint32_t)pHdr->cbText + (uint32_t)pHdr->cbDict + sizeof(*pHdr) )) 902 902 { 903 Log (("dbgDiggerLinuxIDmsg_QueryKernelLog: Invalid printk_log record at %#x: cbTotal=%#x cbText=%#x cbDict=%#x cbLogBuf=%#x cbLeft=%#x\n",904 offCur, pHdr->cbTotal, pHdr->cbText, pHdr->cbDict, cbLogBuf, cbLeft));903 LogRel(("dbgDiggerLinuxIDmsg_QueryKernelLog: Invalid printk_log record at %#x: cbTotal=%#x cbText=%#x cbDict=%#x cbLogBuf=%#x cbLeft=%#x\n", 904 offCur, pHdr->cbTotal, pHdr->cbText, pHdr->cbDict, cbLogBuf, cbLeft)); 905 905 rc = VERR_INVALID_STATE; 906 906 break; … … 1013 1013 RTDBGMOD hMod; 1014 1014 int rc = RTDbgAsModuleByName(hAs, "vmlinux", 0, &hMod); 1015 RTDbgAsRelease(hAs); 1015 1016 if (RT_FAILURE(rc)) 1016 1017 return VERR_NOT_FOUND; 1017 RTDbgAsRelease(hAs); 1018 1019 size_t cbActual; 1018 1020 1019 /* 1021 1020 * Check whether the kernel log buffer is a simple char buffer or the newer … … 1024 1023 * see: http://thread.gmane.org/gmane.linux.kernel/1284184 1025 1024 */ 1025 size_t cbActual; 1026 1026 if (dbgDiggerLinuxLogBufferIsAsciiBuffer(pData, pUVM)) 1027 1027 rc = dbgDiggerLinuxLogBufferQueryAscii(pData, pUVM, hMod, fFlags, cMessages, pszBuf, cbBuf, &cbActual);
Note:
See TracChangeset
for help on using the changeset viewer.