|
|
Log in / Subscribe / Register

Re: ktap inclusion in drivers/staging/?

From:  Ingo Molnar <mingo-AT-kernel.org>
To:  Jovi Zhangwei <jovi.zhangwei-AT-gmail.com>
Subject:  Re: ktap inclusion in drivers/staging/?
Date:  Sat, 26 Oct 2013 10:59:55 +0200
Message-ID:  <20131026085955.GD14237@gmail.com>
Cc:  Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>, "zhangwei(Jovi)" <jovi.zhangwei-AT-huawei.com>, =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker <fweisbec-AT-gmail.com>, Peter Zijlstra <a.p.zijlstra-AT-chello.nl>, Arnaldo Carvalho de Melo <acme-AT-infradead.org>, Thomas Gleixner <tglx-AT-linutronix.de>, Steven Rostedt <rostedt-AT-goodmis.org>, Linus Torvalds <torvalds-AT-linux-foundation.org>, Andrew Morton <akpm-AT-linux-foundation.org>, LKML <linux-kernel-AT-vger.kernel.org>, Tom Zanussi <tom.zanussi-AT-linux.intel.com>, Namhyung Kim <namhyung-AT-kernel.org>, David Ahern <dsahern-AT-gmail.com>, Jiri Olsa <jolsa-AT-redhat.com>, Masami Hiramatsu <masami.hiramatsu.pt-AT-hitachi.com>
Archive‑link:  Article


* Jovi Zhangwei <jovi.zhangwei@gmail.com> wrote:

> Thanks. An addition question I want to discuss in here is the ktap 
> code structure layout in first patch series, this don't need to 
> dig out any ktap design detail, so we can make agreement on this 
> point, and ease for me to prepare patch series.
> 
> Do I need to prepare patchset target on staging tree or "real" 
> part of kernel? [...]

I'd suggest adding it to the core, i.e. kernel/tracing/ and 
kernel/trace/trace_events_filter.c in particular which includes the 
current filter script interpreter.

(Please also make sure that the Lua copyright notices get carried 
over properly.)

> [...] If target on driver/staging/ktap, then kernel code and 
> userspace code still need to locate at same directory, that many 
> people may don't like it.
> 
> Target on "real" part kernel? - include/trace/ktap (header file 
> common used by interpreter and userspace compiler) - 
> kernel/trace/ktap (interpreter code, ktapvm, pure kernel module) - 
> tools/perf/ktap?(userspace compiler code)
>   As I also agree integrating ktap and perf together, two 
>   subsystem can share many codes, so it's better putting ktap 
>   userspace into perf directory.

Once there's a more split-out submission it will be easier to see 
what belongs where. I agree with Pekka that for the user the UI 
should be integrated and obvious.

I'd also like there to be a natural 'extract the script' 
functionality from an installed tap script. This gives more 
flexibiliy and improves security as well: no hidden, binary-only 
crap, every script installed on a running system should be 
extractable in source form, should be reviewable and modifiable.

Thanks,

	Ingo



to post comments


Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds