Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2264545rwo; Thu, 3 Aug 2023 07:07:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHn1dIEAxkag34dhqv7XDK2a7eh6nmJFNSUi7ghQ9+VZdDCuyhNVNl2hgYH9m4E41KAx2tV X-Received: by 2002:a05:6808:1709:b0:3a4:1f0f:d108 with SMTP id bc9-20020a056808170900b003a41f0fd108mr22613437oib.46.1691071678425; Thu, 03 Aug 2023 07:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691071678; cv=none; d=google.com; s=arc-20160816; b=cQ0Dmsn9VtZ/0dRk/sbSeFoymlADtzR9pwU8S1KtA9oaXqdxV13PvsBPL1tElyCbN6 9ht1SGRcZcAg/vWY+f81+CD8h8PdHOvrLfp3Yvgfqm490C7nzfcETzk4EI81fCm4WTob fpT3Vvwm805nffEGBWQ9n9VIFiChPHeNnSnKKVU8KEPUbTAaHrRMyVO557W0YC/fdEJQ 1pyDopGFzg8+spNB9N8uR4NUn3s8Hotl9rWqEsMhWGb9OgYG4TFFEd6JuzJu/ztMpcKY uTeOuw2uxbGcvqrs8AhiXYbVLllk9Fd94yJTakMbUv/n3hlBKjauoiusf7uUR1dNnTd+ F8Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pH/v2JpAcd0OkBN8rPLBL6xoACOWO2RFMBtld5FPFgI=; fh=N9HWP001UwTkW+ou2iaWvwU6DHUx1c7Bi7UpDXBf6SE=; b=gwUftzQte/NO5lUnB9zEsvfrPo9Dm9GWMDFI9fGrjn2Bywziv1nt7+E6EdKO8wBzUZ 5GCmj55YkjdtigGnUSfuXt0scvsZKwRCgG7m0HoDCCTikCAgNUq4KvodIUYdsM2+UxRm sn9SIRaOecc54515ZACNnJbhdqolPYwIqsSUF0DM1hLW4+9wZ+roU935E6jTPxfMmFwC 70eOPbHVu1+s2uA5TjqrBcQr771YNy1v1bs9Dh9GLRoGS/jdSSqeZ6Z4ug0TOYJROyMe 6iUcqavgwnHAmqi2uwPj+6yDUy8mJ85Z0y67IwKF9L1NgMOz7i/cd6otOCvehHOk4YPb eGPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Pul/QB31"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a6543c7000000b0056387def1cfsi9295898pgp.48.2023.08.03.07.07.45; Thu, 03 Aug 2023 07:07:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Pul/QB31"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236487AbjHCNjy (ORCPT + 99 others); Thu, 3 Aug 2023 09:39:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236101AbjHCNji (ORCPT ); Thu, 3 Aug 2023 09:39:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D5836A7B; Thu, 3 Aug 2023 06:35:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6CED661DAA; Thu, 3 Aug 2023 13:35:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E51CC433C9; Thu, 3 Aug 2023 13:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691069749; bh=C6Dxd0begEUdvL1T6Bif2dBYOfzhi5vekBRuMYfVre4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pul/QB31o3Ie8xAbAKUG7UdNEx34i0Ogvvph+xNmabZFUcFA3pAbJOFNymzVCUFpp c4CzlkTumOY5GnkmcihnEfxEyVSRNofxq2Koh2uqvKC2m6FnpkIZSNzsUUGMlt3ncF UdqyzpxnEExpCA1hr9T9FIInpxp+D1mYvrEp2ztdGjh4xFBfccSKbVBbjNT22TEjMj /GMG3ClS9egsJbevxamV1UYabeX7ElIdC9MAX4M+1EQE8+Qr5QDAKlwU1Pl134VYRJ RQU5UfU9KmscICcCmg9s5JU4Cn5HFfRh4X+0AIQGT09xCMGI7svKfnqb60jtwu3qU6 TFiR/iti1CA3w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id CF3FF4012D; Thu, 3 Aug 2023 10:35:46 -0300 (-03) Date: Thu, 3 Aug 2023 10:35:46 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Jiri Olsa , Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] perf hists browser: Fix hierarchy mode header Message-ID: References: <20230731094934.1616495-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731094934.1616495-1-namhyung@kernel.org> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Jul 31, 2023 at 02:49:32AM -0700, Namhyung Kim escreveu: > The commit ef9ff6017e3c4 ("perf ui browser: Move the extra title lines > from the hists browser") introduced ui_browser__gotorc_title() to help > moving non-title lines easily. But it missed to update the title for > the hierarchy mode so it won't print the header line on TUI at all. > > $ perf report --hierarchy Thanks, tested and applied. - Arnaldo > Fixes: ef9ff6017e3c4 ("perf ui browser: Move the extra title lines from the hists browser") > Cc: stable@vger.kernel.org > Signed-off-by: Namhyung Kim > --- > tools/perf/ui/browsers/hists.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c > index c7ad9e003080..d8b88f10a48d 100644 > --- a/tools/perf/ui/browsers/hists.c > +++ b/tools/perf/ui/browsers/hists.c > @@ -1779,7 +1779,7 @@ static void hists_browser__hierarchy_headers(struct hist_browser *browser) > hists_browser__scnprintf_hierarchy_headers(browser, headers, > sizeof(headers)); > > - ui_browser__gotorc(&browser->b, 0, 0); > + ui_browser__gotorc_title(&browser->b, 0, 0); > ui_browser__set_color(&browser->b, HE_COLORSET_ROOT); > ui_browser__write_nstring(&browser->b, headers, browser->b.width + 1); > } > -- > 2.41.0.487.g6d72f3e995-goog > -- - Arnaldo