diff options
author | Liming Gao <liming.gao@intel.com> | 2018-06-27 21:13:38 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-06-28 11:19:51 +0800 |
commit | ba0014b9f8ae1a593f03e744f26008214c2b06a8 (patch) | |
tree | d40c0369fe53be8bd4a8c5595b773ec1bf3cf884 /ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c | |
parent | 24bfed691d9b581830933623204b56a704d1abd2 (diff) | |
download | edk2-ba0014b9f8ae1a593f03e744f26008214c2b06a8.zip edk2-ba0014b9f8ae1a593f03e744f26008214c2b06a8.tar.gz edk2-ba0014b9f8ae1a593f03e744f26008214c2b06a8.tar.bz2 |
ShellPkg: Clean up source files
1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c')
-rw-r--r-- | ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c b/ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c index 5c6ab20..2531186 100644 --- a/ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c +++ b/ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c @@ -39,24 +39,24 @@ #include "Literals.h"
#include "DpInternal.h"
-/**
+/**
Calculate an event's duration in timer ticks.
-
+
Given the count direction and the event's start and end timer values,
calculate the duration of the event in timer ticks. Information for
the current measurement is pointed to by the parameter.
-
+
If the measurement's start time is 1, it indicates that the developer
is indicating that the measurement began at the release of reset.
The start time is adjusted to the timer's starting count before performing
the elapsed time calculation.
-
+
The calculated duration, in ticks, is the absolute difference between
the measurement's ending and starting counts.
-
+
@param Measurement Pointer to a MEASUREMENT_RECORD structure containing
data for the current measurement.
-
+
@return The 64-bit duration of the event.
**/
UINT64
@@ -81,14 +81,14 @@ GetDuration ( return Duration;
}
-/**
+/**
Determine whether the Measurement record is for an EFI Phase.
-
+
The Token and Module members of the measurement record are checked.
Module must be empty and Token must be one of SEC, PEI, DXE, BDS, or SHELL.
-
+
@param[in] Measurement A pointer to the Measurement record to test.
-
+
@retval TRUE The measurement record is for an EFI Phase.
@retval FALSE The measurement record is NOT for an EFI Phase.
**/
@@ -139,17 +139,17 @@ IsCorePerf( return RetVal;
}
-/**
+/**
Get the file name portion of the Pdb File Name.
-
+
The portion of the Pdb File Name between the last backslash and
either a following period or the end of the string is converted
to Unicode and copied into UnicodeBuffer. The name is truncated,
if necessary, to ensure that UnicodeBuffer is not overrun.
-
+
@param[in] PdbFileName Pdb file name.
@param[out] UnicodeBuffer The resultant Unicode File Name.
-
+
**/
VOID
DpGetShortPdbFileName (
@@ -192,7 +192,7 @@ DpGetShortPdbFileName ( }
}
-/**
+/**
Get a human readable name for an image handle.
The following methods will be tried orderly:
1. Image PDB
@@ -377,17 +377,17 @@ DpGetNameFromHandle ( FreePool (StringPtr);
}
-/**
+/**
Calculate the Duration in microseconds.
-
+
Duration is multiplied by 1000, instead of Frequency being divided by 1000 or
multiplying the result by 1000, in order to maintain precision. Since Duration is
a 64-bit value, multiplying it by 1000 is unlikely to produce an overflow.
-
+
The time is calculated as (Duration * 1000) / Timer_Frequency.
-
+
@param[in] Duration The event duration in timer ticks.
-
+
@return A 64-bit value which is the Elapsed time in microseconds.
**/
UINT64
@@ -398,16 +398,16 @@ DurationInMicroSeconds ( return DivU64x32 (Duration, 1000);
}
-/**
+/**
Get index of Measurement Record's match in the CumData array.
-
+
If the Measurement's Token value matches a Token in one of the CumData
records, the index of the matching record is returned. The returned
index is a signed value so that negative values can indicate that
the Measurement didn't match any entry in the CumData array.
-
+
@param[in] Measurement A pointer to a Measurement Record to match against the CumData array.
-
+
@retval <0 Token is not in the CumData array.
@retval >=0 Return value is the index into CumData where Token is found.
**/
|