From mboxrd@z Thu Jan 1 00:00:00 1970 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=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 A353CC433E6 for ; Fri, 15 Jan 2021 20:28:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6DB0123A9C for ; Fri, 15 Jan 2021 20:28:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388504AbhAOU21 (ORCPT ); Fri, 15 Jan 2021 15:28:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:55574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727670AbhAOU2Z (ORCPT ); Fri, 15 Jan 2021 15:28:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4411E23A5A; Fri, 15 Jan 2021 20:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610742462; bh=AmJEKHhWTR11eAcP24RbMh6gn4D/k9nz+FpoxQazw5g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G/QBsaXoGxg3bpcuHRlpwtXE3HIpTAvLF+O4XkbTvEr2sBc7j+NJE5okFN2g8UmD8 0vCCDp6yJwZs2mPmipuEIOMhnLVnAxsNHVDbGMYuGl/aLIOHIWR61bG7Ew+60iFESB 8b1AO3ZK5Sg8TqkhoB3jwxFX9SHOqQJkgP08gINjwLoiIWcUgBlIA5h00A/AOMSMdz drZphulCWqfOd1nX6w0wfOEctcjxFubzH3b6+pig3ZH+qc/Uw3m73T+ks61eDmU+7r sXjkwGubRntHY9csmsrmfUKnwUPANqtWsOpW+59FOhkPjm+CDTFN0AoNLzMPC6gkk/ x6v2+fEdjdb6w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id ADFCB40522; Fri, 15 Jan 2021 17:28:14 -0300 (-03) Date: Fri, 15 Jan 2021 17:28:14 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Jin Yao , jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com, ying.huang@intel.com Subject: Re: [PATCH v6] perf stat: Fix wrong skipping for per-die aggregation Message-ID: <20210115202814.GM457607@kernel.org> References: <20210114012755.1106-1-yao.jin@linux.intel.com> <20210114190032.GC1416940@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210114190032.GC1416940@krava> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Jan 14, 2021 at 08:00:32PM +0100, Jiri Olsa escreveu: > On Thu, Jan 14, 2021 at 09:27:55AM +0800, Jin Yao wrote: > > SNIP > > > 2.003776312 S1-D0 1 855616 Bytes llc_misses.mem_read > > 2.003776312 S1-D1 1 949376 Bytes llc_misses.mem_read > > 3.006512788 S0-D0 1 1338880 Bytes llc_misses.mem_read > > 3.006512788 S0-D1 1 920064 Bytes llc_misses.mem_read > > 3.006512788 S1-D0 1 877184 Bytes llc_misses.mem_read > > 3.006512788 S1-D1 1 1020736 Bytes llc_misses.mem_read > > 4.008895291 S0-D0 1 926592 Bytes llc_misses.mem_read > > 4.008895291 S0-D1 1 906368 Bytes llc_misses.mem_read > > 4.008895291 S1-D0 1 892224 Bytes llc_misses.mem_read > > 4.008895291 S1-D1 1 987712 Bytes llc_misses.mem_read > > 5.001590993 S0-D0 1 962624 Bytes llc_misses.mem_read > > 5.001590993 S0-D1 1 912512 Bytes llc_misses.mem_read > > 5.001590993 S1-D0 1 891200 Bytes llc_misses.mem_read > > 5.001590993 S1-D1 1 978432 Bytes llc_misses.mem_read > > > > On no-die system, die_id is 0, actually it's hashmap(socket,0), original behavior > > is not changed. > > > > Reported-by: Huang Ying > > Signed-off-by: Jin Yao > > --- > > v6: > > Fix the perf test python failure by adding hashmap.c to python-ext-sources. > > > > root@kbl-ppc:~# ./perf test python > > 19: 'import perf' in python : Ok > > Acked-by: Jiri Olsa Jin, this is breaking the build in some 32-bit system, can you please take a look to validate these warnings? CC /tmp/build/perf/util/srcline.o util/stat.c: In function 'pkg_id_hash': util/stat.c:285:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] return (int64_t)key & 0xffffffff; ^ util/stat.c: In function 'pkg_id_equal': util/stat.c:291:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] return (int64_t)key1 == (int64_t)key2; ^ util/stat.c:291:26: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] return (int64_t)key1 == (int64_t)key2; ^ util/stat.c: In function 'check_per_pkg': util/stat.c:342:26: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] if (hashmap__find(mask, (void *)key, NULL)) ^ util/stat.c:345:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] ret = hashmap__add(mask, (void *)key, (void *)1); ^ CC /tmp/build/perf/tests/expand-cgroup.o