2008-06-09 22:36:24

by Stephane Eranian

[permalink] [raw]
Subject: [patch 06/21] perfmon2 minimal: X86 generic hooks

This patch adds the generic X86 hooks to support perfmon2.
And in particular the Makefile and header file export.

Signed-off-by: Stephane Eranian <[email protected]>
--

Index: o/arch/x86/Makefile
===================================================================
--- o.orig/arch/x86/Makefile 2008-06-02 18:53:33.000000000 +0200
+++ o/arch/x86/Makefile 2008-06-02 18:54:41.000000000 +0200
@@ -176,6 +176,8 @@
core-y += arch/x86/kernel/
core-y += arch/x86/mm/

+core-$(CONFIG_PERFMON) += arch/x86/perfmon/
+
# Remaining sub architecture files
core-y += $(mcore-y)

Index: o/include/asm-x86/Kbuild
===================================================================
--- o.orig/include/asm-x86/Kbuild 2008-06-02 18:53:33.000000000 +0200
+++ o/include/asm-x86/Kbuild 2008-06-02 18:54:41.000000000 +0200
@@ -11,6 +11,7 @@
header-y += sigcontext32.h
header-y += ucontext.h
header-y += processor-flags.h
+header-y += perfmon.h

unifdef-y += e820.h
unifdef-y += ist.h
Index: o/arch/x86/Kconfig
===================================================================
--- o.orig/arch/x86/Kconfig 2008-06-02 18:53:33.000000000 +0200
+++ o/arch/x86/Kconfig 2008-06-02 18:54:41.000000000 +0200
@@ -1306,6 +1306,8 @@

If unsure, say Y.

+source "arch/x86/perfmon/Kconfig"
+
endmenu

config ARCH_ENABLE_MEMORY_HOTPLUG

--


2008-06-15 01:25:47

by Stephen Rothwell

[permalink] [raw]
Subject: Re: [patch 06/21] perfmon2 minimal: X86 generic hooks

Hi Stephane,

On Mon, 09 Jun 2008 15:33:58 -0700 (PDT) [email protected] wrote:
>
> +++ o/arch/x86/Makefile 2008-06-02 18:54:41.000000000 +0200
> @@ -176,6 +176,8 @@
> core-y += arch/x86/kernel/
> core-y += arch/x86/mm/
>
> +core-$(CONFIG_PERFMON) += arch/x86/perfmon/

Again, this needs to come after some code is added to arch/x86/perfmon/
so that bisections still work.

> +++ o/include/asm-x86/Kbuild 2008-06-02 18:54:41.000000000 +0200
> @@ -11,6 +11,7 @@
> header-y += sigcontext32.h
> header-y += ucontext.h
> header-y += processor-flags.h
> +header-y += perfmon.h

And this bit should go in the patch that adds that file.

> +++ o/arch/x86/Kconfig 2008-06-02 18:54:41.000000000 +0200
> @@ -1306,6 +1306,8 @@
>
> If unsure, say Y.
>
> +source "arch/x86/perfmon/Kconfig"

Same here.

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (913.00 B)
(No filename) (197.00 B)
Download all attachments

2008-06-16 16:26:44

by Stephane Eranian

[permalink] [raw]
Subject: Re: [patch 06/21] perfmon2 minimal: X86 generic hooks

Stephen,

Ok, I will fold those chunks into the patch that adds the files,
i.e., perfmon-x86.diff

Thanks.


On Sun, Jun 15, 2008 at 3:25 AM, Stephen Rothwell <[email protected]> wrote:
> Hi Stephane,
>
> On Mon, 09 Jun 2008 15:33:58 -0700 (PDT) [email protected] wrote:
>>
>> +++ o/arch/x86/Makefile 2008-06-02 18:54:41.000000000 +0200
>> @@ -176,6 +176,8 @@
>> core-y += arch/x86/kernel/
>> core-y += arch/x86/mm/
>>
>> +core-$(CONFIG_PERFMON) += arch/x86/perfmon/
>
> Again, this needs to come after some code is added to arch/x86/perfmon/
> so that bisections still work.
>
>> +++ o/include/asm-x86/Kbuild 2008-06-02 18:54:41.000000000 +0200
>> @@ -11,6 +11,7 @@
>> header-y += sigcontext32.h
>> header-y += ucontext.h
>> header-y += processor-flags.h
>> +header-y += perfmon.h
>
> And this bit should go in the patch that adds that file.
>
>> +++ o/arch/x86/Kconfig 2008-06-02 18:54:41.000000000 +0200
>> @@ -1306,6 +1306,8 @@
>>
>> If unsure, say Y.
>>
>> +source "arch/x86/perfmon/Kconfig"
>
> Same here.
>
> --
> Cheers,
> Stephen Rothwell [email protected]
> http://www.canb.auug.org.au/~sfr/
>