Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1351754rda; Mon, 23 Oct 2023 09:53:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEa3ef3ow7yggSA6AdRtqGAq2uTWrs12jyWQMMD2sbTJP4zk0AX0wFIfO56PGBAvI5bsjCU X-Received: by 2002:a05:6a20:938e:b0:138:836c:5370 with SMTP id x14-20020a056a20938e00b00138836c5370mr162597pzh.42.1698080009149; Mon, 23 Oct 2023 09:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698080009; cv=none; d=google.com; s=arc-20160816; b=NcbRIQVPnRUuhfZpH0nii0l3WPiXg4jnR82Nc+GMFvVovZHW2kXMlOzBDTqOCGMkei dOsP0QCxL6cT1WVjd448ZtLUNAuflvnYkq2mPAhARhVOhEm5DrCwI6oqMpz6B9xUvljf jRjz59aDaTMoLP4GW51zUMz45BsOQVPFyzqHTrLEV5V7qbbXLWfA2JBCUMKASZTv3WNm 8v8MfXIwcApb/Ob0EwMw25s6bBPJw0HnAl8cWv0ESw9Twz4zcjXlidsXl8ZLPTT9Lb6m 6tghEbDh4tq3zlhMp/NPYEi2chKSUeVGakPN9/oHW+tlsic4VCSvaG+HzLO6GyHU+Wg1 /uJg== 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=Tn2ZXKv94H3cQf3L7f2D4afr1g+jitb6hT4g2L1q4ZM=; fh=zPiygMGDDJ0PgHV6ALeHuvu4U5CVahebZwDFdLUtYz0=; b=070YdexiCT7c7z3v9TmahTYV4cxowLCDN304WIgV1jNPSb4lAUxbk1Wb+7gh169uw2 BLLSnI36sCFee1I9RIvHX+NxNgnT7aWAygubxUFX8FkLmom6EUxoa6cGIuraCVJ86SQ/ VXPIQRRxXAnnzuiN0XOqc7cIjP2XD0yLj0Kh/Rg+x8oR/6qTuAOVu7N9uwWxQJlDqgk0 SoDCtdEwaSjmuib9VzV0KKM9N9qIXxvgfbJEhnD/AUVkfqUDC2MXxPQ+X1wmtidpTc57 D991044ElCU9/armJ+cXVaGaRXnY7MLj5AGPq0309srC9i5pvN9hFSoyOtCYYvPEijoa Z+Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qDnpooZ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l24-20020a637018000000b005898e10f9b9si6512930pgc.213.2023.10.23.09.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:53:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qDnpooZ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7357F8066454; Mon, 23 Oct 2023 09:53:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230310AbjJWQxT (ORCPT + 99 others); Mon, 23 Oct 2023 12:53:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbjJWQxS (ORCPT ); Mon, 23 Oct 2023 12:53:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFDE0E5; Mon, 23 Oct 2023 09:53:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B1BBC433C7; Mon, 23 Oct 2023 16:53:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698079996; bh=TXIb9ClVcIo/XPCRnjO8NRpDlzzqasukBVOBLTc9BWA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qDnpooZ2CYQ0HEv9N32JDu85BzOQLS/cGPttXUtDonzHulpUZ9Nlnkog4QZd2AAop 6sfclRflVDlfBY6Z028vXgOaCvgg6VMKj64Qgqt+SH57Hpgp/J2RFQqkWyLgZ9ikPL iEjyPk+TzLh7/AQ0TK63JDRkHGZh9PByT84rcjPS+DzLa0dzIEwJBjOfoqkV9jgUjc e0sxFGUitX2B04NGPKVcAJ1uSc9Cbm9qQmcUEy2McenTeGs57DjGaVyewDpTbq7ZUQ xiR50xeMq713SHG2QUFWHmq4TG6s7puBYqhJGVA9ZjMltdQoiAehiujrsgdHiZCMdS KHTo6sLj4Z5uQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 67A9D4035D; Mon, 23 Oct 2023 13:53:13 -0300 (-03) Date: Mon, 23 Oct 2023 13:53:13 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Jiri Olsa , Peter Zijlstra , Ian Rogers , Adrian Hunter , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Linus Torvalds , Stephane Eranian , Masami Hiramatsu , linux-toolchains@vger.kernel.org, linux-trace-devel@vger.kernel.org Subject: Re: [PATCH 15/48] perf report: Add 'type' sort key Message-ID: References: <20231012035111.676789-1-namhyung@kernel.org> <20231012035111.676789-16-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012035111.676789-16-namhyung@kernel.org> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:53:26 -0700 (PDT) Em Wed, Oct 11, 2023 at 08:50:38PM -0700, Namhyung Kim escreveu: > The 'type' sort key is to aggregate hist entries by data type they > access. Add mem_type field to hist_entry struct to save the type. > If hist_entry__get_data_type() returns NULL, it'd use the > 'unknown_type' instance. Needed the patch below, doing the same that is a bit before for libtraceevent diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index c79564c1d5df5db3..3fae226d115ef8e6 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -2132,6 +2132,7 @@ struct sort_entry sort_addr = { .se_width_idx = HISTC_ADDR, }; +#ifdef HAVE_DWARF_SUPPORT /* --sort type */ static int64_t @@ -2190,7 +2191,7 @@ struct sort_entry sort_type = { .se_snprintf = hist_entry__type_snprintf, .se_width_idx = HISTC_TYPE, }; - +#endif // HAVE_DWARF_SUPPORT struct sort_dimension { const char *name; @@ -2246,7 +2247,9 @@ static struct sort_dimension common_sort_dimensions[] = { DIM(SORT_LOCAL_RETIRE_LAT, "local_retire_lat", sort_local_p_stage_cyc), DIM(SORT_GLOBAL_RETIRE_LAT, "retire_lat", sort_global_p_stage_cyc), DIM(SORT_SIMD, "simd", sort_simd), +#ifdef HAVE_DWARF_SUPPORT DIM(SORT_ANNOTATE_DATA_TYPE, "type", sort_type), +#endif }; #undef DIM