2 NULL instance of SmiHandlerProfile Library.
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include <Library/SmiHandlerProfileLib.h>
19 This function is called by SmmChildDispatcher module to report
20 a new SMI handler is registered, to SmmCore.
22 @param HandlerGuid The GUID to identify the type of the handler.
23 For the SmmChildDispatch protocol, the HandlerGuid
24 must be the GUID of SmmChildDispatch protocol.
25 @param Handler The SMI handler.
26 @param CallerAddress The address of the module who registers the SMI handler.
27 @param Context The context of the SMI handler.
28 For the SmmChildDispatch protocol, the Context
29 must match the one defined for SmmChildDispatch protocol.
30 @param ContextSize The size of the context in bytes.
31 For the SmmChildDispatch protocol, the Context
32 must match the one defined for SmmChildDispatch protocol.
34 @retval EFI_SUCCESS The information is recorded.
35 @retval EFI_UNSUPPORTED The feature is unsupported.
36 @retval EFI_OUT_OF_RESOURCES There is no enough resource to record the information.
40 SmiHandlerProfileRegisterHandler (
41 IN EFI_GUID
*HandlerGuid
,
42 IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler
,
43 IN PHYSICAL_ADDRESS CallerAddress
,
44 IN VOID
*Context
, OPTIONAL
45 IN UINTN ContextSize OPTIONAL
48 return EFI_UNSUPPORTED
;
52 This function is called by SmmChildDispatcher module to report
53 an existing SMI handler is unregistered, to SmmCore.
55 @param HandlerGuid The GUID to identify the type of the handler.
56 For the SmmChildDispatch protocol, the HandlerGuid
57 must be the GUID of SmmChildDispatch protocol.
58 @param Handler The SMI handler.
59 @param Context The context of the SMI handler.
60 If it is NOT NULL, it will be used to check what is registered.
61 @param ContextSize The size of the context in bytes.
62 If Context is NOT NULL, it will be used to check what is registered.
64 @retval EFI_SUCCESS The original record is removed.
65 @retval EFI_UNSUPPORTED The feature is unsupported.
66 @retval EFI_NOT_FOUND There is no record for the HandlerGuid and handler.
70 SmiHandlerProfileUnregisterHandler (
71 IN EFI_GUID
*HandlerGuid
,
72 IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler
,
73 IN VOID
*Context
, OPTIONAL
74 IN UINTN ContextSize OPTIONAL
77 return EFI_UNSUPPORTED
;