Lines Matching defs:events

15 // A note on terminology: "events" vs "counters": A "counter" is an
16 // "event", but some events are not counters. Internally, we use the
83 // There's only a few misc events, and they're non-homogenous,
88 #include <lib/zircon-internal/device/cpu-trace/skylake-misc-events.inc>
91 // h/w address of misc events.
95 #include <lib/zircon-internal/device/cpu-trace/skylake-misc-events.inc>
159 #include <lib/zircon-internal/device/cpu-trace/skylake-misc-events.inc>
219 // The number of "miscellaneous" events we can handle at once.
244 // We can't reset the events, and even if we could it's preferable to
315 // The ids for each of the in-use events, or zero if not used.
324 uint64_t events[IPM_MAX_PROGRAMMABLE_COUNTERS] = {};
522 #include <lib/zircon-internal/device/cpu-trace/intel-pm-events.inc>
693 TRACEF("Active fixed events not front-filled\n");
743 TRACEF("Active programmable events not front-filled\n");
798 TRACEF("Active misc events not front-filled\n");
816 // Currently we only support the MCHBAR events.
831 #include <lib/zircon-internal/device/cpu-trace/skylake-misc-events.inc>
942 static_assert(sizeof(state->events) ==
944 memcpy(state->events, config->programmable_events, sizeof(state->events));
961 // All misc events currently come from MCHBAR.
966 #include <lib/zircon-internal/device/cpu-trace/skylake-misc-events.inc>
975 // events, but they're not mapped in yet.
1475 write_msr(IA32_PERFEVTSEL_FIRST + i, state->events[i]);
1544 // and write the difference out. For non-interrupt triggering events
1582 // Misc events are currently all non-cpu-specific.
1826 // Now handle events that have IPM_CONFIG_FLAG_TIMEBASE set.
1854 // Misc events are currently all non-cpu-specific. We have a