OpenCore
1.0.4
OpenCore Bootloader
|
Go to the source code of this file.
Data Structures | |
struct | APPLE_DEBUG_LOG_PROTOCOL_ |
Macros | |
#define | APPLE_DEBUG_LOG_PROTOCOL_GUID |
#define | APPLE_DEBUG_LOG_PROTOCOL_REVISION 0x10000 |
#define | APPLE_DEBUG_LOG_PROTOCOL_FILESIZE BASE_2MB |
#define | APPLE_DEBUG_LOG_PROTOCOL_FILENAME L"\\EFI\\APPLE\\LOG\\BOOT-%u.LOG" |
#define | APPLE_DEBUG_LOG_PROTOCOL_BOOTLOG L"\\BOOTLOG" |
#define | APPLE_DEBUG_LOG_PROTOCOL_BOOTLOG_OLD L"\\BOOTLOG.OLD" |
Typedefs | |
typedef struct APPLE_DEBUG_LOG_PROTOCOL_ | APPLE_DEBUG_LOG_PROTOCOL |
typedef EFI_STATUS(EFIAPI * | APPLE_DEBUG_LOG_PRINT) (IN CONST CHAR8 *Message) |
typedef EFI_STATUS(EFIAPI * | APPLE_DEBUG_LOG_EXTRACT_BUFFER) (IN OUT UINT32 *Position, IN OUT UINTN *BufferSize, OUT CHAR8 *Buffer OPTIONAL, OUT UINT32 *LostCharacters OPTIONAL) |
typedef EFI_STATUS(EFIAPI * | APPLE_DEBUG_LOG_WRITE_FILES) (VOID) |
typedef VOID(EFIAPI * | APPLE_DEBUG_LOG_SETUP_FILES) (VOID) |
Variables | |
EFI_GUID | gAppleDebugLogProtocolGuid |
Apple Debug Log protocol.
Copyright (C) 2020, vit9696. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file AppleDebugLog.h.
#define APPLE_DEBUG_LOG_PROTOCOL_BOOTLOG L"\\BOOTLOG" |
Legacy boot.efi logfile.
Definition at line 44 of file AppleDebugLog.h.
#define APPLE_DEBUG_LOG_PROTOCOL_BOOTLOG_OLD L"\\BOOTLOG.OLD" |
Legacy previous boot.efi logfile.
Definition at line 49 of file AppleDebugLog.h.
#define APPLE_DEBUG_LOG_PROTOCOL_FILENAME L"\\EFI\\APPLE\\LOG\\BOOT-%u.LOG" |
Logfile name on EFI system partition (indices 1~8).
Definition at line 39 of file AppleDebugLog.h.
#define APPLE_DEBUG_LOG_PROTOCOL_FILESIZE BASE_2MB |
Maximum logfile size.
Definition at line 34 of file AppleDebugLog.h.
#define APPLE_DEBUG_LOG_PROTOCOL_GUID |
Apple Debug Log protocol GUID. DDFA34FB-FE1F-48EA-B213-FB4A4CD57BE3
Definition at line 22 of file AppleDebugLog.h.
#define APPLE_DEBUG_LOG_PROTOCOL_REVISION 0x10000 |
Current supported revision.
Definition at line 29 of file AppleDebugLog.h.
typedef EFI_STATUS(EFIAPI * APPLE_DEBUG_LOG_EXTRACT_BUFFER) (IN OUT UINT32 *Position, IN OUT UINTN *BufferSize, OUT CHAR8 *Buffer OPTIONAL, OUT UINT32 *LostCharacters OPTIONAL) |
Extract characters from the log buffer.
[in,out] | Position | Starting position for extraction. |
[in,out] | BufferSize | Extraction buffer size. |
[out] | Buffer | Extraction buffer, optional. |
[out] | LostCharacters | Amount of characters that did not fit the buffer, optional. |
EFI_INVALID_PARAMETER | if Position or BufferSize are NULL. |
EFI_SUCCESS | on successful extraction. |
EFI_SUCCESS | on reported size in BufferSize if Buffer is NULL. |
EFI_END_OF_FILE | on empty buffer. |
Definition at line 88 of file AppleDebugLog.h.
typedef EFI_STATUS(EFIAPI * APPLE_DEBUG_LOG_PRINT) (IN CONST CHAR8 *Message) |
Send debug message to the protocol.
[in] | Message | ASCII message to log. |
EFI_SUCCESS | on success. |
Definition at line 64 of file AppleDebugLog.h.
typedef struct APPLE_DEBUG_LOG_PROTOCOL_ APPLE_DEBUG_LOG_PROTOCOL |
Apple Debug Log protocol structure forward declaration.
Definition at line 54 of file AppleDebugLog.h.
typedef VOID(EFIAPI * APPLE_DEBUG_LOG_SETUP_FILES) (VOID) |
Performs a one-time operation of setting up an event for EfiSimpleFileSystem protocol installation and triggering its handler for all currently present file systems.
Event handler is supposed to handle all ESP partitions:
Definition at line 132 of file AppleDebugLog.h.
typedef EFI_STATUS(EFIAPI * APPLE_DEBUG_LOG_WRITE_FILES) (VOID) |
Save debug log to 1st APPLE_DEBUG_LOG_PROTOCOL_FILENAME on logging partition. Saving debug log includes extracting all previously unsaved characters from the debug log buffer.
On first call this function performs log rotation:
Truncated character amount is reflected in the log before writing to file.
EFI_SUCCESS | on success. |
EFI_UNSUPPORTED | if current TPL is above TPL_CALLBACK. |
EFI_NOT_FOUND | on write failure. |
Definition at line 112 of file AppleDebugLog.h.
|
extern |