From: tixy@yxit.co.uk (Tixy)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 01/10] ARM: kprobes: Add config option for selecting the ARM kprobes tests
Date: Tue, 30 Aug 2011 08:16:50 +0100 [thread overview]
Message-ID: <1314688610.2371.12.camel@computer2> (raw)
In-Reply-To: <alpine.LFD.2.00.1108291431300.20358@xanadu.home>
On Mon, 2011-08-29 at 14:44 -0400, Nicolas Pitre wrote:
> On Mon, 29 Aug 2011, Tixy wrote:
>
> > From: Jon Medhurst <tixy@yxit.co.uk>
> >
> > Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
> > ---
> > arch/arm/Kconfig.debug | 10 ++++++++++
> > 1 files changed, 10 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> > index 81cbe40..8f95417 100644
> > --- a/arch/arm/Kconfig.debug
> > +++ b/arch/arm/Kconfig.debug
> > @@ -129,4 +129,14 @@ config DEBUG_S3C_UART
> > The uncompressor code port configuration is now handled
> > by CONFIG_S3C_LOWLEVEL_UART_PORT.
> >
> > +config ARM_KPROBES_TESTS
> > + bool
> > +
> > +config ARM_KPROBES_TEST_MODULE
> > + tristate "Kprobes test module"
> > + depends on KPROBES && MODULES
> > + select ARM_KPROBES_TESTS
> > + help
> > + "Perform tests of kprobes API and instruction set simulation"
> > +
>
> Why do you need two config symbols here? Isn't ARM_KPROBES_TEST_MODULE
> redundant?
When ARM_KPROBES_TEST_MODULE is configured for a stand-alone module,
rather than built-in, then
#ifdef CONFIG_ARM_KPROBES_TEST_MODULE
is false. I found other examples where people seemed to have gotten
around this by selecting a second config symbol and copied that. E.g.
FTRACE_STARTUP_TEST selects FTRACE_SELFTEST which is then used in #ifdef
statements.
Is there a better way? If not, I should explain this anyway in the
changelog.
--
Tixy
next prev parent reply other threads:[~2011-08-30 7:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-29 12:33 [PATCH 00/10] ARM: kprobes: Test code Tixy
2011-08-29 12:34 ` [PATCH 01/10] ARM: kprobes: Add config option for selecting the ARM kprobes tests Tixy
2011-08-29 18:44 ` Nicolas Pitre
2011-08-30 7:16 ` Tixy [this message]
2011-08-31 22:47 ` Nicolas Pitre
2011-09-01 7:15 ` Tixy
2011-08-29 12:34 ` [PATCH 02/10] ARM: kprobes: Add basic API tests Tixy
2011-08-29 12:34 ` [PATCH 03/10] ARM: kprobes: Framework for instruction set test cases Tixy
2011-08-29 12:34 ` [PATCH 04/10] ARM: kprobes: Add Thumb instruction simulation " Tixy
2011-08-29 12:34 ` [PATCH 05/10] ARM: kprobes: Add ARM " Tixy
2011-08-29 12:34 ` [PATCH 06/10] ARM: kprobes: Add exports for test code Tixy
2011-08-29 12:34 ` [PATCH 07/10] ARM: kprobes: Add decoding table self-consistency tests Tixy
2011-08-29 12:34 ` [PATCH 08/10] ARM: kprobes: Add decoding table test coverage analysis Tixy
2011-08-29 12:34 ` [PATCH 09/10] ARM: kprobes: Add some benchmarking to test module Tixy
2011-08-29 12:34 ` [PATCH 10/10] ARM: kprobes: Add introductory comment to test code Tixy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1314688610.2371.12.camel@computer2 \
--to=tixy@yxit.co.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).