TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/PeCoffGetEntryPointLib.h>
#include <Library/PerformanceLib.h>
#include <Library/PrintLib.h>
#include <Library/HiiLib.h>
#include <Library/PcdLib.h>
#include "Dp.h"
#include "Literals.h"
#include "DpInternal.h"
Go to the source code of this file.
Functions | |
UINTN | GetPerformanceMeasurementRecord (IN UINTN LogEntryKey, OUT CONST VOID **Handle, OUT CONST CHAR8 **Token, OUT CONST CHAR8 **Module, OUT UINT64 *StartTimeStamp, OUT UINT64 *EndTimeStamp, OUT UINT32 *Identifier) |
VOID | GatherStatistics (IN OUT PERF_CUM_DATA *CustomCumulativeData OPTIONAL) |
EFI_STATUS | DumpAllTrace (IN UINTN Limit, IN BOOLEAN ExcludeFlag) |
EFI_STATUS | DumpRawTrace (IN UINTN Limit, IN BOOLEAN ExcludeFlag) |
VOID | ProcessPhases (VOID) |
EFI_STATUS | ProcessHandles (IN BOOLEAN ExcludeFlag) |
EFI_STATUS | ProcessPeims (VOID) |
EFI_STATUS | ProcessGlobal (VOID) |
VOID | ProcessCumulative (IN PERF_CUM_DATA *CustomCumulativeData OPTIONAL) |
Trace reporting for the Dp utility.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DpTrace.c.
EFI_STATUS DumpAllTrace | ( | IN UINTN | Limit, |
IN BOOLEAN | ExcludeFlag | ||
) |
Gather and print ALL Trace Records.
Displays all "interesting" Trace measurements in order.
The number of records displayed is controlled by:
[in] | Limit | The number of records to print. Zero is ALL. |
[in] | ExcludeFlag | TRUE to exclude individual Cumulative items from display. |
EFI_SUCCESS | The operation was successful. |
EFI_ABORTED | The user aborts the operation. |
EFI_STATUS DumpRawTrace | ( | IN UINTN | Limit, |
IN BOOLEAN | ExcludeFlag | ||
) |
Gather and print Raw Trace Records.
All Trace measurements with a duration greater than or equal to mInterestThreshold are printed without interpretation.
The number of records displayed is controlled by:
[in] | Limit | The number of records to print. Zero is ALL. |
[in] | ExcludeFlag | TRUE to exclude individual Cumulative items from display. |
EFI_SUCCESS | The operation was successful. |
EFI_ABORTED | The user aborts the operation. |
VOID GatherStatistics | ( | IN OUT PERF_CUM_DATA *CustomCumulativeData | OPTIONAL | ) |
Collect verbose statistics about the logged performance measurements.
General Summary information for all Trace measurements is gathered and stored within the SummaryData structure. This information is both used internally by subsequent reporting functions, and displayed at the end of verbose reports.
[in,out] | CustomCumulativeData | A pointer to the custom cumulative data. |
UINTN GetPerformanceMeasurementRecord | ( | IN UINTN | LogEntryKey, |
OUT CONST VOID ** | Handle, | ||
OUT CONST CHAR8 ** | Token, | ||
OUT CONST CHAR8 ** | Module, | ||
OUT UINT64 * | StartTimeStamp, | ||
OUT UINT64 * | EndTimeStamp, | ||
OUT UINT32 * | Identifier | ||
) |
Attempts to retrieve a performance measurement log entry from the performance measurement log.
LogEntryKey | On entry, the key of the performance measurement log entry to retrieve. 0, then the first performance measurement log entry is retrieved. On exit, the key of the next performance log entry. |
Handle | Pointer to environment specific context used to identify the component being measured. |
Token | Pointer to a Null-terminated ASCII string that identifies the component being measured. |
Module | Pointer to a Null-terminated ASCII string that identifies the module being measured. |
StartTimeStamp | Pointer to the 64-bit time stamp that was recorded when the measurement was started. |
EndTimeStamp | Pointer to the 64-bit time stamp that was recorded when the measurement was ended. |
Identifier | Pointer to the 32-bit identifier that was recorded when the measurement was ended. |
VOID ProcessCumulative | ( | IN PERF_CUM_DATA *CustomCumulativeData | OPTIONAL | ) |
Gather and print cumulative data.
Traverse the measurement records and:
For each record with a Token listed in the CumData array:
[in] | CustomCumulativeData | A pointer to the custom cumulative data. |
EFI_STATUS ProcessGlobal | ( | VOID | ) |
Gather and print global data.
Strips out incomplete or "Execution Phase" records Only prints records where Handle is NULL Increment TIndex for every record, even skipped ones, so that we have an indication of every measurement record taken.
EFI_SUCCESS | The operation was successful. |
EFI_ABORTED | The user aborts the operation. |
EFI_STATUS ProcessHandles | ( | IN BOOLEAN | ExcludeFlag | ) |
Gather and print Handle data.
[in] | ExcludeFlag | TRUE to exclude individual Cumulative items from display. |
EFI_SUCCESS | The operation was successful. |
EFI_ABORTED | The user aborts the operation. |
EFI_STATUS ProcessPeims | ( | VOID | ) |