Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2013682ima; Mon, 22 Oct 2018 02:41:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ue8njLgOdZw7qvMCA+Q5/ZpauY7on2ZMbaPnBv1oCEW4hYMiOsjy+m8aPPl8BNZAdGLtf X-Received: by 2002:a62:d142:: with SMTP id t2-v6mr4798315pfl.175.1540201278314; Mon, 22 Oct 2018 02:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540201278; cv=none; d=google.com; s=arc-20160816; b=TVo7VALW9j85+D2WWZYy1Kh965NM1uTmgHWdI34V0K97Ec8ZA6B0LkpOj9kPzJRJQp L2v3QyZXYamVCiER7ejQ7ZoP3PNMyuIEJ5RS2ZTV2wmu3kb0Sai0AWq7fPSv4hXVkWNG Db5Sd16Uxcq0Dnj17cEx9tfNKSbd7IaDh2hoR4nTmX9NZgRHLOFgm1ozJv9N36OSDrxu M4KwdXZL3NY0XjIeS1lk+tfL5OBo6m3TAfP/D1PXCbJPVfmsR/5RtGfFSKjMc7f0ysBX 5+5L/zOhTvAnWL+XZ3/C7aoPWUNpJHAEgTkhw7pwEmWh/w0V3ohPFXI7qfuvJ7lfF9Vk TUCQ== 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=hL4hmJZo61NAQ+5XoDIPiCi+a332RFHMLNyW2hatyZI=; b=EN7sU7Jv8vqa2cc2XGpIFTvleIt+2cZLzOAIcpGgm/FhIFP3y7Uu7rFNPkJW6jEs9z f60+Px3/U7z8S47iP+4DjUbdGSY1sGPKQMt2xCjYid3hCj2m2+f3kEHsGejs6on8Yc38 2zCEpNf4+KLccJdOZR8vfoqdsYhnnVdtBUl7nmNxT39rgiiKLdyaGEGZuea1ilpA5QGL MqFz5pJ80AgKUj0kVVA5r9kUoX8e3jQm/61HJCM5I7jYFbR12UUUufIY8ZG+cz+pr9AO hjE6DQI65v3MMtU/3hvDaTv86jIKwKkT+RvbrrUMlaqWachULT4u8F9g0eL+DAgZ7Mxd MVYQ== 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 d13-v6si31411638pfo.108.2018.10.22.02.41.03; Mon, 22 Oct 2018 02:41:18 -0700 (PDT) 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 S1728360AbeJVR6W (ORCPT + 99 others); Mon, 22 Oct 2018 13:58:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56560 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728062AbeJVR6W (ORCPT ); Mon, 22 Oct 2018 13:58:22 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 97684CD4A8; Mon, 22 Oct 2018 09:40:36 +0000 (UTC) Received: from krava (unknown [10.43.17.150]) by smtp.corp.redhat.com (Postfix) with SMTP id 64DAD61B8D; Mon, 22 Oct 2018 09:40:34 +0000 (UTC) Date: Mon, 22 Oct 2018 11:40:33 +0200 From: Jiri Olsa To: Milian Wolff Cc: acme@kernel.org, jolsa@kernel.org, Linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 1/2] perf script: allow extended console debug output Message-ID: <20181022094033.GF2452@krava> References: <20181021191424.16183-1-milian.wolff@kdab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181021191424.16183-1-milian.wolff@kdab.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 22 Oct 2018 09:40:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 21, 2018 at 09:14:23PM +0200, Milian Wolff wrote: > The script tool isn't using a browser, yet use_browser > wasn't set explicitly to zero. This in turn lead to confusing > output such as: > > ``` > $ perf script -vvv ... > ... > overlapping maps in /home/milian/foobar (disable tui for more info) > ... > ``` > > Explicitly set use_browser to 0 now, which gives us the extended > debug information now in perf script as expected. > > Signed-off-by: Milian Wolff > Cc: Arnaldo Carvalho de Melo Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/builtin-script.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c > index 4da5e32b9e03..bd468b90801b 100644 > --- a/tools/perf/builtin-script.c > +++ b/tools/perf/builtin-script.c > @@ -3417,8 +3417,10 @@ int cmd_script(int argc, const char **argv) > exit(-1); > } > > - if (!script_name) > + if (!script_name) { > setup_pager(); > + use_browser = 0; > + } > > session = perf_session__new(&data, false, &script.tool); > if (session == NULL) > -- > 2.19.1