#include <linux/spinlock.h>
#include "iommu.h"
#include "perf.h"
static DEFINE_SPINLOCK(latency_lock);
bool dmar_latency_enabled(struct intel_iommu *iommu, enum latency_type type)
{ … }
int dmar_latency_enable(struct intel_iommu *iommu, enum latency_type type)
{ … }
void dmar_latency_disable(struct intel_iommu *iommu, enum latency_type type)
{ … }
void dmar_latency_update(struct intel_iommu *iommu, enum latency_type type, u64 latency)
{ … }
static char *latency_counter_names[] = …;
static char *latency_type_names[] = …;
int dmar_latency_snapshot(struct intel_iommu *iommu, char *str, size_t size)
{ … }