aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorStefan Berger <[email protected]>2021-11-27 23:10:51 -0500
committerJarkko Sakkinen <[email protected]>2022-03-08 10:33:17 +0200
commit0d060f230fa06c32d91e67978a3088be9635848e (patch)
tree467f3b7b71b8912a14cbc6a224b80f3dcea115cc /tools/perf/scripts/python/net_dropmonitor.py
parentea4424be16887a37735d6550cfd0611528dbe5d9 (diff)
selftests: tpm2: Determine available PCR bank
Determine an available PCR bank to be used by a test case by querying the capability TPM2_GET_CAP. The TPM2 returns TPML_PCR_SELECTIONS that contains an array of TPMS_PCR_SELECTIONs indicating available PCR banks and the bitmasks that show which PCRs are enabled in each bank. Collect the data in a dictionary. From the dictionary determine the PCR bank that has the PCRs enabled that the test needs. This avoids test failures with TPM2's that either to not have a SHA-1 bank or whose SHA-1 bank is disabled. Signed-off-by: Stefan Berger <[email protected]> Tested-by: Jarkko Sakkinen <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions