Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4430171imc; Mon, 25 Feb 2019 04:57:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IaUnXNbzAS0tvqw64dPqXKkHqovSOdsVd/z4FqbQ1+RlLjRFMCF4josDm9HAzPUNRV4f3LV X-Received: by 2002:a17:902:1105:: with SMTP id d5mr4154780pla.27.1551099450582; Mon, 25 Feb 2019 04:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551099450; cv=none; d=google.com; s=arc-20160816; b=WqW8/dV/Qx8IIPa2M4us+iBtOinXSFk28jvyMSQFLoKFtdtqQDdB/SzwWrdCSQY9/E KyE74NbcBkkgcVC8kZ1X5BP9cpqOGH1mONWc7w/GEYpG9UdJixWrYANPzEoVYtMnGDGb A3VGY+sOojLWSjHA+5d57b35rMgCysi5clGrKUK0T36s8EikGqbet6e10zJzXxu+AD0J /tJu/938DAl5GK1HdIGKS4YRPlC7eK5roCsxg+xn9BaGQ3ugGUt5+QlB3i1cYZ7OlGQD ay3OpzhAOX6yyvPpKivryBJnp0zVwjKIadg50g0XVBKsb5Xub3k4/anF6m2L4bsgYZ0B Obcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QPlFotfFh6TLS0N2GIoY1Mso7IwzvqmHLUa2xGeMHxs=; b=lLUWHwySooTlKZorrBy6kmahSkTpA+HRs47hsT1ppnDx4FTEsTjhM+zdkXo1hsvT0U dnGwnLVnAfvlTAd6GIzWf1F+pstD6fJvhFegFtRNz2MhzHPFJgkmtqdvFE5vF0qYjrI/ wmlKmGoyiL7Lu+UuAuAija8wfEsX+lds/JJm+kWN3z6MHLoEpZlKumZ7dEcLsqCZ7u3+ 2yQhy7wKbHRhBzgaqZfFgqI03y8JQszAMX79/nKZSnmKp8VsBY4UJ2KwkCxROhvLMmyV UzqV8D2iZxTzOBSckwAu8W6sVw5kxsfQ2lRH/lP4lnF5ZlfnSvKmY6EqsqOT8FnGFxZF 8RvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si9899804plv.258.2019.02.25.04.57.15; Mon, 25 Feb 2019 04:57:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727036AbfBYMzg (ORCPT + 99 others); Mon, 25 Feb 2019 07:55:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33820 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726921AbfBYMzg (ORCPT ); Mon, 25 Feb 2019 07:55:36 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0CC1881DE2; Mon, 25 Feb 2019 12:55:36 +0000 (UTC) Received: from krava (unknown [10.43.17.18]) by smtp.corp.redhat.com (Postfix) with SMTP id 5233919C56; Mon, 25 Feb 2019 12:55:34 +0000 (UTC) Date: Mon, 25 Feb 2019 13:55:33 +0100 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, namhyung@kernel.org, eranian@google.com, Andi Kleen Subject: Re: [PATCH 06/11] perf tools report: Use less for scripts output Message-ID: <20190225125533.GD19795@krava> References: <20190224153722.27020-1-andi@firstfloor.org> <20190224153722.27020-7-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190224153722.27020-7-andi@firstfloor.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 25 Feb 2019 12:55:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 24, 2019 at 07:37:17AM -0800, Andi Kleen wrote: > From: Andi Kleen > > The UI viewer for scripts output has a lot of limitations: limited size, > no search or save function, slow, and various other issues. > > Just use 'less' to display directly on the terminal instead. > > This won't work in gtk mode, but gtk doesn't support these > context menus anyways. If that is every done could use an terminal > for the output. > > Signed-off-by: Andi Kleen > --- > tools/perf/ui/browsers/scripts.c | 125 +++++-------------------------- > 1 file changed, 17 insertions(+), 108 deletions(-) I like the stats ;-) I assume some of the current includes can be removed as well: #include #include #include #include #include "../../util/sort.h" #include "../../util/util.h" #include "../../util/hist.h" #include "../../util/debug.h" #include "../../util/symbol.h" #include "../browser.h" #include "../helpline.h" #include "../libslang.h" jirka