Skip to content
Commit d9971dd5 authored by Ryan Roberts's avatar Ryan Roberts
Browse files

cli: Implement "fingerprint" module



It provides the sut_query() function, which can gather both all the
information about a SUT which makes it unique (the "HW" info), and all
the information about the configuration (the "SW" info). This will be
used to identify a unique SUT and a unique config respectively, when
running benchmarks for the purposes of comparison.

It turns out that not all useful information about a given system is
always available. For example, DMI may not be implemented for a
particular system. So we provide some fallback paths to get various
information in a couple of different ways and also add in redundancy
(e.g. gather both DMI product serial number and physical MAC addresses)
so that we still have uniqueness even when some information is missing.

Virtual machines present an interesting challenge though, because we
could have the same configuration but with a different product serial
number or MAC address. Recommendation is that virtual machines should be
configured to have a unique and persistent product serial number. With
qemu, this can be done with:

  -smbios type=1,serial=<SERIAL_NUMBER>

Signed-off-by: Ryan Roberts's avatarRyan Roberts <ryan.roberts@arm.com>
parent c62a381a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment