• Home
  • Raw
  • Download

Lines Matching refs:evsel

51 	struct evsel *evsel = evlist__first(evlist);  in test__checkevent_tracepoint()  local
55 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
57 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
58 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
64 struct evsel *evsel; in test__checkevent_tracepoint_multi() local
69 evlist__for_each_entry(evlist, evsel) { in test__checkevent_tracepoint_multi()
71 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi()
73 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi()
75 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi()
82 struct evsel *evsel = evlist__first(evlist); in test__checkevent_raw() local
85 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_raw()
86 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__checkevent_raw()
92 struct evsel *evsel = evlist__first(evlist); in test__checkevent_numeric() local
95 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_numeric()
96 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_numeric()
102 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_name() local
105 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__checkevent_symbolic_name()
107 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__checkevent_symbolic_name()
113 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_name_config() local
116 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__checkevent_symbolic_name_config()
118 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__checkevent_symbolic_name_config()
124 0 == evsel->core.attr.sample_period); in test__checkevent_symbolic_name_config()
126 0 == evsel->core.attr.config1); in test__checkevent_symbolic_name_config()
128 1 == evsel->core.attr.config2); in test__checkevent_symbolic_name_config()
134 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_alias() local
137 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_symbolic_alias()
139 PERF_COUNT_SW_PAGE_FAULTS == evsel->core.attr.config); in test__checkevent_symbolic_alias()
145 struct evsel *evsel = evlist__first(evlist); in test__checkevent_genhw() local
148 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type); in test__checkevent_genhw()
149 TEST_ASSERT_VAL("wrong config", (1 << 16) == evsel->core.attr.config); in test__checkevent_genhw()
155 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint() local
158 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint()
159 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint()
161 evsel->core.attr.bp_type); in test__checkevent_breakpoint()
163 evsel->core.attr.bp_len); in test__checkevent_breakpoint()
169 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_x() local
172 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_x()
173 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_x()
175 HW_BREAKPOINT_X == evsel->core.attr.bp_type); in test__checkevent_breakpoint_x()
176 TEST_ASSERT_VAL("wrong bp_len", sizeof(long) == evsel->core.attr.bp_len); in test__checkevent_breakpoint_x()
182 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_r() local
186 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_r()
187 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_r()
189 HW_BREAKPOINT_R == evsel->core.attr.bp_type); in test__checkevent_breakpoint_r()
191 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_r()
197 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_w() local
201 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_w()
202 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_w()
204 HW_BREAKPOINT_W == evsel->core.attr.bp_type); in test__checkevent_breakpoint_w()
206 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_w()
212 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_rw() local
216 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_rw()
217 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_rw()
219 (HW_BREAKPOINT_R|HW_BREAKPOINT_W) == evsel->core.attr.bp_type); in test__checkevent_breakpoint_rw()
221 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_rw()
227 struct evsel *evsel = evlist__first(evlist); in test__checkevent_tracepoint_modifier() local
229 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_tracepoint_modifier()
230 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_tracepoint_modifier()
231 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_tracepoint_modifier()
232 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_tracepoint_modifier()
240 struct evsel *evsel; in test__checkevent_tracepoint_multi_modifier() local
244 evlist__for_each_entry(evlist, evsel) { in test__checkevent_tracepoint_multi_modifier()
246 !evsel->core.attr.exclude_user); in test__checkevent_tracepoint_multi_modifier()
248 evsel->core.attr.exclude_kernel); in test__checkevent_tracepoint_multi_modifier()
249 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_tracepoint_multi_modifier()
250 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_tracepoint_multi_modifier()
258 struct evsel *evsel = evlist__first(evlist); in test__checkevent_raw_modifier() local
260 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_raw_modifier()
261 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_raw_modifier()
262 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_raw_modifier()
263 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_raw_modifier()
270 struct evsel *evsel = evlist__first(evlist); in test__checkevent_numeric_modifier() local
272 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_numeric_modifier()
273 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_numeric_modifier()
274 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_numeric_modifier()
275 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_numeric_modifier()
282 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_name_modifier() local
284 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_symbolic_name_modifier()
285 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_symbolic_name_modifier()
286 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_symbolic_name_modifier()
287 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_symbolic_name_modifier()
294 struct evsel *evsel = evlist__first(evlist); in test__checkevent_exclude_host_modifier() local
296 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_host_modifier()
297 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__checkevent_exclude_host_modifier()
304 struct evsel *evsel = evlist__first(evlist); in test__checkevent_exclude_guest_modifier() local
306 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__checkevent_exclude_guest_modifier()
307 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__checkevent_exclude_guest_modifier()
314 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_alias_modifier() local
316 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_symbolic_alias_modifier()
317 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_symbolic_alias_modifier()
318 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_symbolic_alias_modifier()
319 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_symbolic_alias_modifier()
326 struct evsel *evsel = evlist__first(evlist); in test__checkevent_genhw_modifier() local
328 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_genhw_modifier()
329 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_genhw_modifier()
330 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_genhw_modifier()
331 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_genhw_modifier()
338 struct evsel *evsel = evlist__first(evlist); in test__checkevent_exclude_idle_modifier() local
340 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); in test__checkevent_exclude_idle_modifier()
341 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_idle_modifier()
342 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__checkevent_exclude_idle_modifier()
343 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_exclude_idle_modifier()
344 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_exclude_idle_modifier()
345 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_exclude_idle_modifier()
346 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_exclude_idle_modifier()
353 struct evsel *evsel = evlist__first(evlist); in test__checkevent_exclude_idle_modifier_1() local
355 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); in test__checkevent_exclude_idle_modifier_1()
356 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_idle_modifier_1()
357 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__checkevent_exclude_idle_modifier_1()
358 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_exclude_idle_modifier_1()
359 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_exclude_idle_modifier_1()
360 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_exclude_idle_modifier_1()
361 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_exclude_idle_modifier_1()
368 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_modifier() local
371 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_modifier()
372 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_modifier()
373 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_modifier()
374 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_modifier()
376 !strcmp(evsel__name(evsel), "mem:0:u")); in test__checkevent_breakpoint_modifier()
383 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_x_modifier() local
385 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_x_modifier()
386 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_x_modifier()
387 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_x_modifier()
388 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_x_modifier()
390 !strcmp(evsel__name(evsel), "mem:0:x:k")); in test__checkevent_breakpoint_x_modifier()
397 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_r_modifier() local
399 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_r_modifier()
400 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_r_modifier()
401 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_r_modifier()
402 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_r_modifier()
404 !strcmp(evsel__name(evsel), "mem:0:r:hp")); in test__checkevent_breakpoint_r_modifier()
411 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_w_modifier() local
413 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_w_modifier()
414 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_w_modifier()
415 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_w_modifier()
416 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_w_modifier()
418 !strcmp(evsel__name(evsel), "mem:0:w:up")); in test__checkevent_breakpoint_w_modifier()
425 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_rw_modifier() local
427 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_rw_modifier()
428 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_rw_modifier()
429 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_rw_modifier()
430 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_rw_modifier()
432 !strcmp(evsel__name(evsel), "mem:0:rw:kp")); in test__checkevent_breakpoint_rw_modifier()
440 struct evsel *evsel = evlist__first(evlist); in test__checkevent_pmu() local
443 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu()
444 TEST_ASSERT_VAL("wrong config", 10 == evsel->core.attr.config); in test__checkevent_pmu()
445 TEST_ASSERT_VAL("wrong config1", 1 == evsel->core.attr.config1); in test__checkevent_pmu()
446 TEST_ASSERT_VAL("wrong config2", 3 == evsel->core.attr.config2); in test__checkevent_pmu()
451 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu()
458 struct evsel *evsel = evlist__first(evlist); in test__checkevent_list() local
463 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_list()
464 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_list()
465 TEST_ASSERT_VAL("wrong config1", 0 == evsel->core.attr.config1); in test__checkevent_list()
466 TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2); in test__checkevent_list()
467 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_list()
468 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_list()
469 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_list()
470 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_list()
473 evsel = evsel__next(evsel); in test__checkevent_list()
474 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_list()
476 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_list()
477 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_list()
478 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_list()
479 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_list()
480 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_list()
481 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_list()
484 evsel = evsel__next(evsel); in test__checkevent_list()
485 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_list()
486 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_list()
487 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_list()
488 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_list()
489 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_list()
490 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_list()
497 struct evsel *evsel = evlist__first(evlist); in test__checkevent_pmu_name() local
501 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_name()
502 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_pmu_name()
503 TEST_ASSERT_VAL("wrong name", !strcmp(evsel__name(evsel), "krava")); in test__checkevent_pmu_name()
506 evsel = evsel__next(evsel); in test__checkevent_pmu_name()
508 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_name()
509 TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config); in test__checkevent_pmu_name()
511 !strcmp(evsel__name(evsel), "cpu/config=2/u")); in test__checkevent_pmu_name()
518 struct evsel *evsel = evlist__first(evlist); in test__checkevent_pmu_partial_time_callgraph() local
522 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_partial_time_callgraph()
523 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_pmu_partial_time_callgraph()
528 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
529 TEST_ASSERT_VAL("wrong callgraph", !evsel__has_callchain(evsel)); in test__checkevent_pmu_partial_time_callgraph()
530 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph()
533 evsel = evsel__next(evsel); in test__checkevent_pmu_partial_time_callgraph()
534 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_partial_time_callgraph()
535 TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config); in test__checkevent_pmu_partial_time_callgraph()
540 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
541 TEST_ASSERT_VAL("wrong callgraph", !evsel__has_callchain(evsel)); in test__checkevent_pmu_partial_time_callgraph()
542 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph()
549 struct evsel *evsel = evlist__first(evlist); in test__checkevent_pmu_events() local
552 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_events()
554 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events()
556 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events()
557 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events()
558 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events()
559 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events()
560 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__checkevent_pmu_events()
568 struct evsel *evsel = evlist__first(evlist); in test__checkevent_pmu_events_mix() local
573 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events_mix()
575 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events_mix()
576 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events_mix()
577 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events_mix()
578 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
579 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__checkevent_pmu_events_mix()
582 evsel = evsel__next(evsel); in test__checkevent_pmu_events_mix()
584 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_events_mix()
586 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events_mix()
588 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events_mix()
589 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events_mix()
590 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events_mix()
591 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
592 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
670 struct evsel *evsel, *leader; in test__group1() local
676 evsel = leader = evlist__first(evlist); in test__group1()
677 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group1()
679 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group1()
680 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group1()
681 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group1()
682 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group1()
683 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group1()
684 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group1()
685 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group1()
686 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group1()
687 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group1()
688 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group1()
689 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group1()
692 evsel = evsel__next(evsel); in test__group1()
693 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group1()
695 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group1()
696 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group1()
697 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group1()
698 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group1()
700 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group1()
701 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group1()
702 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2); in test__group1()
703 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group1()
704 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group1()
705 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group1()
712 struct evsel *evsel, *leader; in test__group2() local
718 evsel = leader = evlist__first(evlist); in test__group2()
719 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__group2()
721 PERF_COUNT_SW_PAGE_FAULTS == evsel->core.attr.config); in test__group2()
722 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group2()
723 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group2()
724 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
725 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group2()
726 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
727 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
728 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group2()
729 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group2()
730 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group2()
731 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group2()
734 evsel = evsel__next(evsel); in test__group2()
735 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group2()
737 PERF_COUNT_HW_CACHE_REFERENCES == evsel->core.attr.config); in test__group2()
738 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group2()
739 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group2()
740 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
741 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group2()
742 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
743 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
744 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group2()
745 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group2()
746 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group2()
749 evsel = evsel__next(evsel); in test__group2()
750 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group2()
752 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group2()
753 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group2()
754 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group2()
755 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
756 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group2()
757 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
758 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
759 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group2()
760 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group2()
767 struct evsel *evsel, *leader; in test__group3() local
773 evsel = leader = evlist__first(evlist); in test__group3()
774 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__group3()
776 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__group3()
777 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__group3()
778 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
779 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
780 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group3()
781 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group3()
782 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group3()
783 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
784 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group3()
787 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group3()
788 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group3()
789 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group3()
792 evsel = evsel__next(evsel); in test__group3()
793 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
795 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group3()
796 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group3()
797 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
798 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group3()
800 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group3()
801 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group3()
802 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 3); in test__group3()
803 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group3()
804 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group3()
805 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group3()
806 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group3()
809 evsel = leader = evsel__next(evsel); in test__group3()
810 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
812 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group3()
813 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
814 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
815 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group3()
816 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group3()
817 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group3()
818 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
819 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group3()
822 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group3()
823 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group3()
824 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group3()
827 evsel = evsel__next(evsel); in test__group3()
828 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__group3()
829 TEST_ASSERT_VAL("wrong config", 3 == evsel->core.attr.config); in test__group3()
830 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
831 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
832 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group3()
833 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group3()
834 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group3()
835 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
836 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group3()
837 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group3()
838 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group3()
841 evsel = evsel__next(evsel); in test__group3()
842 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
844 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group3()
845 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
846 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group3()
847 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group3()
848 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group3()
849 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group3()
850 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
851 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group3()
852 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group3()
859 struct evsel *evsel, *leader; in test__group4() local
865 evsel = leader = evlist__first(evlist); in test__group4()
866 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group4()
868 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group4()
869 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group4()
870 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group4()
871 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group4()
873 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group4()
874 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group4()
875 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 1); in test__group4()
876 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group4()
877 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group4()
878 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group4()
879 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group4()
880 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group4()
883 evsel = evsel__next(evsel); in test__group4()
884 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group4()
886 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group4()
887 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group4()
888 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group4()
889 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group4()
891 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group4()
892 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group4()
893 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2); in test__group4()
894 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group4()
895 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group4()
896 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group4()
903 struct evsel *evsel, *leader; in test__group5() local
909 evsel = leader = evlist__first(evlist); in test__group5()
910 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
912 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group5()
913 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
914 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
915 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
916 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
917 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
918 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
919 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group5()
920 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group5()
921 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group5()
922 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group5()
923 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group5()
926 evsel = evsel__next(evsel); in test__group5()
927 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
929 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group5()
930 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
931 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
932 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
933 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
934 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
935 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
936 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group5()
937 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group5()
938 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group5()
941 evsel = leader = evsel__next(evsel); in test__group5()
942 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
944 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group5()
945 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
946 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
947 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
948 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
949 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
950 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
951 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group5()
952 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group5()
953 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group5()
954 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group5()
955 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group5()
958 evsel = evsel__next(evsel); in test__group5()
959 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
961 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group5()
962 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
963 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
964 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
965 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
966 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
967 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
968 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group5()
969 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group5()
972 evsel = evsel__next(evsel); in test__group5()
973 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
975 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group5()
976 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
977 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
978 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
979 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group5()
980 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group5()
981 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
982 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group5()
989 struct evsel *evsel, *leader; in test__group_gh1() local
995 evsel = leader = evlist__first(evlist); in test__group_gh1()
996 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh1()
998 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group_gh1()
999 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh1()
1000 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh1()
1001 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh1()
1002 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group_gh1()
1003 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh1()
1004 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh1()
1005 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group_gh1()
1006 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group_gh1()
1007 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh1()
1008 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group_gh1()
1011 evsel = evsel__next(evsel); in test__group_gh1()
1012 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh1()
1014 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__group_gh1()
1015 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh1()
1016 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh1()
1017 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh1()
1018 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh1()
1019 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh1()
1020 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh1()
1021 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group_gh1()
1022 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group_gh1()
1029 struct evsel *evsel, *leader; in test__group_gh2() local
1035 evsel = leader = evlist__first(evlist); in test__group_gh2()
1036 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh2()
1038 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group_gh2()
1039 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh2()
1040 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh2()
1041 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh2()
1042 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh2()
1043 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh2()
1044 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh2()
1045 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group_gh2()
1046 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group_gh2()
1047 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh2()
1048 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group_gh2()
1051 evsel = evsel__next(evsel); in test__group_gh2()
1052 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh2()
1054 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__group_gh2()
1055 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh2()
1056 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh2()
1057 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh2()
1058 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh2()
1059 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh2()
1060 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh2()
1061 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group_gh2()
1062 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group_gh2()
1069 struct evsel *evsel, *leader; in test__group_gh3() local
1075 evsel = leader = evlist__first(evlist); in test__group_gh3()
1076 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh3()
1078 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group_gh3()
1079 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh3()
1080 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh3()
1081 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh3()
1082 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh3()
1083 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh3()
1084 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh3()
1085 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group_gh3()
1086 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group_gh3()
1087 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh3()
1088 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group_gh3()
1091 evsel = evsel__next(evsel); in test__group_gh3()
1092 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh3()
1094 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__group_gh3()
1095 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh3()
1096 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh3()
1097 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh3()
1098 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group_gh3()
1099 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh3()
1100 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh3()
1101 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group_gh3()
1102 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group_gh3()
1109 struct evsel *evsel, *leader; in test__group_gh4() local
1115 evsel = leader = evlist__first(evlist); in test__group_gh4()
1116 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh4()
1118 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group_gh4()
1119 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh4()
1120 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh4()
1121 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh4()
1122 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh4()
1123 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh4()
1124 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh4()
1125 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group_gh4()
1126 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group_gh4()
1127 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh4()
1128 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group_gh4()
1131 evsel = evsel__next(evsel); in test__group_gh4()
1132 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh4()
1134 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__group_gh4()
1135 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh4()
1136 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh4()
1137 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh4()
1138 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh4()
1139 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh4()
1140 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh4()
1141 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group_gh4()
1142 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group_gh4()
1149 struct evsel *evsel, *leader; in test__leader_sample1() local
1154 evsel = leader = evlist__first(evlist); in test__leader_sample1()
1155 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample1()
1157 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__leader_sample1()
1158 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1159 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1160 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1161 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample1()
1162 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1163 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1164 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__leader_sample1()
1165 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__leader_sample1()
1166 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); in test__leader_sample1()
1169 evsel = evsel__next(evsel); in test__leader_sample1()
1170 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample1()
1172 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__leader_sample1()
1173 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1174 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1175 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1176 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample1()
1177 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1178 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1179 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__leader_sample1()
1180 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); in test__leader_sample1()
1183 evsel = evsel__next(evsel); in test__leader_sample1()
1184 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample1()
1186 PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); in test__leader_sample1()
1187 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1188 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1189 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1190 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample1()
1191 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1192 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1193 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__leader_sample1()
1194 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__leader_sample1()
1195 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); in test__leader_sample1()
1202 struct evsel *evsel, *leader; in test__leader_sample2() local
1207 evsel = leader = evlist__first(evlist); in test__leader_sample2()
1208 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample2()
1210 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__leader_sample2()
1211 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample2()
1212 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__leader_sample2()
1213 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__leader_sample2()
1214 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample2()
1215 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample2()
1216 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample2()
1217 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__leader_sample2()
1218 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__leader_sample2()
1219 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); in test__leader_sample2()
1222 evsel = evsel__next(evsel); in test__leader_sample2()
1223 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample2()
1225 PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); in test__leader_sample2()
1226 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample2()
1227 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__leader_sample2()
1228 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__leader_sample2()
1229 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample2()
1230 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample2()
1231 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample2()
1232 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__leader_sample2()
1233 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__leader_sample2()
1234 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); in test__leader_sample2()
1241 struct evsel *evsel = evlist__first(evlist); in test__checkevent_pinned_modifier() local
1243 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_pinned_modifier()
1244 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_pinned_modifier()
1245 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pinned_modifier()
1246 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_pinned_modifier()
1247 TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned); in test__checkevent_pinned_modifier()
1254 struct evsel *evsel, *leader; in test__pinned_group() local
1259 evsel = leader = evlist__first(evlist); in test__pinned_group()
1260 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__pinned_group()
1262 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__pinned_group()
1263 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__pinned_group()
1264 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__pinned_group()
1265 TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned); in test__pinned_group()
1268 evsel = evsel__next(evsel); in test__pinned_group()
1269 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__pinned_group()
1271 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__pinned_group()
1272 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__pinned_group()
1275 evsel = evsel__next(evsel); in test__pinned_group()
1277 PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); in test__pinned_group()
1278 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__pinned_group()
1285 struct evsel *evsel = evlist__first(evlist); in test__checkevent_exclusive_modifier() local
1287 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_exclusive_modifier()
1288 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_exclusive_modifier()
1289 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_exclusive_modifier()
1290 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_exclusive_modifier()
1291 TEST_ASSERT_VAL("wrong exclusive", evsel->core.attr.exclusive); in test__checkevent_exclusive_modifier()
1298 struct evsel *evsel, *leader; in test__exclusive_group() local
1303 evsel = leader = evlist__first(evlist); in test__exclusive_group()
1304 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__exclusive_group()
1306 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__exclusive_group()
1307 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__exclusive_group()
1308 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__exclusive_group()
1309 TEST_ASSERT_VAL("wrong exclusive", evsel->core.attr.exclusive); in test__exclusive_group()
1312 evsel = evsel__next(evsel); in test__exclusive_group()
1313 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__exclusive_group()
1315 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__exclusive_group()
1316 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__exclusive_group()
1319 evsel = evsel__next(evsel); in test__exclusive_group()
1321 PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); in test__exclusive_group()
1322 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__exclusive_group()
1328 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_len() local
1331 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_len()
1332 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_len()
1334 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len()
1336 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len()
1343 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_len_w() local
1346 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_len_w()
1347 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_len_w()
1349 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len_w()
1351 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len_w()
1359 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_len_rw_modifier() local
1361 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_len_rw_modifier()
1362 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_len_rw_modifier()
1363 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_len_rw_modifier()
1364 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_len_rw_modifier()
1371 struct evsel *evsel = evlist__first(evlist); in test__checkevent_precise_max_modifier() local
1374 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_precise_max_modifier()
1376 PERF_COUNT_SW_TASK_CLOCK == evsel->core.attr.config); in test__checkevent_precise_max_modifier()
1382 struct evsel *evsel = evlist__first(evlist); in test__checkevent_config_symbol() local
1384 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "insn") == 0); in test__checkevent_config_symbol()
1390 struct evsel *evsel = evlist__first(evlist); in test__checkevent_config_raw() local
1392 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "rawpmu") == 0); in test__checkevent_config_raw()
1398 struct evsel *evsel = evlist__first(evlist); in test__checkevent_config_num() local
1400 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "numpmu") == 0); in test__checkevent_config_num()
1406 struct evsel *evsel = evlist__first(evlist); in test__checkevent_config_cache() local
1408 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "cachepmu") == 0); in test__checkevent_config_cache()
1419 struct evsel *evsel = evlist__first(evlist); in test__intel_pt() local
1421 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "intel_pt//u") == 0); in test__intel_pt()
1427 struct evsel *evsel = evlist__first(evlist); in test__checkevent_complex_name() local
1429 …TEST_ASSERT_VAL("wrong complex name parsing", strcmp(evsel->name, "COMPLEX_CYCLES_NAME:orig=cycles… in test__checkevent_complex_name()
1435 struct evsel *evsel = evlist__first(evlist); in test__checkevent_raw_pmu() local
1438 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_raw_pmu()
1439 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__checkevent_raw_pmu()
1445 struct evsel *evsel = evlist__first(evlist); in test__sym_event_slash() local
1447 TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE); in test__sym_event_slash()
1448 TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES); in test__sym_event_slash()
1449 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__sym_event_slash()
1455 struct evsel *evsel = evlist__first(evlist); in test__sym_event_dc() local
1457 TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE); in test__sym_event_dc()
1458 TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES); in test__sym_event_dc()
1459 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__sym_event_dc()
1519 struct evsel *evsel = evlist__first(evlist); in test__hybrid_hw_event_with_pmu() local
1522 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_hw_event_with_pmu()
1523 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_hw_event_with_pmu()
1529 struct evsel *evsel, *leader; in test__hybrid_hw_group_event() local
1531 evsel = leader = evlist__first(evlist); in test__hybrid_hw_group_event()
1533 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_hw_group_event()
1534 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_hw_group_event()
1535 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_group_event()
1537 evsel = evsel__next(evsel); in test__hybrid_hw_group_event()
1538 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_hw_group_event()
1539 TEST_ASSERT_VAL("wrong config", 0xc0 == evsel->core.attr.config); in test__hybrid_hw_group_event()
1540 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_group_event()
1546 struct evsel *evsel, *leader; in test__hybrid_sw_hw_group_event() local
1548 evsel = leader = evlist__first(evlist); in test__hybrid_sw_hw_group_event()
1550 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__hybrid_sw_hw_group_event()
1551 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_sw_hw_group_event()
1553 evsel = evsel__next(evsel); in test__hybrid_sw_hw_group_event()
1554 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_sw_hw_group_event()
1555 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_sw_hw_group_event()
1556 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_sw_hw_group_event()
1562 struct evsel *evsel, *leader; in test__hybrid_hw_sw_group_event() local
1564 evsel = leader = evlist__first(evlist); in test__hybrid_hw_sw_group_event()
1566 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_hw_sw_group_event()
1567 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_hw_sw_group_event()
1568 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_sw_group_event()
1570 evsel = evsel__next(evsel); in test__hybrid_hw_sw_group_event()
1571 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__hybrid_hw_sw_group_event()
1572 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_sw_group_event()
1578 struct evsel *evsel, *leader; in test__hybrid_group_modifier1() local
1580 evsel = leader = evlist__first(evlist); in test__hybrid_group_modifier1()
1582 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_group_modifier1()
1583 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_group_modifier1()
1584 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_group_modifier1()
1585 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__hybrid_group_modifier1()
1586 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__hybrid_group_modifier1()
1588 evsel = evsel__next(evsel); in test__hybrid_group_modifier1()
1589 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_group_modifier1()
1590 TEST_ASSERT_VAL("wrong config", 0xc0 == evsel->core.attr.config); in test__hybrid_group_modifier1()
1591 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_group_modifier1()
1592 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__hybrid_group_modifier1()
1593 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__hybrid_group_modifier1()
1599 struct evsel *evsel = evlist__first(evlist); in test__hybrid_raw1() local
1603 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_raw1()
1604 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__hybrid_raw1()
1609 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_raw1()
1610 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__hybrid_raw1()
1613 evsel = evsel__next(evsel); in test__hybrid_raw1()
1614 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__hybrid_raw1()
1620 struct evsel *evsel = evlist__first(evlist); in test__hybrid_raw2() local
1623 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_raw2()
1624 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__hybrid_raw2()
1630 struct evsel *evsel = evlist__first(evlist); in test__hybrid_cache_event() local
1633 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type); in test__hybrid_cache_event()
1634 TEST_ASSERT_VAL("wrong config", 0x2 == (evsel->core.attr.config & 0xffffffff)); in test__hybrid_cache_event()
2258 struct evsel *evsel1 = evlist__first(evlist); in test__checkevent_pmu_events_alias()
2259 struct evsel *evsel2 = evlist__last(evlist); in test__checkevent_pmu_events_alias()