benchmark/test
Liqiang TAO d0fbf8ac23
Cache PerfCounters instance in PerfCountersMeasurement (#1308)
This patch fixes #1306, by reducing the pinned instances of
PerfCounters.

The issue is caused by creating multiple pinned events in the
same thread, doing so results in the Snapshot(PerfCounterValues* values)
failing, and that's now discoverable.
Creating multile pinned events is an unsupported behavior currently.
The error would be detected at read() time, not
perf_event_open() / iotcl() time.

The unsupported benavior above is confirmed by Stephane Eranian @seranian,
and he also pointed the dectection method.

Finished this patch under the guidance of Mircea Trofin @mtrofin.
2022-01-25 10:14:20 +00:00
..
args_product_test.cc clang-tidy: readability-redundant and performance (#1298) 2021-12-06 11:18:04 +00:00
AssemblyTests.cmake split_list is not defined for assembly tests (#595) 2018-05-14 15:02:49 +01:00
basic_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
benchmark_gtest.cc Fix leak in test, and provide path to remove leak from library (#1169) 2021-06-03 16:08:00 +01:00
benchmark_name_gtest.cc BENCHMARK_CAPTURE() and Complexity() - naming problem (#761) 2019-03-17 16:38:51 +03:00
benchmark_random_interleaving_gtest.cc clang-tidy: readability-redundant and performance (#1298) 2021-12-06 11:18:04 +00:00
benchmark_setup_teardown_test.cc lose some build warnings 2021-11-19 19:54:05 +00:00
benchmark_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
BUILD [RFC] Adding API for setting/getting benchmark_filter flag? (#1254) 2021-10-27 08:52:57 +01:00
clobber_memory_assembly_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
CMakeLists.txt Add Setup/Teardown option on Benchmark. (#1269) 2021-11-17 16:51:55 +00:00
commandlineflags_gtest.cc Add benchmark_context flag that allows per-run custom context. (#1127) 2021-05-04 14:36:11 +01:00
complexity_test.cc clang-tidy: readability-redundant and performance (#1298) 2021-12-06 11:18:04 +00:00
cxx03_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
diagnostics_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
display_aggregates_only_test.cc Introduce Coefficient of variation aggregate (#1220) 2021-09-03 18:44:10 +01:00
donotoptimize_assembly_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
donotoptimize_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
filter_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
fixture_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
internal_threading_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
link_main_test.cc Add benchmark_main target. (#601) 2018-05-25 11:18:58 +01:00
map_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
memory_manager_test.cc Introduce per-family instance index (#1165) 2021-06-02 23:45:41 +03:00
multiple_ranges_test.cc clang-tidy: readability-redundant and performance (#1298) 2021-12-06 11:18:04 +00:00
options_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
output_test_helper.cc clang-tidy: readability-redundant and performance (#1298) 2021-12-06 11:18:04 +00:00
output_test.h clang-tidy: readability-redundant and performance (#1298) 2021-12-06 11:18:04 +00:00
perf_counters_gtest.cc Cache PerfCounters instance in PerfCountersMeasurement (#1308) 2022-01-25 10:14:20 +00:00
perf_counters_test.cc fix clang-tidy warnings (#1195) 2021-06-29 11:06:53 +01:00
register_benchmark_test.cc clang-tidy: readability-redundant and performance (#1298) 2021-12-06 11:18:04 +00:00
repetitions_test.cc Statistics: add support for percentage unit in addition to time (#1219) 2021-09-03 15:36:56 +01:00
report_aggregates_only_test.cc Introduce Coefficient of variation aggregate (#1220) 2021-09-03 18:44:10 +01:00
reporter_output_test.cc Remove unused parameter from lambda. (#1223) 2021-09-07 17:54:23 +01:00
skip_with_error_test.cc clang-tidy: readability-redundant and performance (#1298) 2021-12-06 11:18:04 +00:00
spec_arg_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
state_assembly_test.cc Iteration counts should be uint64_t globally. (#817) 2019-05-13 12:33:11 +03:00
statistics_gtest.cc Introduce Coefficient of variation aggregate (#1220) 2021-09-03 18:44:10 +01:00
string_util_gtest.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
templated_fixture_test.cc format tests with clang-format (#1282) 2021-11-10 16:22:31 +00:00
user_counters_tabular_test.cc COnsole reporter: if statistic produces percents, format it as such (#1221) 2021-09-06 11:33:27 +03:00
user_counters_test.cc Fix error with Fix Werror=old-style-cast (#1272) 2021-11-04 12:09:10 +00:00
user_counters_thousands_test.cc Statistics: add support for percentage unit in addition to time (#1219) 2021-09-03 15:36:56 +01:00