From: Ingo Molnar <mingo@kernel.org>
To: Jovi Zhangwei <jovi.zhangwei@gmail.com>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"zhangwei(Jovi)" <jovi.zhangwei@huawei.com>,
"Frédéric Weisbecker" <fweisbec@gmail.com>,
"Peter Zijlstra" <a.p.zijlstra@chello.nl>,
"Arnaldo Carvalho de Melo" <acme@infradead.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Steven Rostedt" <rostedt@goodmis.org>,
"Linus Torvalds" <torvalds@linux-foundation.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
"Tom Zanussi" <tom.zanussi@linux.intel.com>,
"Namhyung Kim" <namhyung@kernel.org>,
"David Ahern" <dsahern@gmail.com>, "Jiri Olsa" <jolsa@redhat.com>,
"Masami Hiramatsu" <masami.hiramatsu.pt@hitachi.com>
Subject: Re: ktap inclusion in drivers/staging/?
Date: Fri, 25 Oct 2013 12:15:11 +0200 [thread overview]
Message-ID: <20131025101511.GB3439@gmail.com> (raw)
In-Reply-To: <CAGdX0WFu=sxWUckkZiUQMTxo_tOFbxX-paqU2p_5YR8NaN6gSA@mail.gmail.com>
* Jovi Zhangwei <jovi.zhangwei@gmail.com> wrote:
> Hi Ingo,
>
> On Thu, Oct 24, 2013 at 3:58 PM, Ingo Molnar <mingo@kernel.org> wrote:
> >
> > Greg,
> >
> > I was surprised to see 'ktap' appear in the staging tree silently,
> > via these commits that are visible in today's staging-next:
> >
> > 2c856b9e3e06 staging: ktap: remove unused <asm/syscall.h> header file
> > 687b63a3bfd5 staging: ktap: update email name in MAINTAINERS
> > c63a164271f8 staging: ktap: add to the kernel tree
> >
> > ktap is pretty fresh instrumentation code, announced on lkml a
> > couple of months ago, and so far I haven't seen much technical
> > discussion of integrating ktap upstream, mostly I suspect because
> > not a _single_ patch was sent to linux-kernel for review. (!)
> >
> I accept Greg revert this in staging-next tree, It's entirely my fault, sorry.
Thanks!
> > An announcement of a Git tree was made (which Git tree is not very
> > structured), and some very minimal discussion ensued, but no actual
> > patches were sent with an intent to merge, no technical arguments
> > were made in favor of merging and nothing conclusive was achieved.
> >
> > A couple of very quick (and incomplete) technical objections:
> >
> > - The Git commits in staging an absolutely unstructured,
> > unreviewable mess, due to a single commit adding 16 KLOCs (!) of
> > code:
> >
> > 80 files changed, 16376 insertions(+)
> >
> > (I looked at the ktap Git tree as well, it's not much better.)
> >
> > - Most of the kernel code comes with near zero explanations in the
> > code itself. I looked at the kernel code in
> > drivers/staging/ktap/interpreter/. I have not found a _single_
> > substantial in-code comment about design details and
> > implementational considerations. (!!)
> >
> I will add more comments for it, also will draft a design detail in
> doc/ directory.
>
> > - From the little I've been able to decode I get the impression
> > that the design should be much more integrated into the rest of
> > instrumentation: the in-kernel Lua bytecode interpreter looks
> > interesting, it could be an intelligent upgrade (or even outright
> > replacement) for the current 'filter' interpreter concept we have
> > for tracepoints - instead of putting a parallel interpreter
> > implementation into the kernel.
> >
> > - In a similar fashion, it would be nice to see it integrated with
> > 'perf probe' or 'perf ktap', so that users can create probes from
> > a single place, with coherent syntax and integrated analysis
> > capabilities. I.e. there's no reason to not make this a
> > relatively pain-less yet very useful transition.
>
> Yes, I also mentioned this in my RFC email post before, that's the
> reason why I use perf-like interface in ktap as much as I can,
> like perf-tracepoints and perf-probe, also ktap can reuse perf
> debuginfo handling code in future, we are on the same page at this
> technical point.
Okay, cool! I've also Cc:-ed Masami, who was also very receptive in
person of the idea to merge this kind of scripting into perf probe.
(or perf ktap, whichever structure makes most sense from the end
user POV.)
> > Nacked-by: Ingo Molnar <mingo@kernel.org>
>
> Accept, really sorry about this mistake action, entirely my fault.
Don't worry about it - your plans look very promising IMO.
Thanks,
Ingo
next prev parent reply other threads:[~2013-10-25 10:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-24 7:58 ktap inclusion in drivers/staging/? Ingo Molnar
2013-10-24 8:46 ` Steven Rostedt
2013-10-24 9:42 ` Linus Torvalds
2013-10-24 10:04 ` Greg Kroah-Hartman
2013-10-25 10:10 ` Ingo Molnar
2013-10-24 9:49 ` Greg Kroah-Hartman
2013-10-24 12:44 ` Jovi Zhangwei
2013-10-24 12:11 ` Jovi Zhangwei
2013-10-24 12:25 ` Steven Rostedt
2013-10-24 19:46 ` Arnaldo Carvalho de Melo
2013-10-25 3:00 ` Jovi Zhangwei
2013-10-24 12:32 ` Jovi Zhangwei
2013-10-25 10:15 ` Ingo Molnar [this message]
2013-10-26 5:02 ` Jovi Zhangwei
2013-10-26 8:59 ` Ingo Molnar
2013-10-28 12:12 ` Masami Hiramatsu
2013-10-28 12:19 ` Ingo Molnar
2013-10-28 12:16 ` Masami Hiramatsu
2013-10-28 13:19 ` Jovi Zhangwei
2013-10-28 5:48 ` Masami Hiramatsu
2013-10-25 11:25 ` Pekka Enberg
2013-10-25 11:34 ` 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=20131025101511.GB3439@gmail.com \
--to=mingo@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=dsahern@gmail.com \
--cc=fweisbec@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jolsa@redhat.com \
--cc=jovi.zhangwei@gmail.com \
--cc=jovi.zhangwei@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=namhyung@kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=tom.zanussi@linux.intel.com \
--cc=torvalds@linux-foundation.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).