pmu.c (63f21f326fc9e068d04c2c1d0a722e8db65588ba) | pmu.c (968635abd5f5986f3cb6f15602d365cf1b551c5d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Kernel-based Virtual Machine -- Performance Monitoring Unit support 4 * 5 * Copyright 2015 Red Hat, Inc. and/or its affiliates. 6 * 7 * Authors: 8 * Avi Kivity <avi@redhat.com> --- 10 unchanged lines hidden (view full) --- 19#include "x86.h" 20#include "cpuid.h" 21#include "lapic.h" 22#include "pmu.h" 23 24/* This is enough to filter the vast majority of currently defined events. */ 25#define KVM_PMU_EVENT_FILTER_MAX_EVENTS 300 26 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Kernel-based Virtual Machine -- Performance Monitoring Unit support 4 * 5 * Copyright 2015 Red Hat, Inc. and/or its affiliates. 6 * 7 * Authors: 8 * Avi Kivity <avi@redhat.com> --- 10 unchanged lines hidden (view full) --- 19#include "x86.h" 20#include "cpuid.h" 21#include "lapic.h" 22#include "pmu.h" 23 24/* This is enough to filter the vast majority of currently defined events. */ 25#define KVM_PMU_EVENT_FILTER_MAX_EVENTS 300 26 |
27struct x86_pmu_capability __read_mostly kvm_pmu_cap; 28EXPORT_SYMBOL_GPL(kvm_pmu_cap); 29 |
|
27/* NOTE: 28 * - Each perf counter is defined as "struct kvm_pmc"; 29 * - There are two types of perf counters: general purpose (gp) and fixed. 30 * gp counters are stored in gp_counters[] and fixed counters are stored 31 * in fixed_counters[] respectively. Both of them are part of "struct 32 * kvm_pmu"; 33 * - pmu.c understands the difference between gp counters and fixed counters. 34 * However AMD doesn't support fixed-counters; --- 608 unchanged lines hidden --- | 30/* NOTE: 31 * - Each perf counter is defined as "struct kvm_pmc"; 32 * - There are two types of perf counters: general purpose (gp) and fixed. 33 * gp counters are stored in gp_counters[] and fixed counters are stored 34 * in fixed_counters[] respectively. Both of them are part of "struct 35 * kvm_pmu"; 36 * - pmu.c understands the difference between gp counters and fixed counters. 37 * However AMD doesn't support fixed-counters; --- 608 unchanged lines hidden --- |