From: Ingo Molnar <mingo@elte.hu>
To: John Levon <levon@movementarian.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Arjan van de Ven <arjan@infradead.org>,
linux-kernel@vger.kernel.org, sandmann@redhat.com, tglx@tglx.de,
hpa@zytor.com
Subject: Re: [PATCH] x86: add the debugfs interface for the sysprof tool
Date: Sat, 23 Feb 2008 16:50:31 +0100 [thread overview]
Message-ID: <20080223155031.GA28365@elte.hu> (raw)
In-Reply-To: <20080223135335.GA28464@totally.trollied.org.uk>
* John Levon <levon@movementarian.org> wrote:
> > [ The newbie user eventually finds out that opcontrol help text is
> > buggy and that -s does not mean --start, but --setup. ]
>
> It's astonishing that you would know about this, complaining about
> this, but not file a bug report. Same goes for the rest.
i found out about this particular issue just today, when i wrote this
mail, so consider this as my bugreport.
And i have to say, most of the usability deficits in oprofile are very
obvious, so consider this as a general "the oprofile commands suck in
almost every detail" bugreport. Tools should fundamentally be
one-stop-shops. I personally wouldnt mind the lack of a GUI at all if
the command line tool was _obvious to use_. If the principle was: get
the current histogram to the user. A tool should work _hard_ to get
something (_anything_) useful out by default. Transparently start up any
background state and procesing that is needed - and hide it as much as
possible. Try to figure out where the vmlinux is, if there's any. Do
_not_ put the user through any extra chores if not absolutely necessary.
Display information that tells the user what happened. Etc., etc. -
these are all basic principles.
imagine if the "ls" command, instead of listing files, showed 60 lines
of options, and when i picked "-l" it would, instead of listing files
already, ask me: "do you really mean the current filesystem?". And if i
said "list whatever filesystem i wanted" then it would also say "because
dm-crypt is not configured into the kernel I cannot display encrypted
information, use me with --no-crypt".
and as i sit here, i tried "opreport" once again, to just see what it
does by default. It just hung there, displaying nothing. For minutes.
Then i got suspicious and straced it. It loops in stat()s in one huge
directory that has amassed more than 20 thousand sample files in the
last few hours. This is such a basic usecase, tell me that this never
happened to you and that nobody ever came to the idea to display "sorry,
this might take a few minutes, 10% of the files are processed so far"
sort of feel-good messages to the user?
but generally i cannot fix and report and fight over all the crap that
people do - that would mean i'd have to complain about Linux all day,
non-stop. What i can do is to tell apart the better solutions from the
worse solutions when they get submitted to me. And guess what? One
little isolated 200 lines patch in x86.git and the people who sat on
their accomplishments for years are up in arms and oppose it. I must be
doing something right i guess :-/
Ingo
next prev parent reply other threads:[~2008-02-23 15:50 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 20:37 Arjan van de Ven
2008-02-20 9:10 ` Ingo Molnar
2008-02-26 4:13 ` Anton Blanchard
2008-02-26 8:57 ` Ingo Molnar
2008-02-20 18:16 ` Peter Zijlstra
2008-02-20 18:39 ` Arjan van de Ven
2008-02-20 18:53 ` Peter Zijlstra
2008-02-20 18:58 ` Peter Zijlstra
2008-02-26 5:03 ` Anton Blanchard
2008-02-20 19:26 ` Arjan van de Ven
2008-02-20 20:58 ` Peter Zijlstra
2008-02-20 21:07 ` Arjan van de Ven
2008-02-20 21:44 ` Peter Zijlstra
2008-02-20 22:36 ` Arjan van de Ven
2008-02-23 8:11 ` Andrew Morton
2008-02-23 11:37 ` Ingo Molnar
2008-02-23 13:53 ` John Levon
2008-02-23 15:50 ` Ingo Molnar [this message]
2008-02-23 20:15 ` Soeren Sandmann
2008-02-23 20:42 ` Andrew Morton
2008-02-26 5:13 ` Anton Blanchard
2008-02-26 9:02 ` Ingo Molnar
2008-02-26 17:29 ` Andrew Morton
2008-02-27 14:05 ` Anton Blanchard
2008-02-24 13:10 ` Theodore Tso
2008-02-24 13:44 ` Ingo Molnar
2008-02-24 14:33 ` Ingo Molnar
2008-02-24 16:32 ` John Levon
2008-02-24 18:19 ` Theodore Tso
2008-02-23 18:40 ` Andrew Morton
2008-02-23 11:51 ` Pekka Enberg
2008-02-23 12:22 ` Ingo Molnar
2008-02-23 12:29 ` Pekka Enberg
2008-02-23 18:46 ` Andrew Morton
2008-02-24 2:49 ` Pekka Enberg
2008-02-24 3:12 ` Nicholas Miell
2008-02-26 6:27 ` Pekka Enberg
2008-02-26 6:48 ` Pekka Enberg
2008-02-26 8:55 ` Ingo Molnar
2008-02-23 14:54 ` Pekka Enberg
2008-02-23 19:01 ` Andrew Morton
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=20080223155031.GA28365@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=arjan@infradead.org \
--cc=hpa@zytor.com \
--cc=levon@movementarian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sandmann@redhat.com \
--cc=tglx@tglx.de \
/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
Powered by JetHome