TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | RSDT_TABLE |
struct | XSDT_TABLE |
struct | HANDLE_GUID_MAP |
Functions | |
VOID | DumpStatistics (void) |
EFI_STATUS | GetBootPerformanceTable () |
VOID | GetHandleFormModuleGuid (IN EFI_GUID *ModuleGuid, IN OUT EFI_HANDLE *Handle) |
EFI_STATUS | BuildCachedGuidHandleTable (VOID) |
VOID | GetMeasurementInfo (IN EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER *RecordHeader, IN BOOLEAN IsStart, IN OUT MEASUREMENT_RECORD *Measurement) |
VOID | SearchMeasurement (IN MEASUREMENT_RECORD *EndMeasureMent) |
EFI_STATUS | BuildMeasurementList () |
VOID | InitCumulativeData (VOID) |
VOID | InitSummaryData (VOID) |
SHELL_STATUS | RunDp (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_HII_HANDLE | InitializeHiiPackage (EFI_HANDLE ImageHandle) |
Variables | |
EFI_HII_HANDLE | mDpHiiHandle |
HANDLE_GUID_MAP * | mCacheHandleGuidTable |
UINTN | mCachePairCount = 0 |
CHAR16 | mGaugeString [DP_GAUGE_STRING_LENGTH+1] |
CHAR16 | mUnicodeToken [DXE_PERFORMANCE_STRING_SIZE] |
UINT64 | mInterestThreshold |
BOOLEAN | mShowId = FALSE |
UINT8 * | mBootPerformanceTable |
UINTN | mBootPerformanceTableSize |
BOOLEAN | mPeiPhase = FALSE |
BOOLEAN | mDxePhase = FALSE |
UINT64 | mResetEnd = 0 |
PERF_SUMMARY_DATA | SummaryData = { 0 } |
Create the SummaryData structure and init. to ZERO. | |
MEASUREMENT_RECORD * | mMeasurementList = NULL |
UINTN | mMeasurementNum = 0 |
PERF_CUM_DATA | CumData [] |
Items for which to gather cumulative statistics. | |
UINT32 const | NumCum = sizeof (CumData) / sizeof (PERF_CUM_DATA) |
Number of items for which we are gathering cumulative statistics. | |
STATIC CONST SHELL_PARAM_ITEM | ParamList [] |
Shell command for Displaying Performance Metrics.
The Dp command reads performance data and presents it in several different formats depending upon the needs of the user. Both Trace and Measured Profiling information is processed and presented.
Dp uses the "PerformanceLib" to read the measurement records. The "TimerLib" provides information about the timer, such as frequency, beginning, and ending counter values. Measurement records contain identifying information (Handle, Token, Module) and start and end time values. Dp uses this information to group records in different ways. It also uses timer information to calculate elapsed time for each measurement.
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 Dp.c.
EFI_STATUS BuildCachedGuidHandleTable | ( | VOID | ) |
EFI_STATUS BuildMeasurementList | ( | ) |
VOID DumpStatistics | ( | void | ) |
EFI_STATUS GetBootPerformanceTable | ( | ) |
VOID GetHandleFormModuleGuid | ( | IN EFI_GUID * | ModuleGuid, |
IN OUT EFI_HANDLE * | Handle | ||
) |
VOID GetMeasurementInfo | ( | IN EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER * | RecordHeader, |
IN BOOLEAN | IsStart, | ||
IN OUT MEASUREMENT_RECORD * | Measurement | ||
) |
VOID InitCumulativeData | ( | VOID | ) |
EFI_HII_HANDLE InitializeHiiPackage | ( | EFI_HANDLE | ImageHandle | ) |
SHELL_STATUS RunDp | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Dump performance data.
[in] | ImageHandle | The image handle. |
[in] | SystemTable | The system table. |
SHELL_SUCCESS | Command completed successfully. |
SHELL_INVALID_PARAMETER | Command usage error. |
SHELL_ABORTED | The user aborts the operation. |
value | Unknown error. |
VOID SearchMeasurement | ( | IN MEASUREMENT_RECORD * | EndMeasureMent | ) |
PERF_CUM_DATA CumData[] |
Items for which to gather cumulative statistics.
HANDLE_GUID_MAP* mCacheHandleGuidTable |
EFI_HII_HANDLE mDpHiiHandle |
CHAR16 mGaugeString[DP_GAUGE_STRING_LENGTH+1] |
MEASUREMENT_RECORD* mMeasurementList = NULL |
UINT32 const NumCum = sizeof (CumData) / sizeof (PERF_CUM_DATA) |
STATIC CONST SHELL_PARAM_ITEM ParamList[] |
PERF_SUMMARY_DATA SummaryData = { 0 } |