AGESA: Apply a threshold on event logging

Implement threshold as described in AMD.h, and do not add
entries below STATUS_LOG_LEVEL in the eventlog.

Change-Id: Ic9e45b1473b4fee46a1ad52d439e8682d961dc03
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/18542
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
Kyösti Mälkki
2017-03-02 13:53:21 +02:00
parent 50e6daff95
commit 4f74c89592
6 changed files with 18 additions and 0 deletions

View File

@ -199,6 +199,9 @@ PutEventLog (
UINT16 Index;
AGESA_STRUCT_BUFFER *AgesaEventAlloc;
if (EventClass < AGESA_STATUS_LOG_LEVEL)
return;
AgesaEventAlloc = NULL;
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
ASSERT (AgesaEventAlloc != NULL);

View File

@ -213,6 +213,9 @@ PutEventLog (
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
if (EventClass < AGESA_STATUS_LOG_LEVEL)
return;
AgesaEventAlloc = NULL;
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
ASSERT (AgesaEventAlloc != NULL);

View File

@ -216,6 +216,9 @@ PutEventLog (
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
if (EventClass < AGESA_STATUS_LOG_LEVEL)
return;
AgesaEventAlloc = NULL;
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
ASSERT (AgesaEventAlloc != NULL);

View File

@ -214,6 +214,9 @@ PutEventLog (
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
if (EventClass < AGESA_STATUS_LOG_LEVEL)
return;
AgesaEventAlloc = NULL;
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
ASSERT (AgesaEventAlloc != NULL);

View File

@ -213,6 +213,9 @@ PutEventLog (
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
if (EventClass < AGESA_STATUS_LOG_LEVEL)
return;
AgesaEventAlloc = NULL;
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
ASSERT (AgesaEventAlloc != NULL);

View File

@ -213,6 +213,9 @@ PutEventLog (
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
if (EventClass < AGESA_STATUS_LOG_LEVEL)
return;
AgesaEventAlloc = NULL;
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
ASSERT (AgesaEventAlloc != NULL);