linux/arch/x86/events/intel/p6.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/perf_event.h>
#include <linux/types.h>

#include "../perf_event.h"

/*
 * Not sure about some of these
 */
static const u64 p6_perfmon_event_map[] =;

static const u64 __initconst p6_hw_cache_event_ids
				[PERF_COUNT_HW_CACHE_MAX]
				[PERF_COUNT_HW_CACHE_OP_MAX]
				[PERF_COUNT_HW_CACHE_RESULT_MAX] =;

static u64 p6_pmu_event_map(int hw_event)
{}

/*
 * Event setting that is specified not to count anything.
 * We use this to effectively disable a counter.
 *
 * L2_RQSTS with 0 MESI unit mask.
 */
#define P6_NOP_EVENT

static struct event_constraint p6_event_constraints[] =;

static void p6_pmu_disable_all(void)
{}

static void p6_pmu_enable_all(int added)
{}

static inline void
p6_pmu_disable_event(struct perf_event *event)
{}

static void p6_pmu_enable_event(struct perf_event *event)
{}

PMU_FORMAT_ATTR();
PMU_FORMAT_ATTR();
PMU_FORMAT_ATTR();
PMU_FORMAT_ATTR();
PMU_FORMAT_ATTR();
PMU_FORMAT_ATTR();

static struct attribute *intel_p6_formats_attr[] =;

static __initconst const struct x86_pmu p6_pmu =;

static __init void p6_pmu_rdpmc_quirk(void)
{}

__init int p6_pmu_init(void)
{}