---
name: "Tspi_TPM_GetEventLog"
section: "3"
platform: "linux"
package: "libtspi-dev"
version: "0.3.15-0.4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tspi_TPM_GetEventLog"
---

# Tspi\_TPM\_GetEventLog(3)

## NAME

Tspi\_TPM\_GetEventLog- get the entire PCR event log.

## SYNOPSIS

**#include \<tss/platform.h\>** **#include \<tss/tcpa\_defines.h\>** **#include \<tss/tcpa\_typedef.h\>** **#include \<tss/tcpa\_struct.h\>** **#include \<tss/tss\_typedef.h\>** **#include \<tss/tss\_structs.h\>** **#include \<tss/tspi.h\>** **TSS\_RESULT Tspi\_TPM\_GetEventLog(TSS\_HTPM**        *hTPM***, UINT32\*** *pulEventNumber***,**                                 **TSS\_PCR\_EVENT\*\*** *prgPcrEvents***);**

## DESCRIPTION

**Tspi\_TPM\_GetEventLog** provides the whole event log that was used to create all of the PCRs.

## PARAMETERS

### hTPM

Handle of the TPM object.

### pulEventNumber

Receives number of returned event data structures in prgPcrEvents parameter.

### prgPcrEvents

Receives a pointer to an array of PCR event data. If NULL, only the numberof elements is returned in pulEventNumber parameter.

## RETURN CODES

**Tspi\_TPM\_GetEventLog** returns TSS\_SUCCESS on success, otherwise one of the following values are returned: TSS\_E\_INVALID\_HANDLE **hTPM** is not a valid handle to the TPM object. TSS\_E\_INTERNAL\_ERROR An error occurred internal to the TSS.

## CONFORMING TO

**Tspi\_TPM\_GetEventLog** conforms to the Trusted Computing Group Software Specification version 1.1 Golden

## SEE ALSO

[**Tspi\_TPM\_GetEvent**(3)](/Tspi_TPM_GetEvent/3.md) [**Tspi\_TPM\_GetEvents**(3)](/Tspi_TPM_GetEvents/3.md).
