From: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
To: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org,
jkenisto@us.ibm.com, a.p.zijlstra@chello.nl, ananth@in.ibm.com,
anton@redhat.com, masami.hiramatsu.pt@hitachi.com,
acme@infradead.org, oleg@redhat.com, tglx@linutronix.de,
mingo@elte.hu, Benjamin Herrenschmidt <benh@au1.ibm.com>,
Josh Stone <jistone@redhat.com>
Cc: linux-tip-commits@vger.kernel.org
Subject: Re: [tip:perf/uprobes] uprobes/core: Clean up, refactor and improve the code
Date: Mon, 20 Feb 2012 11:38:25 +0530 [thread overview]
Message-ID: <20120220060825.GA22680@linux.vnet.ibm.com> (raw)
In-Reply-To: <tip-ewbwhb8o6navvllsauu7k07p@git.kernel.org>
>
> - remove unnecessary volatile
volatiles were added because of warnings thrown by gcc-4.6. Please see
below.
>
> - restructure comment blocks to make them more uniform and
> more readable in general
>
...
> diff --git a/arch/Kconfig b/arch/Kconfig
> index 284f589..cca5b54 100644
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -66,13 +66,19 @@ config OPTPROBES
> depends on !PREEMPT
>
> config UPROBES
> - bool "User-space probes (EXPERIMENTAL)"
> + bool "Transparent user-space probes (EXPERIMENTAL)"
> depends on ARCH_SUPPORTS_UPROBES
> default n
> help
> - Uprobes enables kernel subsystems to establish probepoints
> - in user applications and execute handler functions when
> - the probepoints are hit.
> + Uprobes is the user-space counterpart to kprobes: they
> + enable instrumentation applications (such as 'perf probe')
> + to establish unintrusive probes in user-space binaries and
> + libraries, by executing handler functions when the probes
> + are hit by user-space applications.
> +
> + ( These probes come in the form of single-byte breakpoints,
One nit: In some architectures like powerpc, the breakpoints arent
single-byte.
> + managed by the kernel and kept transparent to the probed
> + application. )
>
> If in doubt, say "N".
>
>
> #ifdef CONFIG_X86_64
> -static volatile u32 good_insns_64[256 / 32] = {
> +static u32 good_insns_64[256 / 32] = {
The volatiles were added to arch/x86/kernel/kprobes.c because of commit
7115e3fcf45 and 315eb8a2a1b. The volatiles are required because gcc 4.6
gave a warning about the asm operand for test_bit. So the same were
added to arch/x86/kernel/uprobes.c.
--
Thanks and Regards
Srikar
next prev parent reply other threads:[~2012-02-20 6:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-17 9:59 [tip:perf/uprobes] uprobes/core: Clean up, refactor and improve the code tip-bot for Ingo Molnar
2012-02-17 10:49 ` Ingo Molnar
2012-02-20 9:25 ` Srikar Dronamraju
2012-02-20 10:50 ` Ingo Molnar
2012-02-20 6:08 ` Srikar Dronamraju [this message]
2012-02-20 7:38 ` Ingo Molnar
2012-02-20 10:13 ` Srikar Dronamraju
2012-02-20 10:51 ` Ingo Molnar
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=20120220060825.GA22680@linux.vnet.ibm.com \
--to=srikar@linux.vnet.ibm.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@infradead.org \
--cc=ananth@in.ibm.com \
--cc=anton@redhat.com \
--cc=benh@au1.ibm.com \
--cc=hpa@zytor.com \
--cc=jistone@redhat.com \
--cc=jkenisto@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=oleg@redhat.com \
--cc=tglx@linutronix.de \
/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