diff options
| author | Srish Srinivasan <ssrish@linux.ibm.com> | 2026-10-05 11:57:32 +0530 |
|---|---|---|
| committer | Jarkko Sakkinen <jarkko@kernel.org> | 2026-10-20 18:15:40 +0300 |
| commit | 722658cac48a6ba49f5506fd74d010ad9dbb2f05 (patch) | |
| tree | 3b36a78f292b1470362edc24ef0029a07d3cd287 /tools/perf/scripts/python/stackcollapse.py | |
| parent | bbebc81e7e72039369b5dc6272a33c42b8bfa2d7 (diff) | |
keys/trusted_keys: reuse TPM version in option handling
Determine the TPM version once in the seal and unseal paths, and reuse
it when allocating and parsing trusted key options.
This reduces the number of fallible calls to tpm_is_tpm2() and avoids
unnecessary I/O between the kernel and the TPM.
Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20261005062732.140733-1-ssrish@linux.ibm.com
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
