Home
last modified time | relevance | path

Searched refs:iterate_on (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/perf_events/
H A Dsigtrap_threads.c97 iter = ctx.iterate_on; /* read */ in test_thread()
101 ctx.iterate_on = iter; /* idempotent write */ in test_thread()
104 while (ctx.iterate_on); in test_thread()
173 EXPECT_EQ(ctx.first_siginfo.si_addr, &ctx.iterate_on); in TEST_F()
178 ctx.iterate_on = 0; in TEST_F()
192 EXPECT_EQ(ctx.first_siginfo.si_addr, &ctx.iterate_on); in TEST_F()
197 ctx.iterate_on = 0; in TEST_F()
204 ctx.iterate_on = 3000; in TEST_F()
212 EXPECT_EQ(ctx.first_siginfo.si_addr, &ctx.iterate_on); in TEST_F()
222 ctx.iterate_on = -1; in TEST_F()
[all …]
/openbmc/linux/tools/perf/tests/
H A Dsigtrap.c30 volatile int iterate_on; /* Variable to set breakpoint on. */ member
34 #define TEST_SIG_DATA (~(unsigned long)(&ctx.iterate_on))
43 .bp_addr = (unsigned long)&ctx.iterate_on, in make_event_attr()
131 for (i = 0; i < ctx.iterate_on - 1; i++) in test_thread()
152 ctx.iterate_on = 3000; in run_stress_test()
159 TEST_ASSERT_EQUAL("unexpected sigtraps", ctx.signal_count, NUM_THREADS * ctx.iterate_on); in run_stress_test()
161 TEST_ASSERT_VAL("unexpected si_addr", ctx.first_siginfo.si_addr == &ctx.iterate_on); in run_stress_test()