From: Pekka Enberg <penberg@kernel.org>
To: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Namhyung Kim <namhyung.kim@lge.com>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>,
Namhyung Kim <namhyung@gmail.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCHSET] perf ui: Small preparation on further UI work
Date: Tue, 27 Mar 2012 13:44:42 +0300 (EEST) [thread overview]
Message-ID: <alpine.LFD.2.02.1203271337290.19635@tux.localdomain> (raw)
In-Reply-To: <20120326173817.GN25820@infradead.org>
On Mon, 26 Mar 2012, Arnaldo Carvalho de Melo wrote:
> My plans were for util/ui/ to be this generalization you want to, hence
> I didn't use the 't', i.e. I didn't call it util/tui/, because tui would
> be just one of the possible backends.
>
> But that still needs more work that I haven't be able to pursue. Pekka
> thinks that doing it that way is not OK as it would limit what one could
> do with a more featureful UI like GTK+.
>
> I would like to still pursue a simple GUI using a function table for
> the simple operations we use in the hists browser in
> tools/perf/util/ui/ but if others want to pursue it the way the GTK+
> browser is being worked on, more power to them.
>
> So I would just leave things in tools/perf/util/ui/ and do what you did
> in moving the TUI specific bits to a separate function, even ui__init()
> would be ok for now, and then at setup_browser() check what kind of
> interface is being used and call ui__init() if it is the TUI and the
> gtk init one if GTK+ was chosen.
>
> But wouldn't introduce tools/perf/ui/setup.c for that, no need for new
> directory trees, I think :-)
I actually completely agree that we should aggressively consolidate code
between TUI and GTK back-ends. I also do think going for function table
for simple operations make sense.
What I think we disagreed about is that I don't want to make a totally new
abstraction for perf that hides the differences between TUI and GTK
completely. That is, I think both UI implementations should be allowed to
have different UI layouts and use all the toolkit specific extensions if
necessary.
I completely missed the newly added tools/perf/ui directory which doesn't
make much sense. We definitely ought to consolidate all this code under
tools/perf/util/ui and gradually move the tui code out of it instead.
[ I would, however, like to make the directory nesting less deep by
dropping the "util" part from the directory name. But that's a
completely different topic. ]
Pekka
next prev parent reply other threads:[~2012-03-27 10:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-26 8:51 Namhyung Kim
2012-03-26 8:51 ` [PATCH 1/5] perf ui: Make setup_browser() generic Namhyung Kim
2012-03-26 8:51 ` [PATCH 2/5] perf ui: Drop arg[cv] arguments from perf_gtk_setup_browser() Namhyung Kim
2012-03-26 8:51 ` [PATCH 3/5] perf ui: Add gtk2 support into setup_browser() Namhyung Kim
2012-03-26 8:51 ` [PATCH 4/5] perf gtk: Rename functions for consistency Namhyung Kim
2012-03-26 8:51 ` [PATCH 5/5] perf ui: Change fallback policy of setup_browser() Namhyung Kim
2012-03-26 9:46 ` [RFC PATCHSET] perf ui: Small preparation on further UI work Pekka Enberg
2012-03-26 17:38 ` Arnaldo Carvalho de Melo
2012-03-27 10:44 ` Pekka Enberg [this message]
2012-03-27 13:55 ` Arnaldo Carvalho de Melo
2012-03-28 2:14 ` Namhyung Kim
2012-03-28 14:28 ` Arnaldo Carvalho de Melo
2012-03-29 1:03 ` Namhyung Kim
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=alpine.LFD.2.02.1203271337290.19635@tux.localdomain \
--to=penberg@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=namhyung.kim@lge.com \
--cc=namhyung@gmail.com \
--cc=paulus@samba.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
all inboxes | Powered by JetHome®