]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceStandaloneMm.c
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / FirmwarePerformanceDataTableSmm / FirmwarePerformanceStandaloneMm.c
1 /** @file
2 This module collects performance data for MM driver boot records and S3 Suspend Performance Record.
3
4 This module registers report status code listener to collect performance data
5 for MM driver boot records and S3 Suspend Performance Record.
6
7 Caution: This module requires additional review when modified.
8 This driver will have external input - communicate buffer in MM mode.
9 This external input must be validated carefully to avoid security issue like
10 buffer overflow, integer overflow.
11
12 FpdtSmiHandler() will receive untrusted input and do basic validation.
13
14 Copyright (c) 2011 - 2021, Intel Corporation. All rights reserved.<BR>
15 Copyright (c), Microsoft Corporation.
16 SPDX-License-Identifier: BSD-2-Clause-Patent
17
18 **/
19
20 #include <PiMm.h>
21
22 #include "FirmwarePerformanceCommon.h"
23
24 /**
25 The module Entry Point of the Firmware Performance Data Table MM driver.
26
27 @param[in] ImageHandle The firmware allocated handle for the EFI image.
28 @param[in] SystemTable A pointer to the EFI MM System Table.
29
30 @retval EFI_SUCCESS The entry point is executed successfully.
31 @retval Other Some error occurs when executing this entry point.
32
33 **/
34 EFI_STATUS
35 EFIAPI
36 FirmwarePerformanceStandaloneMmEntryPoint (
37 IN EFI_HANDLE ImageHandle,
38 IN EFI_MM_SYSTEM_TABLE *SystemTable
39 )
40 {
41 return FirmwarePerformanceCommonEntryPoint ();
42 }