Home | History | Annotate | Download | only in ebb

Lines Matching refs:event

18  * Tests a pinned cpu event vs an EBB - in that order. The pinned cpu event
19 * should remain and the EBB event should fail to enable.
22 static int setup_cpu_event(struct event *event, int cpu)
24 event_init_named(event, 0x400FA, "PM_RUN_INST_CMPL");
26 event->attr.pinned = 1;
28 event->attr.exclude_kernel = 1;
29 event->attr.exclude_hv = 1;
30 event->attr.exclude_idle = 1;
33 FAIL_IF(event_open_with_cpu(event, cpu));
34 FAIL_IF(event_enable(event));
42 struct event event;
61 /* We setup the cpu event first */
62 rc = setup_cpu_event(&event, cpu);
68 /* Signal the child to install its EBB event and wait */
77 /* We expect it to fail to read the event */
80 FAIL_IF(event_disable(&event));
81 FAIL_IF(event_read(&event));
83 event_report(&event);
85 /* The cpu event should have run */
86 FAIL_IF(event.result.value == 0);
87 FAIL_IF(event.result.enabled != event.result.running);