TianoCore EDK2 master
|
#include <Uefi.h>
#include <Guid/Performance.h>
#include <Guid/ExtendedFirmwarePerformance.h>
#include <Guid/FirmwarePerformance.h>
#include <Protocol/HiiPackageList.h>
#include <Protocol/DevicePath.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/UnicodeCollation.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/ShellLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/PcdLib.h>
#include <Library/SortLib.h>
#include <Library/HiiLib.h>
#include <Library/FileHandleLib.h>
#include <Library/UefiHiiServicesLib.h>
#include <Library/PerformanceLib.h>
Go to the source code of this file.
Data Structures | |
struct | TIMER_INFO |
Structure for storing Timer specific information. More... | |
struct | PERF_CUM_DATA |
struct | PERF_SUMMARY_DATA |
struct | MEASUREMENT_RECORD |
struct | PROFILE_RECORD |
Macros | |
#define | DP_MAJOR_VERSION 2 |
#define | DP_MINOR_VERSION 5 |
#define | DP_DEBUG 0 |
#define | DEFAULT_THRESHOLD 1000 |
One millisecond. | |
#define | DEFAULT_DISPLAYCOUNT 50 |
#define | MAXIMUM_DISPLAYCOUNT 999999 |
Arbitrary maximum reasonable number. | |
#define | PERF_MAXDUR 0xFFFFFFFFFFFFFFFFULL |
#define | WITHIN_LIMIT(C, L) ( ((L) == 0) || ((C) < (L)) ) |
Determine whether 0 <= C < L. If L == 0, return true regardless of C. | |
#define | PERF_INIT_CUM_DATA(t) { 0ULL, PERF_MAXDUR, 0ULL, (t), 0U } |
Functions | |
SHELL_STATUS | RunDp (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_HII_HANDLE | InitializeHiiPackage (EFI_HANDLE ImageHandle) |
Variables | |
EFI_HII_HANDLE | mDpHiiHandle |
Header file for 'dp' command functions.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Dp.h.
#define DP_DEBUG 0 |
#define MAXIMUM_DISPLAYCOUNT 999999 |
#define PERF_INIT_CUM_DATA | ( | t | ) | { 0ULL, PERF_MAXDUR, 0ULL, (t), 0U } |
Initialize one PERF_CUM_DATA structure instance for token t.
This parameterized macro takes a single argument, t, which is expected to resolve to a pointer to an ASCII string literal. This parameter may take any one of the following forms:
#define WITHIN_LIMIT | ( | C, | |
L | |||
) | ( ((L) == 0) || ((C) < (L)) ) |
EFI_HII_HANDLE InitializeHiiPackage | ( | EFI_HANDLE | ImageHandle | ) |
Retrieve HII package list from ImageHandle and publish to HII database.
ImageHandle | The image handle of the process. |
Definition at line 440 of file LinuxInitrdDynamicShellCommand.c.
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. |
|
extern |