From: Frederic Weisbecker <fweisbec@gmail.com>
To: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Peter Zijlstra <peterz@infradead.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH tip 1/1] perf list: use the pager
Date: Wed, 12 Aug 2009 20:42:24 +0200 [thread overview]
Message-ID: <20090812184221.GA5974@nowhere> (raw)
In-Reply-To: <20090812174459.GB3495@ghostprotocols.net>
On Wed, Aug 12, 2009 at 02:44:59PM -0300, Arnaldo Carvalho de Melo wrote:
> When /sys/kernel/debug is mounted the list is imense, so use the pager
> like the other tools.
>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Ah, the integration of syscalls tracepoints made the list huge
and I tried to figure out a way to set something like that.
I didn't know it was so simple :-)
>
> diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c
> index f990fa8..d88c696 100644
> --- a/tools/perf/builtin-list.c
> +++ b/tools/perf/builtin-list.c
> @@ -10,11 +10,12 @@
>
> #include "perf.h"
>
> -#include "util/parse-options.h"
> #include "util/parse-events.h"
> +#include "util/cache.h"
>
> int cmd_list(int argc __used, const char **argv __used, const char *prefix __used)
> {
> + setup_pager();
> print_events();
> return 0;
> }
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2009-08-12 18:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 19:22 [PATCH tip 3/3] perf tools: Fallback to cplus_demangle when bfd_demangle is not available Arnaldo Carvalho de Melo
2009-08-11 20:04 ` [PATCH tip 1/1] perf tools: Make dso__new handle deleted DSOs Arnaldo Carvalho de Melo
2009-08-12 17:44 ` [PATCH tip 1/1] perf list: use the pager Arnaldo Carvalho de Melo
2009-08-12 18:42 ` Frederic Weisbecker [this message]
2009-08-13 7:28 ` [tip:perfcounters/urgent] perf list: Fix large list output by using " tip-bot for Arnaldo Carvalho de Melo
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=20090812184221.GA5974@nowhere \
--to=fweisbec@gmail.com \
--cc=acme@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.