Tspi_T...entLog(3)
π Tspi_TPM_GetEventLog π
okay bestie, gather round, because we're diving into the TCG Software Stack Developer's Reference and this one is a whole vibe. it's Tspi_T...entLog(3) if you're being all formal about it, but we're gonna be on a first-name basis π«Ά
β¨ NAME β¨
Tspi_TPM_GetEventLog β get the entire PCR event log. the WHOLE thing. no crumbs left behind π
πΈ 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);
like yes, that's a lot of includes, but that's just how the TSS rolls, periodt β¨
π¦ DESCRIPTION π¦
Tspi_TPM_GetEventLog hands you the whole entire event log β the one that was used to create all of the PCRs. not a snippet, not a highlight reel, the full saga. it's giving archivist energy and we're obsessed π
π PARAMETERS π
hTPM
the handle of the TPM object. your lil entry pass to the TPM world π
pulEventNumber
this one receives the number of returned event data structures that live inside the prgPcrEvents parameter. it's the count, bestie, it's how many we got π
prgPcrEvents
receives a pointer to an array of PCR event data. IMPORTANT: if it's NULL, then only the number of elements gets returned in the pulEventNumber parameter. so you can absolutely do a lil recon mission first, then come back for the goods π
β RETURN CODES β
Tspi_TPM_GetEventLog returns TSS_SUCCESS on success β slay β otherwise one of these lil guys shows up instead:
TSS_E_INVALID_HANDLEβhTPMis not a valid handle to the TPM object. the vibe check failed πTSS_E_INTERNAL_ERRORβ an error occurred internal to the TSS. not our fault, not your fault, it's just internal drama π
π CONFORMING TO π
Tspi_TPM_GetEventLog conforms to the Trusted Computing Group Software Specification version 1.1 Golden. golden!! like the name says. iconic behavior fr fr β¨
π SEE ALSO π
iykyk, go read those next, they're the sibling chapters of this saga π
and that's the whole page, bestie!! this lil doc came from TSS 1.1, dated 2004-05-26 β vintage but still hitting different. mwah, go forth and log those events ππ
π¦ where this page comes from
- debian bookworm: libtspi-dev 0.3.15-0.3 Β· BSD-3-Clause
- debian trixie: libtspi-dev 0.3.15-0.4 Β· BSD-3-Clause
- epel 10: trousers-devel 0.3.15-11.el10_0 Β· BSD
- epel 9: trousers-devel 0.3.15-5.el9 Β· BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: trousers 0.3.15
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: trousers 0.3.15
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libtspi-dev 0.3.15-0.2 Β· BSD-3-Clause
- ubuntu noble: libtspi-dev 0.3.15-0.3build2 Β· BSD-3-Clause
- ubuntu questing: libtspi-dev 0.3.15-0.4
- ubuntu resolute: libtspi-dev 0.3.15-1 Β· BSD-3-Clause
- ubuntu stonking: libtspi-dev 0.3.15-1ubuntu2 Β· BSD-3-Clause
- Copyright (C) 2004 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms