From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754627AbZHLRpP (ORCPT ); Wed, 12 Aug 2009 13:45:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754065AbZHLRpO (ORCPT ); Wed, 12 Aug 2009 13:45:14 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42773 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752912AbZHLRpN (ORCPT ); Wed, 12 Aug 2009 13:45:13 -0400 Date: Wed, 12 Aug 2009 14:44:59 -0300 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Peter Zijlstra , Linux Kernel Mailing List Subject: [PATCH tip 1/1] perf list: use the pager Message-ID: <20090812174459.GB3495@ghostprotocols.net> References: <20090811192211.GG18061@ghostprotocols.net> <20090811200436.GA3478@ghostprotocols.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090811200436.GA3478@ghostprotocols.net> X-Url: http://oops.ghostprotocols.net:81/blog User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When /sys/kernel/debug is mounted the list is imense, so use the pager like the other tools. Cc: Peter Zijlstra Signed-off-by: Arnaldo Carvalho de Melo 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; }