FreeBSD/sys/contrib/dev/acpica/components/debugger/dbstats.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDbListInfo
 *
 * PARAMETERS:  List            - Memory list/cache to be displayed
 *
 * RETURN:      None
 *
 * DESCRIPTION: Display information about the input memory list or cache.
 *
 ******************************************************************************/
AcpiDbListInfo
PARAMETERS:  List            - Memory list/cache to be displayed

None

Display information about the input memory list or cache.
AcpiDbListInfo PARAMETERS : List - Memory list / cache to be displayed None Display information about the input memory list or cache .
static void
AcpiDbListInfo (
    ACPI_MEMORY_LIST        *List)
{
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
    UINT32                  Outstanding;
#endif
    AcpiOsPrintf ("\n%s\n", List->ListName);
    if (List->MaxDepth > 0)
    {
        AcpiOsPrintf (
            "    Cache: [Depth    MaxD Avail  Size]                "
            "%8.2X %8.2X %8.2X %8.2X\n",
            List->CurrentDepth,
            List->MaxDepth,
            List->MaxDepth - List->CurrentDepth,
            (List->CurrentDepth * List->ObjectSize));
    }
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
    if (List->MaxDepth > 0)
    {
        AcpiOsPrintf (
            "    Cache: [Requests Hits Misses ObjSize]             "
            "%8.2X %8.2X %8.2X %8.2X\n",
            List->Requests,
            List->Hits,
            List->Requests - List->Hits,
            List->ObjectSize);
    }
    Outstanding = AcpiDbGetCacheInfo (List);
    if (List->ObjectSize)
    {
        AcpiOsPrintf (
            "    Mem:   [Alloc    Free Max    CurSize Outstanding] "
            "%8.2X %8.2X %8.2X %8.2X %8.2X\n",
            List->TotalAllocated,
            List->TotalFreed,
            List->MaxOccupied,
            Outstanding * List->ObjectSize,
            Outstanding);
    }
    else
    {
        AcpiOsPrintf (
            "    Mem:   [Alloc Free Max CurSize Outstanding Total] "
            "%8.2X %8.2X %8.2X %8.2X %8.2X %8.2X\n",
            List->TotalAllocated,
            List->TotalFreed,
            List->MaxOccupied,
            List->CurrentTotalSize,
            Outstanding,
            List->TotalSize);
    }
#endif
}
static void AcpiDbListInfo ( ACPI_MEMORY_LIST * List ) { #ifdef ACPI_DBG_TRACK_ALLOCATIONS UINT32 Outstanding ; #endif AcpiOsPrintf ( " \n \n " , List -> ListName ) ; if ( List -> MaxDepth > 0 ) { AcpiOsPrintf ( " " " \n " , List -> CurrentDepth , List -> MaxDepth , List -> MaxDepth - List -> CurrentDepth , ( List -> CurrentDepth * List -> ObjectSize ) ) ; } #ifdef ACPI_DBG_TRACK_ALLOCATIONS if ( List -> MaxDepth > 0 ) { AcpiOsPrintf ( " " " \n " , List -> Requests , List -> Hits , List -> Requests - List -> Hits , List -> ObjectSize ) ; } Outstanding = AcpiDbGetCacheInfo ( List ) ; if ( List -> ObjectSize ) { AcpiOsPrintf ( " " " \n " , List -> TotalAllocated , List -> TotalFreed , List -> MaxOccupied , Outstanding * List -> ObjectSize , Outstanding ) ; } else { AcpiOsPrintf ( " " " \n " , List -> TotalAllocated , List -> TotalFreed , List -> MaxOccupied , List -> CurrentTotalSize , Outstanding , List -> TotalSize ) ; } #endif }
FUNCTION:    AcpiDbListInfo
 PARAMETERS:  List            - Memory list/cache to be displayed
FUNCTION : AcpiDbListInfo PARAMETERS : List - Memory list / cache to be displayed
/* MaxDepth > 0 indicates a cache object */