Lines Matching refs:idx
31 static struct perf_event *register_test_bp(int cpu, struct task_struct *tsk, int idx)
35 if (WARN_ON(idx < 0 || idx >= MAX_TEST_BREAKPOINTS))
39 attr.bp_addr = (unsigned long)&break_vars[idx];
124 int idx = 0;
126 fill_bp_slots(test, &idx, get_test_cpu(0), NULL, 0);
127 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
128 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
133 int idx = 0;
138 bool do_continue = fill_bp_slots(test, &idx, cpu, NULL, 0);
140 TEST_EXPECT_NOSPC(register_test_bp(cpu, NULL, idx));
148 int idx = 0;
150 fill_bp_slots(test, &idx, -1, current, 0);
151 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
152 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx));
153 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
156 fill_one_bp_slot(test, &idx, get_test_cpu(0), NULL);
161 int idx = 0;
164 fill_bp_slots(test, &idx, -1, current, 0);
165 fill_bp_slots(test, &idx, -1, get_other_task(test), 0);
167 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
168 TEST_EXPECT_NOSPC(register_test_bp(-1, get_other_task(test), idx));
169 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx));
170 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), get_other_task(test), idx));
171 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
174 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
179 int idx = 0;
181 fill_bp_slots(test, &idx, get_test_cpu(0), current, 0);
182 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
183 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx));
184 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
190 fill_one_bp_slot(test, &idx, get_test_cpu(0), NULL);
195 int idx = 0;
199 fill_one_bp_slot(test, &idx, get_test_cpu(0), current);
200 fill_bp_slots(test, &idx, -1, current, 1);
201 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
202 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx));
203 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
208 fill_one_bp_slot(test, &idx, get_test_cpu(0), NULL);
209 fill_one_bp_slot(test, &idx, get_test_cpu(0), NULL);
210 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
215 int idx = 0;
217 fill_bp_slots(test, &idx, get_test_cpu(0), current, 0);
218 fill_bp_slots(test, &idx, get_test_cpu(0), get_other_task(test), 0);
220 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
221 TEST_EXPECT_NOSPC(register_test_bp(-1, get_other_task(test), idx));
222 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx));
223 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), get_other_task(test), idx));
224 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
226 fill_bp_slots(test, &idx, get_test_cpu(1), NULL, 0);
231 int idx = 0;
233 fill_bp_slots(test, &idx, get_test_cpu(0), current, 0);
234 fill_bp_slots(test, &idx, -1, get_other_task(test), 0);
236 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
237 TEST_EXPECT_NOSPC(register_test_bp(-1, get_other_task(test), idx));
238 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx));
239 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), get_other_task(test), idx));
240 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
242 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(1), NULL, idx));
248 int idx = 0;
252 fill_bp_slots(test, &idx, -1, current, 2);
254 tsk_on_cpu_idx = idx;
255 fill_one_bp_slot(test, &idx, get_test_cpu(0), current);
256 fill_one_bp_slot(test, &idx, -1, current);
258 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
259 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx));
260 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
263 cpu_idx = idx;
264 fill_one_bp_slot(test, &idx, get_test_cpu(1), NULL);
265 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(1), NULL, idx));
270 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
273 fill_one_bp_slot(test, &idx, -1, current);
275 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx));
276 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx));
277 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), NULL, idx));
278 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(1), NULL, idx));