This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH 0/4 update] Linux Kernel Markers - i386 : pIII erratum 49 : XMC
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Mathieu Desnoyers <compudj at krystal dot dyndns dot org>
- Cc: Richard J Moore <richardj_moore at uk dot ibm dot com>, Andrew Morton <akpm at osdl dot org>, Greg Kroah-Hartman <gregkh at suse dot de>, linux-kernel at vger dot kernel dot org, "Martin J. Bligh" <mbligh at mbligh dot org>, Christoph Hellwig <hch at infradead dot org>, Douglas Niehaus <niehaus at eecs dot ku dot edu>, Ingo Molnar <mingo at redhat dot com>, ltt-dev at shafik dot org, systemtap at sources dot redhat dot com, Thomas Gleixner <tglx at linutronix dot de>
- Date: 16 Jan 2007 13:35:21 -0500
- Subject: Re: [PATCH 0/4 update] Linux Kernel Markers - i386 : pIII erratum 49 : XMC
- References: <20070113054534.GA27017@Krystal> <20070116174158.GA16084@Krystal>
Mathieu Desnoyers <compudj@krystal.dyndns.org> writes:
> [...]
> It would be nice to push the study of the kprobes debug trap handler so it can
> become possible to use it to put breakpoints in trap handlers. For now, kprobes
> refuses to insert breakpoints in __kprobes marked functions. However, as we
> instrument specific spots of the functions (not necessarily the function entry),
> it is sometimes correct to use kprobes on a marker within the function even if
> it is not correct to use it in the prologue. [...]
It may help to note that the issue with __kprobes attributes is
separate from putting probes in the prologue vs. elsewhere. The
__kprobes functions are so marked because they can cause infinite
regress if probed. Examples are fault handlers that would service
vmalloc-related faults, and some other functions unavoidably callable
from early probe handling context. Over time, the list has shrunk.
Indeed, __kprobes marking is a conservative measure, in that there may
be spots in such functions that are immune from recursion hazards.
But so far, we haven't encountered enough examples of this to warrant
refining this blacklist somehow.
- FChE