Re: [patch 2/4] Add ARCH_SUPPORTS_OPROFILE





In the arch specific Kconfig file in a suitable place do:

config SUITABLE_OPTION

Since config KPROBES will already be used in the architecture
independent Kconfig, I should find a different name for "config
SUITABLE_OPTION". Would

config KPROBES_SUPPORT
select ARCH_HAS_KPROBES

be ok ?

I should have been more specific here.

We do NOT want a dedicated config symbol just for this.
For x86 use X86
For arm use ARM
For sparc64 use SPARC64
For sparc use SPARC32

etc. you get the picture.

For x86 (where I spend a fair amount of time recently)
there are several candidates to be moved to such a select
list.
Only reason not to do it then was to keep changes minimal.

It would look like this:

config X86
select ARCH_HAS_KPROBES # yada yada
select ARCH_HAS_FOO # more yada yada

If you select an undefined symbol kconfig will warn you so keep
an eye out for this (among all the other warnings kconfig spits out).

arm uses this for the different boards as a good example.
But they do not have the common-prefix rule in place.

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



Relevant Pages

  • CONFIG_64_BIT
    ... retrieving revision 1.3 ... diff -u -p -r1.3 Kconfig ... config MMU ...
    (Linux-Kernel)
  • Re: [PATCH/RFC] kconfig hints/tips/tricks
    ... Add a section on kconfig hints: how to do in Kconfig files. ... -Most entries define a config option, all other entries help to organize ...
    (Linux-Kernel)
  • [PATCH 00/15] [GIT PULL] kconfig: localmodconfig for v2.6.32
    ... This is the patch set that creates localmodconfig and localyesconfig. ... Just download the latest kernel.org kernel ... Once it finds a config to use, it will then read all the Kconfigs ... Please pull kconfig updates for v2.6.32 from: ...
    (Linux-Kernel)
  • Re: [PATCH] make miniconfig (take 2)
    ... as it requires some kconfig hacking. ... unrecognized symbol, it would already generate a warning, and if the warning ... > To further reduce the config size one could look at the dependecies, ... Going from .config to miniconfig for my laptop's kernel, for example, goes ...
    (Linux-Kernel)
  • Re: [GIT PATCH] SCSI updates for 2.6.25
    ... for no readily apparent reason (at least until you read the Kconfig ... so primary features are allowed to select ... behaviour depending on totally unrelated config options. ... That's why we have initrd and ramdisks etc. ...
    (Linux-Kernel)