TianoCore EDK2 master
Loading...
Searching...
No Matches
Dp.h File Reference

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
 

Detailed Description

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.

Macro Definition Documentation

◆ DEFAULT_DISPLAYCOUNT

#define DEFAULT_DISPLAYCOUNT   50

Definition at line 50 of file Dp.h.

◆ DEFAULT_THRESHOLD

#define DEFAULT_THRESHOLD   1000

One millisecond.

Definition at line 49 of file Dp.h.

◆ DP_DEBUG

#define DP_DEBUG   0

The value assigned to DP_DEBUG controls which debug output is generated. Set it to ZERO to disable.

Definition at line 47 of file Dp.h.

◆ DP_MAJOR_VERSION

#define DP_MAJOR_VERSION   2

Definition at line 40 of file Dp.h.

◆ DP_MINOR_VERSION

#define DP_MINOR_VERSION   5

Definition at line 41 of file Dp.h.

◆ MAXIMUM_DISPLAYCOUNT

#define MAXIMUM_DISPLAYCOUNT   999999

Arbitrary maximum reasonable number.

Definition at line 51 of file Dp.h.

◆ PERF_INIT_CUM_DATA

#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:

Definition at line 75 of file Dp.h.

◆ PERF_MAXDUR

#define PERF_MAXDUR   0xFFFFFFFFFFFFFFFFULL

Definition at line 53 of file Dp.h.

◆ WITHIN_LIMIT

#define WITHIN_LIMIT (   C,
 
)    ( ((L) == 0) || ((C) < (L)) )

Determine whether 0 <= C < L. If L == 0, return true regardless of C.

Definition at line 56 of file Dp.h.

Function Documentation

◆ InitializeHiiPackage()

EFI_HII_HANDLE InitializeHiiPackage ( EFI_HANDLE  ImageHandle)

Retrieve HII package list from ImageHandle and publish to HII database.

Parameters
ImageHandleThe image handle of the process.
Returns
HII handle.

Definition at line 440 of file LinuxInitrdDynamicShellCommand.c.

◆ RunDp()

SHELL_STATUS RunDp ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Dump performance data.

Parameters
[in]ImageHandleThe image handle.
[in]SystemTableThe system table.
Return values
SHELL_SUCCESSCommand completed successfully.
SHELL_INVALID_PARAMETERCommand usage error.
SHELL_ABORTEDThe user aborts the operation.
valueUnknown error.

Definition at line 670 of file Dp.c.

Variable Documentation

◆ mDpHiiHandle

EFI_HII_HANDLE mDpHiiHandle
extern

Definition at line 39 of file Dp.c.