From patchwork Mon May 4 17:57:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 226444 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66185C4724C for ; Mon, 4 May 2020 17:59:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3BF542075A for ; Mon, 4 May 2020 17:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588615140; bh=RMLWuBEV/LmPOhN8ZRn45upPYmqFgDB4TZ1V9KzBJGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=osDSUUMWMfpHY0MgtyIzYs23Z88natr2vqVTmGgGfgsXVQN2C0EDvtQ3yNJCUgQNl oY7TgdnThMIEj+/S/Jpp3D8SMumHegPCB5V/sUAD+TSVDjmTATH+xUwf+Iml+Noa1/ JMDnWZyQQ4uRvXZIpg0qiDWJ2G9VLxSD2o8PX4q8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730636AbgEDR67 (ORCPT ); Mon, 4 May 2020 13:58:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:52016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730627AbgEDR67 (ORCPT ); Mon, 4 May 2020 13:58:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 36F1920707; Mon, 4 May 2020 17:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588615138; bh=RMLWuBEV/LmPOhN8ZRn45upPYmqFgDB4TZ1V9KzBJGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LcKsGtsIQJzrbzlBtaJetA0ySu1kbo/eYXnQ0C3HikA3U15VkK168ZffRimZ2Ic0w yqJxc+Zj9WkOvOBQ4lzhip1UCahQLs+cIlsPJbex3swfTN2KBbvhcRx1Or0ZKpMLXA qZ7zXrtt8oDuoR5U091L4dp83R3qNisWmB+IdWCk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Olsa , David Ahern , Don Zickus , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 4.4 11/18] perf hists: Fix HISTC_MEM_DCACHELINE width setting Date: Mon, 4 May 2020 19:57:09 +0200 Message-Id: <20200504165443.876938763@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200504165441.533160703@linuxfoundation.org> References: <20200504165441.533160703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jiri Olsa commit 0805909f59e02036a4e2660159f27dbf8b6084ac upstream. Set correct width for unresolved mem_dcacheline addr. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Don Zickus Cc: Namhyung Kim Cc: Peter Zijlstra Fixes: 9b32ba71ba90 ("perf tools: Add dcacheline sort") Link: http://lkml.kernel.org/r/1453290995-18485-3-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/hist.c | 2 ++ 1 file changed, 2 insertions(+) --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -131,6 +131,8 @@ void hists__calc_col_len(struct hists *h symlen = unresolved_col_width + 4 + 2; hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL, symlen); + hists__new_col_len(hists, HISTC_MEM_DCACHELINE, + symlen); } if (h->mem_info->iaddr.sym) {