From: Ingo Molnar <mingo@kernel.org>
To: Alexei Starovoitov <ast@plumgrid.com>
Cc: Jovi Zhangwei <jovi.zhangwei@gmail.com>,
Ingo Molnar <mingo@redhat.com>,
Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
Greg KH <gregkh@linuxfoundation.org>,
Andi Kleen <andi@firstfloor.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: ktap and ebpf integration
Date: Fri, 4 Apr 2014 09:27:53 +0200 [thread overview]
Message-ID: <20140404072753.GB1637@gmail.com> (raw)
In-Reply-To: <CAMEtUuyQZo6fSMTZ5XKPfPBdjR13916Rd3=z5dip3N_WOzvr6Q@mail.gmail.com>
* Alexei Starovoitov <ast@plumgrid.com> wrote:
> On Thu, Apr 3, 2014 at 6:21 PM, Jovi Zhangwei <jovi.zhangwei@gmail.com> wrote:
> > Hi Alexei,
> >
> > We talked a lot on ktap and ebpf integration in these days,
> > Now I think we can put into deeply to thinking out some
> > technical issues in there.
> >
> > Firstly, I want to make sure you are support this ktap and
> > ebpf integration direction, I aware you have ongoing 'bpf filter'
> > patch set work, which actually overlapping with ktap integration
> > efforts (IMO the interface should be unified and simple for user,
> > so I think filter debugfs file is not a good interface), so please let
> > me know your answer about this.
>
> I think the more choices users have the better.
> I'll continue with C based filters and you can continue with ktap
> syntax. That's ok. We can share all kernel pieces.
I'd somewhat agree with that if this wasn't about the kernel, but I
think that it's evidently useful to have one syntax for the kernel
(both the scheduler and drivers are written in C) - and probing the
kernel is really very close to the kernel source itself so it's just
an extension of that same principle.
Look at the advantages: people who learn how to write C syntax ktaps
would only be a very small step away from writing actual kernel
patches and becoming contributors.
With some random weird new syntax (be it Lua, C# or Java or any other
simplified syntax) that has no relation to kernel source syntax,
there's no such synergy!
If the 'ktap syntax' lives purely in user space, and the kernel bits
are largely be shared and reused, which your suggested design is, then
I have no fundamental objections to that: other than I think it's a
mistake to not harmonize with the syntax of the probed project! But as
long as the other desing aspects are fixed it's not a big showstopper
as the mistake is not propagated to the kernel.
> [ design suggestions ]
I fully agree with your suggestions so far, that looks like a workable
way to address my concerns.
Thanks,
Ingo
prev parent reply other threads:[~2014-04-04 7:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-04 1:21 ktap and ebpf integration Jovi Zhangwei
2014-04-04 6:26 ` Alexei Starovoitov
2014-04-04 7:26 ` Jovi Zhangwei
2014-04-04 7:48 ` Ingo Molnar
2014-04-04 8:46 ` Jovi Zhangwei
2014-04-04 15:57 ` Alexei Starovoitov
2014-04-04 17:28 ` Alexei Starovoitov
2014-04-05 14:23 ` Jovi Zhangwei
2014-04-05 17:22 ` Alexei Starovoitov
2014-04-05 21:26 ` Jovi Zhangwei
2014-04-05 17:50 ` Andi Kleen
2014-04-04 14:20 ` Andi Kleen
2014-04-04 7:27 ` Ingo Molnar [this message]
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=20140404072753.GB1637@gmail.com \
--to=mingo@kernel.org \
--cc=andi@firstfloor.org \
--cc=ast@plumgrid.com \
--cc=gregkh@linuxfoundation.org \
--cc=jovi.zhangwei@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.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).