benchtests: Fix pthread-locks test to produce valid json
commita373aa25c764d35370805d5a9d50c9a8e9388aca
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Sun, 18 Apr 2021 07:19:54 +0000 (18 12:49 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Sun, 18 Apr 2021 07:26:29 +0000 (18 12:56 +0530)
tree40803c555e2ec6c9d6a2700c899b2eb1c07f7a66
parent81cbc3bcaed730aa5d9e5d4ec46a0d4cb9eb6cd5
benchtests: Fix pthread-locks test to produce valid json

The benchtests json allows {function {variant}} categorization of
results whereas the pthread-locks tests had {function {variant
{subvariant}}}, which broke validation.  Fix that by serializing the
subvariants as variant-subvariant.  Also update the schema to
recognize the new benchmark attributes after fixing the naming
conventions.
benchtests/bench-pthread-locks.c
benchtests/scripts/benchout.schema.json