]> git.cworth.org Git - fips/commit
Add support for performance counters of types other than uint32_t
authorCarl Worth <cworth@cworth.org>
Wed, 23 Oct 2013 16:23:44 +0000 (09:23 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 23 Oct 2013 23:17:48 +0000 (16:17 -0700)
commit8ce831b4994e445482eeaeaea868def8a847f34c
tree512c4107f7a429a81d5a59797e23f76a7285ad26
parentf1f4fb86c140a5219fc0697d1bc63720453bd72a
Add support for performance counters of types other than uint32_t

The AMD_performance_monitor extension also allows counters of type
uin64_t, float, and percentage (which is the same data-type as float).

Fips was already storing the expected type in the group's
counter_types array, so it's a simple matter to look at that and read
a value of the expected type.
metrics.c