linux/drivers/perf/marvell_cn10k_tad_pmu.c

// SPDX-License-Identifier: GPL-2.0
/* Marvell CN10K LLC-TAD perf driver
 *
 * Copyright (C) 2021 Marvell
 */

#define pr_fmt(fmt)

#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/cpuhotplug.h>
#include <linux/perf_event.h>
#include <linux/platform_device.h>
#include <linux/acpi.h>

#define TAD_PFC_OFFSET
#define TAD_PFC(counter)
#define TAD_PRF_OFFSET
#define TAD_PRF(counter)
#define TAD_PRF_CNTSEL_MASK
#define TAD_MAX_COUNTERS

#define to_tad_pmu(p)

struct tad_region {};

struct tad_pmu {};

static int tad_pmu_cpuhp_state;

static void tad_pmu_event_counter_read(struct perf_event *event)
{}

static void tad_pmu_event_counter_stop(struct perf_event *event, int flags)
{}

static void tad_pmu_event_counter_start(struct perf_event *event, int flags)
{}

static void tad_pmu_event_counter_del(struct perf_event *event, int flags)
{}

static int tad_pmu_event_counter_add(struct perf_event *event, int flags)
{}

static int tad_pmu_event_init(struct perf_event *event)
{}

static ssize_t tad_pmu_event_show(struct device *dev,
				struct device_attribute *attr, char *page)
{}

#define TAD_PMU_EVENT_ATTR(name, config)

static struct attribute *tad_pmu_event_attrs[] =;

static const struct attribute_group tad_pmu_events_attr_group =;

PMU_FORMAT_ATTR();

static struct attribute *tad_pmu_format_attrs[] =;

static struct attribute_group tad_pmu_format_attr_group =;

static ssize_t tad_pmu_cpumask_show(struct device *dev,
				struct device_attribute *attr, char *buf)
{}

static DEVICE_ATTR(cpumask, 0444, tad_pmu_cpumask_show, NULL);

static struct attribute *tad_pmu_cpumask_attrs[] =;

static struct attribute_group tad_pmu_cpumask_attr_group =;

static const struct attribute_group *tad_pmu_attr_groups[] =;

static int tad_pmu_probe(struct platform_device *pdev)
{}

static void tad_pmu_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_OF
static const struct of_device_id tad_pmu_of_match[] =;
#endif

#ifdef CONFIG_ACPI
static const struct acpi_device_id tad_pmu_acpi_match[] =;
MODULE_DEVICE_TABLE(acpi, tad_pmu_acpi_match);
#endif

static struct platform_driver tad_pmu_driver =;

static int tad_pmu_offline_cpu(unsigned int cpu, struct hlist_node *node)
{}

static int __init tad_pmu_init(void)
{}

static void __exit tad_pmu_exit(void)
{}

module_init();
module_exit(tad_pmu_exit);

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();