linux/drivers/iommu/intel/perf.c

// SPDX-License-Identifier: GPL-2.0
/*
 * perf.c - performance monitor
 *
 * Copyright (C) 2021 Intel Corporation
 *
 * Author: Lu Baolu <[email protected]>
 *         Fenghua Yu <[email protected]>
 */

#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)
{}