Lines Matching defs:event

85  * to hold the underlying perf event.
104 * kvm_pmu_idx_has_chain_evtype - determine if the event type is chain
149 * the value perf event counts.
194 /* Recreate the perf event to reflect the updated sample_period */
199 * kvm_pmu_release_perf_event - remove the perf event
216 * If this counter has been configured to monitor some event, release it here.
276 * kvm_pmu_vcpu_destroy - free perf event of PMU for cpu
306 * Call perf_event_enable to start counting the perf event
331 kvm_debug("fail to enable perf event\n");
341 * Call perf_event_disable to stop counting the perf event
454 * to the event.
469 * When the perf event overflows, set the overflow status and inform the vcpu.
594 * kvm_pmu_create_perf_event - create a perf event for a counter
602 struct perf_event *event;
607 * For chained counters the event type and filtering attributes are
609 * determine if the event is enabled/disabled.
623 /* Software increment event doesn't need to be backed by a perf event */
628 * If we have a filter in place and that the event isn't allowed, do
629 * not install a perf event either.
650 * The initial sample period (overflow count) of an event. For
657 event = perf_event_create_kernel_counter(&attr, -1, current,
661 /* The initial sample period (overflow count) of an event. */
667 event = perf_event_create_kernel_counter(&attr, -1, current,
671 if (IS_ERR(event)) {
672 pr_err_once("kvm: pmu event creation failed %ld\n",
673 PTR_ERR(event));
677 pmc->perf_event = event;
685 * Update the chained bitmap based on the event type written in the
706 * the adjacent counter is stopped and its event destroyed
716 * kvm_pmu_set_counter_event_type - set selected counter to monitor some event
722 * event with given hardware event number. Here we call perf_event API to
723 * emulate this action and create a kernel perf event for it.
746 struct perf_event *event;
751 * Create a dummy event that only counts user cycles. As we'll never
752 * leave this function with the event being live, it will never
767 event = perf_event_create_kernel_counter(&attr, -1, current,
770 if (IS_ERR(event)) {
771 pr_err_once("kvm: pmu event creation failed %ld\n",
772 PTR_ERR(event));
776 if (event->pmu) {
777 pmu = to_arm_pmu(event->pmu);
782 perf_event_disable(event);
783 perf_event_release_kernel(event);