Re: [patch] Performance Counters for Linux, v5
From: KOSAKI Motohiro
Date: Thu Dec 25 2008 - 02:29:34 EST
Hi Ingo,
Currently, -tip tree can't build on my ia64 box.
because..
> create mode 100644 Documentation/perf-counters.txt
> delete mode 100644 arch/x86/include/asm/intel_arch_perfmon.h
> create mode 100644 arch/x86/include/asm/perf_counter.h
> create mode 100644 arch/x86/kernel/cpu/perf_counter.c
> rename arch/x86/kernel/{signal_32.c => signal.c} (74%)
> delete mode 100644 arch/x86/kernel/signal_64.c
> create mode 100644 include/linux/perf_counter.h
> create mode 100644 kernel/perf_counter.c
Only x86 has <asm/perf_counter.h>.
> diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
> new file mode 100644
> index 0000000..ec77d16
> --- /dev/null
> +++ b/include/linux/perf_counter.h
> @@ -0,0 +1,254 @@
> +/*
> + * Performance counters:
> + *
> + * Copyright(C) 2008, Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> + * Copyright(C) 2008, Red Hat, Inc., Ingo Molnar
> + *
> + * Data type definitions, declarations, prototypes.
> + *
> + * Started by: Thomas Gleixner and Ingo Molnar
> + *
> + * For licencing details see kernel-base/COPYING
> + */
> +#ifndef _LINUX_PERF_COUNTER_H
> +#define _LINUX_PERF_COUNTER_H
> +
> +#include <asm/atomic.h>
> +#include <asm/perf_counter.h>
> +
<linux/perf_counter.h> depend on <asm/perf_counter.h>.
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index 55e30d1..2e15be8 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -71,6 +71,7 @@ struct sched_param {
> #include <linux/fs_struct.h>
> #include <linux/compiler.h>
> #include <linux/completion.h>
> +#include <linux/perf_counter.h>
> #include <linux/pid.h>
> #include <linux/percpu.h>
> #include <linux/topology.h>
<linux/sched.h> depend on <linux/perf_counter.h>
Oops, sched.h depend on <asm/perf_counter.h>, but non x86 doesn't have it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/