From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: dccp@vger.kernel.org
Subject: Re: Monitoring DCCP: modprobe dccp_probe
Date: Wed, 28 May 2008 14:17:03 +0000 [thread overview]
Message-ID: <20080528141703.GF30251@ghostprotocols.net> (raw)
In-Reply-To: <483D424F.5020307@libero.it>
Em Wed, May 28, 2008 at 09:50:10AM -0300, Leandro Sales escreveu:
> On Wed, May 28, 2008 at 9:38 AM, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> > Quoting Giuseppe Galeota:
> >> Under General Setup I haven't found Kprobes, but I found Kprobes inside Instrumentation Support, and it is already active.
> >> About DCCP I can see only:
> >> Networking->Networking support->THE DCCP protocol->DCCP CCIDs
> >> configurations-->CCID2/3 debugging messages, that are already active,
> >> while I haven't found 'DCCP connection probing'.
> >>
> > This means that the dependency for dccp_probe is not satisfied.
> > The only other dependency of dccp_probe is CONFIG_PROC_FS, but this is
> > not normally off. Maybe if you are using non-x86 hardware there is a
> > problem with kprobes?
>
> Yes, this should be the point. For instance, I'm maintaining DCCP
> source code for maemo platform (ARM) that runs with 2.6.21 kernel
> version and they do not provide KProbes and for this case I had to
> make some internal changes to avoid dccp kprobes. As Gerrit said,
> check if kprobe dependencies are selected.
Since kprobes is not available everywhere and dccp_probe (and tcp_probe
for that matter) only hook into ->sendmsg, what about adding a:
DCCP_PROBE(sk);
in dccp_sendmsg and make it dependent on CONFIG_DCCP_PROBE, make it
check a sysctl_dccp_probe_enabled (/proc/sys/net/dccp/probe_enabled) and
if so, call the routine that is now installed via a jprobe.
With a bit more logic one could make this be a no-op on architectures
where kprobes is available and use the above idea when kprobes is not
present, be it because the arch doesn't have support for it or because
one don't want to have kprobes built-in to for some reason.
Leandro probably could do it quickly since he already seems to be using
such a scheme, no?
- Arnaldo
next prev parent reply other threads:[~2008-05-28 14:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-28 11:30 Monitoring DCCP: modprobe dccp_probe Giuseppe Galeota
2008-05-28 11:44 ` Gerrit Renker
2008-05-28 12:17 ` Giuseppe Galeota
2008-05-28 12:38 ` Gerrit Renker
2008-05-28 12:50 ` Leandro Sales
2008-05-28 13:12 ` Giuseppe Galeota
2008-05-28 14:07 ` Gerrit Renker
2008-05-28 14:17 ` Arnaldo Carvalho de Melo [this message]
2008-05-28 15:56 ` Gerrit Renker
2008-05-29 11:54 ` Giuseppe Galeota
2008-05-29 23:47 ` Leandro Sales
2008-05-30 8:35 ` Gerrit Renker
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=20080528141703.GF30251@ghostprotocols.net \
--to=acme@redhat.com \
--cc=dccp@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.