Re: [PATCH 3/8] perf, tools: Automatically look for event file name for cpu

From: Jiri Olsa
Date: Tue Mar 11 2014 - 09:38:32 EST


On Wed, Mar 05, 2014 at 11:49:33AM -0800, Andi Kleen wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>

SNIP

>
> diff --git a/tools/perf/arch/x86/Makefile b/tools/perf/arch/x86/Makefile
> index 1641542..0efeb14 100644
> --- a/tools/perf/arch/x86/Makefile
> +++ b/tools/perf/arch/x86/Makefile
> @@ -14,4 +14,5 @@ LIB_OBJS += $(OUTPUT)arch/$(ARCH)/tests/dwarf-unwind.o
> endif
> LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/header.o
> LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/tsc.o
> +LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/cpustr.o
> LIB_H += arch/$(ARCH)/util/tsc.h
> diff --git a/tools/perf/arch/x86/util/cpustr.c b/tools/perf/arch/x86/util/cpustr.c
> new file mode 100644
> index 0000000..0fb987a
> --- /dev/null
> +++ b/tools/perf/arch/x86/util/cpustr.c
> @@ -0,0 +1,35 @@
> +#define _GNU_SOURCE 1

_GNU_SOURCE is defined by default

jirka
--
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/