diff mbox series

tpmevlogdump: add supporting several new types for event log dumping

Message ID 20220106075423.83995-1-ivan.hu@canonical.com
State Accepted
Headers show
Series tpmevlogdump: add supporting several new types for event log dumping | expand

Commit Message

ivanhu Jan. 6, 2022, 7:54 a.m. UTC
Add supporting the new tpm event log types which defined in the TCG PTP 1.05

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 src/tpm/tpmevlogdump/tpmevlogdump.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Comments

Alex Hung Jan. 7, 2022, 2:10 a.m. UTC | #1
On 2022-01-06 00:54, Ivan Hu wrote:
> Add supporting the new tpm event log types which defined in the TCG PTP 1.05
> 
> Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
> ---
>   src/tpm/tpmevlogdump/tpmevlogdump.c | 15 +++++++++++++++
>   1 file changed, 15 insertions(+)
> 
> diff --git a/src/tpm/tpmevlogdump/tpmevlogdump.c b/src/tpm/tpmevlogdump/tpmevlogdump.c
> index a569d29b..ece42c84 100644
> --- a/src/tpm/tpmevlogdump/tpmevlogdump.c
> +++ b/src/tpm/tpmevlogdump/tpmevlogdump.c
> @@ -117,12 +117,27 @@ static char *tpmevlogdump_evtype_to_string(const fwts_tpmlog_event_type event_ty
>   	case EV_EFI_HANDOFF_TABLES:
>   		str = "EV_EFI_HANDOFF_TABLES";
>   		break;
> +	case EV_EFI_PLATFORM_FIRMWARE_BLOB2:
> +		str = "EV_EFI_PLATFORM_FIRMWARE_BLOB2";
> +		break;
> +	case EV_EFI_HANDOFF_TABLES2:
> +		str = "EV_EFI_HANDOFF_TABLES2";
> +		break;
> +	case EV_EFI_VARIABLE_BOOT2:
> +		str = "EV_EFI_VARIABLE_BOOT2";
> +		break;
>   	case EV_EFI_HCRTM_EVENT:
>   		str = "EV_EFI_HCRTM_EVENT";
>   		break;
>   	case EV_EFI_VARIABLE_AUTHORITY:
>   		str = "EV_EFI_VARIABLE_AUTHORITY";
>   		break;
> +	case EV_EFI_SPDM_FIRMWARE_BLOB:
> +		str = "EV_EFI_SPDM_FIRMWARE_BLOB";
> +		break;
> +	case EV_EFI_SPDM_FIRMWARE_CONFIG:
> +		str = "EV_EFI_SPDM_FIRMWARE_CONFIG";
> +		break;
>   	default:
>   		str = "Unknown";
>   		break;
> 


Acked-by: Alex Hung <alex.hung@canonical.com>
diff mbox series

Patch

diff --git a/src/tpm/tpmevlogdump/tpmevlogdump.c b/src/tpm/tpmevlogdump/tpmevlogdump.c
index a569d29b..ece42c84 100644
--- a/src/tpm/tpmevlogdump/tpmevlogdump.c
+++ b/src/tpm/tpmevlogdump/tpmevlogdump.c
@@ -117,12 +117,27 @@  static char *tpmevlogdump_evtype_to_string(const fwts_tpmlog_event_type event_ty
 	case EV_EFI_HANDOFF_TABLES:
 		str = "EV_EFI_HANDOFF_TABLES";
 		break;
+	case EV_EFI_PLATFORM_FIRMWARE_BLOB2:
+		str = "EV_EFI_PLATFORM_FIRMWARE_BLOB2";
+		break;
+	case EV_EFI_HANDOFF_TABLES2:
+		str = "EV_EFI_HANDOFF_TABLES2";
+		break;
+	case EV_EFI_VARIABLE_BOOT2:
+		str = "EV_EFI_VARIABLE_BOOT2";
+		break;
 	case EV_EFI_HCRTM_EVENT:
 		str = "EV_EFI_HCRTM_EVENT";
 		break;
 	case EV_EFI_VARIABLE_AUTHORITY:
 		str = "EV_EFI_VARIABLE_AUTHORITY";
 		break;
+	case EV_EFI_SPDM_FIRMWARE_BLOB:
+		str = "EV_EFI_SPDM_FIRMWARE_BLOB";
+		break;
+	case EV_EFI_SPDM_FIRMWARE_CONFIG:
+		str = "EV_EFI_SPDM_FIRMWARE_CONFIG";
+		break;
 	default:
 		str = "Unknown";
 		break;