45 if (mPerformanceMeasurement !=
NULL) {
49 Status =
gBS->LocateProtocol (&gEdkiiPerformanceMeasurementProtocolGuid,
NULL, (VOID **)&PerformanceMeasurement);
50 if (!EFI_ERROR (Status)) {
51 ASSERT (PerformanceMeasurement !=
NULL);
55 mPerformanceMeasurement = PerformanceMeasurement;
89 IN CONST CHAR8 *Module OPTIONAL,
98 if (EFI_ERROR (Status)) {
104 }
else if (Module !=
NULL) {
110 if (mPerformanceMeasurement !=
NULL) {
111 Status = mPerformanceMeasurement->CreatePerformanceMeasurement (Handle,
NULL, String, TimeStamp, 0, Identifier, PerfStartEntry);
116 return (RETURN_STATUS)Status;
146 IN CONST VOID *Handle OPTIONAL,
147 IN CONST CHAR8 *Token OPTIONAL,
148 IN CONST CHAR8 *Module OPTIONAL,
157 if (EFI_ERROR (Status)) {
163 }
else if (Module !=
NULL) {
169 if (mPerformanceMeasurement !=
NULL) {
170 Status = mPerformanceMeasurement->CreatePerformanceMeasurement (Handle,
NULL, String, TimeStamp, 0, Identifier, PerfEndEntry);
175 return (RETURN_STATUS)Status;
226 OUT UINT64 *StartTimeStamp,
227 OUT UINT64 *EndTimeStamp,
228 OUT UINT32 *Identifier
257 IN CONST VOID *Handle OPTIONAL,
258 IN CONST CHAR8 *Token OPTIONAL,
259 IN CONST CHAR8 *Module OPTIONAL,
291 IN CONST VOID *Handle OPTIONAL,
292 IN CONST CHAR8 *Token OPTIONAL,
293 IN CONST CHAR8 *Module OPTIONAL,
346 OUT UINT64 *StartTimeStamp,
347 OUT UINT64 *EndTimeStamp
392 IN CONST VOID *CallerIdentifier,
394 IN CONST CHAR8 *String OPTIONAL,
395 IN UINT64 Address OPTIONAL,
402 if (EFI_ERROR (Status)) {
406 if (mPerformanceMeasurement !=
NULL) {
407 Status = mPerformanceMeasurement->CreatePerformanceMeasurement (CallerIdentifier, Guid, String, 0, Address, Identifier, PerfEntry);
412 return (RETURN_STATUS)Status;
#define RETURN_OUT_OF_RESOURCES
#define PcdGet8(TokenName)