[llvm-exegesis] Let Counter returns up to 16 entries
authorVy Nguyen <vyng@google.com>
Thu, 25 Jun 2020 15:15:16 +0000 (11:15 -0400)
committerVy Nguyen <vyng@google.com>
Fri, 26 Jun 2020 14:57:20 +0000 (10:57 -0400)
commite086a39c118fa6c1d8d23257ff0f112d000d87fe
treea450f7483b48f37c5895fce55ab1b66ae510f0a4
parentb55d723ed61052b77e720dcffecac43abe873186
 [llvm-exegesis] Let Counter returns up to 16 entries

    LBR contains (up to) 16 entries for last x branches and the X86LBRCounter (from D77422) should be able to return all those.
    Currently, it just returns the latest entry, which could lead to mis-leading measurements.
    This patch aslo changes the LatencyBenchmarkRunner to accommodate multi-value readings.

         https://reviews.llvm.org/D81050
llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h
llvm/tools/llvm-exegesis/lib/LatencyBenchmarkRunner.cpp
llvm/tools/llvm-exegesis/lib/LatencyBenchmarkRunner.h
llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
llvm/tools/llvm-exegesis/lib/PerfHelper.h
llvm/tools/llvm-exegesis/lib/Target.cpp
llvm/tools/llvm-exegesis/lib/Target.h
llvm/tools/llvm-exegesis/llvm-exegesis.cpp