perf/x86: Move perf_event.h to its new home

Now that all functionality has been moved to arch/x86/events/, move the
perf_event.h header and adjust include paths.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/1455098123-11740-18-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
Borislav Petkov 2016-02-10 10:55:23 +01:00 коммит произвёл Ingo Molnar
Родитель 65a27a3510
Коммит 27f6d22b03
18 изменённых файлов: 17 добавлений и 17 удалений

Просмотреть файл

@ -5,7 +5,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <asm/apicdef.h> #include <asm/apicdef.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
static __initconst const u64 amd_hw_cache_event_ids static __initconst const u64 amd_hw_cache_event_ids
[PERF_COUNT_HW_CACHE_MAX] [PERF_COUNT_HW_CACHE_MAX]

Просмотреть файл

@ -14,7 +14,7 @@
#include <asm/apic.h> #include <asm/apic.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
static u32 ibs_caps; static u32 ibs_caps;

Просмотреть файл

@ -16,7 +16,7 @@
#include <linux/cpumask.h> #include <linux/cpumask.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
#include "iommu.h" #include "iommu.h"
#define COUNTER_SHIFT 16 #define COUNTER_SHIFT 16

Просмотреть файл

@ -37,7 +37,7 @@
#include <asm/desc.h> #include <asm/desc.h>
#include <asm/ldt.h> #include <asm/ldt.h>
#include "../kernel/cpu/perf_event.h" #include "perf_event.h"
struct x86_pmu x86_pmu __read_mostly; struct x86_pmu x86_pmu __read_mostly;

Просмотреть файл

@ -26,7 +26,7 @@
#include <asm-generic/sizes.h> #include <asm-generic/sizes.h>
#include <asm/perf_event.h> #include <asm/perf_event.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
struct bts_ctx { struct bts_ctx {
struct perf_output_handle handle; struct perf_output_handle handle;

Просмотреть файл

@ -18,7 +18,7 @@
#include <asm/hardirq.h> #include <asm/hardirq.h>
#include <asm/apic.h> #include <asm/apic.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
/* /*
* Intel PerfMon, used on Core and later. * Intel PerfMon, used on Core and later.

Просмотреть файл

@ -7,7 +7,7 @@
#include <linux/perf_event.h> #include <linux/perf_event.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <asm/cpu_device_id.h> #include <asm/cpu_device_id.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
#define MSR_IA32_PQR_ASSOC 0x0c8f #define MSR_IA32_PQR_ASSOC 0x0c8f
#define MSR_IA32_QM_CTR 0x0c8e #define MSR_IA32_QM_CTR 0x0c8e

Просмотреть файл

@ -89,7 +89,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/perf_event.h> #include <linux/perf_event.h>
#include <asm/cpu_device_id.h> #include <asm/cpu_device_id.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
#define DEFINE_CSTATE_FORMAT_ATTR(_var, _name, _format) \ #define DEFINE_CSTATE_FORMAT_ATTR(_var, _name, _format) \
static ssize_t __cstate_##_var##_show(struct kobject *kobj, \ static ssize_t __cstate_##_var##_show(struct kobject *kobj, \

Просмотреть файл

@ -5,7 +5,7 @@
#include <asm/perf_event.h> #include <asm/perf_event.h>
#include <asm/insn.h> #include <asm/insn.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
/* The size of a BTS record in bytes: */ /* The size of a BTS record in bytes: */
#define BTS_RECORD_SIZE 24 #define BTS_RECORD_SIZE 24

Просмотреть файл

@ -5,7 +5,7 @@
#include <asm/hardirq.h> #include <asm/hardirq.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
static const u64 knc_perfmon_event_map[] = static const u64 knc_perfmon_event_map[] =
{ {

Просмотреть файл

@ -5,7 +5,7 @@
#include <asm/msr.h> #include <asm/msr.h>
#include <asm/insn.h> #include <asm/insn.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
enum { enum {
LBR_FORMAT_32 = 0x00, LBR_FORMAT_32 = 0x00,

Просмотреть файл

@ -13,7 +13,7 @@
#include <asm/hardirq.h> #include <asm/hardirq.h>
#include <asm/apic.h> #include <asm/apic.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
#define P4_CNTR_LIMIT 3 #define P4_CNTR_LIMIT 3
/* /*

Просмотреть файл

@ -1,7 +1,7 @@
#include <linux/perf_event.h> #include <linux/perf_event.h>
#include <linux/types.h> #include <linux/types.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
/* /*
* Not sure about some of these * Not sure about some of these

Просмотреть файл

@ -29,7 +29,7 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/intel_pt.h> #include <asm/intel_pt.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
#include "pt.h" #include "pt.h"
static DEFINE_PER_CPU(struct pt, pt_ctx); static DEFINE_PER_CPU(struct pt, pt_ctx);

Просмотреть файл

@ -48,7 +48,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/perf_event.h> #include <linux/perf_event.h>
#include <asm/cpu_device_id.h> #include <asm/cpu_device_id.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
/* /*
* RAPL energy status counters * RAPL energy status counters

Просмотреть файл

@ -2,7 +2,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/perf_event.h> #include <linux/perf_event.h>
#include "../../kernel/cpu/perf_event.h" #include "../perf_event.h"
#define UNCORE_PMU_NAME_LEN 32 #define UNCORE_PMU_NAME_LEN 32
#define UNCORE_PMU_HRTIMER_INTERVAL (60LL * NSEC_PER_SEC) #define UNCORE_PMU_HRTIMER_INTERVAL (60LL * NSEC_PER_SEC)

Просмотреть файл

Просмотреть файл

@ -11,7 +11,7 @@
#include "pmu.h" #include "pmu.h"
/* x86_pmu.handle_irq definition */ /* x86_pmu.handle_irq definition */
#include "../kernel/cpu/perf_event.h" #include "../events/perf_event.h"
#define XENPMU_IRQ_PROCESSING 1 #define XENPMU_IRQ_PROCESSING 1
struct xenpmu { struct xenpmu {