From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752025AbcGAG0G (ORCPT ); Fri, 1 Jul 2016 02:26:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60353 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbcGAG0E (ORCPT ); Fri, 1 Jul 2016 02:26:04 -0400 Date: Fri, 1 Jul 2016 08:17:39 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra Subject: Re: [PATCH 5/5] perf tools: Transform nodes string info to struct Message-ID: <20160701061739.GA28965@krava> References: <1467113345-12669-1-git-send-email-jolsa@kernel.org> <1467113345-12669-5-git-send-email-jolsa@kernel.org> <20160630212009.GG5324@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160630212009.GG5324@kernel.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 01 Jul 2016 06:17:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 30, 2016 at 06:20:09PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > > > +struct numa_node { > > + u32 node; > > + u64 mem_total; > > + u64 mem_free; > > + struct cpu_map *map; > > +}; > > + > > struct perf_env { > > char *hostname; > > char *os_release; > > @@ -33,18 +41,18 @@ struct perf_env { > > int nr_cmdline; > > int nr_sibling_cores; > > int nr_sibling_threads; > > - int nr_numa_nodes; > > why rename it from nr_numa_nodes to numa_nodes_cnt? Seems gratuitous and > potentially introduces up to three 4 byte holes into 'struct perf_env' > :-\ it goes along nicely with the caches/chaches_cnt ;-) I'll change it back, np jirka > > Applied the other patches in this series, > > Thanks, > > - Arnaldo > > > int nr_pmu_mappings; > > int nr_groups; > > char *cmdline; > > const char **cmdline_argv; > > char *sibling_cores; > > char *sibling_threads; > > - char *numa_nodes; > > char *pmu_mappings; > > struct cpu_topology_map *cpu; > > struct cpu_cache_level *caches; > > int caches_cnt; > > + struct numa_node *numa_nodes; > > + int numa_nodes_cnt; > > }; SNIP