Lines Matching refs:state
36 BENCHMARK_DEFINE_F(BpfBenchMark, MapWriteNewEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
37 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F()
39 mBpfTestMap.writeValue(state.range(0), state.range(0), BPF_NOEXIST); in BENCHMARK_DEFINE_F()
43 BENCHMARK_DEFINE_F(BpfBenchMark, MapUpdateEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
48 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F()
50 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_EXIST); in BENCHMARK_DEFINE_F()
54 BENCHMARK_DEFINE_F(BpfBenchMark, MapDeleteAddEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
59 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F()
61 mBpfTestMap.deleteValue(state.range(0)); in BENCHMARK_DEFINE_F()
63 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_NOEXIST); in BENCHMARK_DEFINE_F()
67 BENCHMARK_DEFINE_F(BpfBenchMark, WaitForRcu)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
68 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F()
71 state.SkipWithError( in BENCHMARK_DEFINE_F()