Skip to content

Commit 1c51a26

Browse files
makubackimergify[bot]
authored andcommitted
MdeModulePkg: Add Standalone MM perf library support
Adds a new library instance to support logging performance data in Standalone MM. - Add StandaloneMmPerformanceLib instance - Move common MM logic to a new file `SmmPerformanceLibInternal.c` - Since the library largely defers most logic to the performance measurement protocol a large degree of code can be shared between Standalone MM and Traditional MM. Signed-off-by: Michael Kubacki <[email protected]>
1 parent 11b44c5 commit 1c51a26

8 files changed

+725
-488
lines changed

MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.c

+12-487
Large diffs are not rendered by default.

MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# it does not log any performance information.
88
#
99
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
10+
# Copyright (c) Microsoft Corporation.
1011
# SPDX-License-Identifier: BSD-2-Clause-Patent
1112
#
1213
##
@@ -30,6 +31,8 @@
3031
#
3132

3233
[Sources]
34+
SmmPerformanceLibInternal.h
35+
SmmPerformanceLibInternal.c
3336
SmmPerformanceLib.c
3437

3538

@@ -40,7 +43,7 @@
4043

4144
[LibraryClasses]
4245
PcdLib
43-
SmmServicesTableLib
46+
MmServicesTableLib
4447
DebugLib
4548
BaseMemoryLib
4649

0 commit comments

Comments
 (0)