From: "Frank Ch. Eigler" <fche@redhat.com>
To: Jovi Zhang <bookjovi@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] ktap: Another dynamic tracing tool for Linux
Date: Fri, 4 Jan 2013 10:19:50 -0500 [thread overview]
Message-ID: <20130104151950.GB21860@redhat.com> (raw)
In-Reply-To: <CACV3sbKk3euv8N4SbBegJ=iYuUxfdynZ_1GNtfkwGzwGDcqATw@mail.gmail.com>
Hi -
bookjovi wrote:
> >> [...]
> >> ktap use lua language syntax and bytecode as initial implementation,
> >
> > Interesting approach. I recall we considered it way back when, but
> > rejected it for a couple of reasons, including the at-the-time
> > perceived unwelcomeness of a serious bytecode interpreter within the
> > kernel.
> [...] Obviously, the bytecode design is the biggest differences
> with systemtap. [...] many Linux box doesn't deliver with gcc,
> this is very common in embedded device, even there installed gcc,
> but it's hard(impossible) to get matched kernel source. [...]
Right, that is a strong attraction.
> [...] On clear that, ktap is not a replacement to systemtap, it's
> supplementation.
FWIW, it would be reasonable to have systemtap emit bytecodes as an
alternative backend. All that has been lacking is a powerful and
pervasive enough interpreter. The script language is not tied to its
implementation via C code generation.
That reminds me of your item #4 on your ktap-systemtap comparison:
> 4). ktap is safe, whatever you doing in script file, you will never
> crash your kernel.
This is roughly as true for systemtap as for anything else. The
scripts are constrainted to be safe. Kernel crashes that occur are
due to occasional bugs in the systemtap runtime library, or down in
the kernel facilities being used. You would likely encounter both
classes of problems in a kernel-side bytecode interpreter, regardless
of the theoretical safety of the scripting language. (This is one of
the reasons we've been building out the pure-userspace dyninst-based
systemtap backend.)
> I will try to make ktap develop progress more faster, and make ktap
> source code public available soon.
Yes, please. (RFC/experimental code need not be complete before
posting; why not develop straight on github?)
- FChE
next prev parent reply other threads:[~2013-01-04 15:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-31 3:32 [RFC] ktap: Another dynamic tracing tool for Linux Jovi Zhang
2012-12-31 18:58 ` Frank Ch. Eigler
2013-01-04 8:13 ` Jovi Zhang
2013-01-04 15:19 ` Frank Ch. Eigler [this message]
2013-01-18 1:24 ` Jovi Zhang
2013-01-18 3:35 ` Frank Ch. Eigler
2013-01-18 4:02 ` Jovi Zhang
[not found] <917750116.79371357913957820.JavaMail.root@srv11.zimbra.polymtl.ca>
[not found] ` <422821122.79411357913979039.JavaMail.root@srv11.zimbra.polymtl.ca>
2013-01-13 3:50 ` Jovi Zhang
[not found] <68461756.264831358192004350.JavaMail.root@srv11.zimbra.polymtl.ca>
2013-01-14 19:39 ` Michel Dagenais
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=20130104151950.GB21860@redhat.com \
--to=fche@redhat.com \
--cc=bookjovi@gmail.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox