[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111108161342.GD14272@ghostprotocols.net>
Date: Tue, 8 Nov 2011 14:13:42 -0200
From: Arnaldo Carvalho de Melo <acme@...hat.com>
To: Gerd Hoffmann <kraxel@...hat.com>
Cc: Theodore Tso <tytso@....edu>, Ingo Molnar <mingo@...e.hu>,
Anthony Liguori <anthony@...emonkey.ws>,
Pekka Enberg <penberg@...nel.org>,
Vince Weaver <vince@...ter.net>, Avi Kivity <avi@...hat.com>,
"kvm@...r.kernel.org list" <kvm@...r.kernel.org>,
"linux-kernel@...r.kernel.org List" <linux-kernel@...r.kernel.org>,
qemu-devel Developers <qemu-devel@...gnu.org>,
Alexander Graf <agraf@...e.de>,
Blue Swirl <blauwirbel@...il.com>,
Américo Wang <xiyou.wangcong@...il.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: Re: [F.A.Q.] the advantages of a shared tool/kernel Git
repository, tools/perf/ and tools/kvm/
Em Tue, Nov 08, 2011 at 04:38:48PM +0100, Gerd Hoffmann escreveu:
> Seems to have no effect, guess the distro perf is too old (RHEL-6).
> > [tui]
> > report = off
> That works. I don't want turn off the tui altogether though, I actually
> like the interactive expanding+collapsing of the call graphs. I just
> want turn off the colors.
> perf_color_default_config() in util/color.c seems to lookup a "color.ui"
> config variable. Can I set that somehow? Tried ui= in a [color]
> section -- no effect.
Ouch, that came from the code initialy stolen^Wcopied from git :-\
I don't think that will have any effect :-\
> > Ah, if you still need to configure the colors, use "default" so that it
> > will use whatever is the color configured in your
> > xterm/gnome-terminal/whatever profile.
> > For reference, the default set of colors now is:
> > .colorset = HE_COLORSET_TOP,
> > .name = "top",
> > .fg = "red",
> > .bg = "default",
> Bad idea IMO. Setting only one of foreground+background gives pretty
> much unpredictable results. My xterms have different background colors,
> the ones with a root shell happen to have a (dark) red background.
> Which results in red-on-dark-red text. Not good.
> I'd strongly suggest to either set both background and foreground to
> default or to set both to a specific color. When doing the latter make
That is the case for the normal one, two colorsets below the
HE_COLORSET_TOP one.
Humm, certainly there could be logic to figure it out if background ==
foreground and do something about it.
> sure the colors have enougth contrast so they are readable.
Problem is figuring out something that is considered a good default :-\
There will always be somebody that will complain.
When doing the coding to allow using the default xterm colors I tried
several of the gnome-terminal xterm profiles and all looked kinda sane
for the "top" (hottest functions, with most hits) and "medium" lines,
where we combine some chosen foreground color ("red" and "green").
Laziest solution would be: If the user customizes that much, could the
user please customize this as well? :-)
- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists