Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991AbbH0SKk (ORCPT ); Thu, 27 Aug 2015 14:10:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37741 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752696AbbH0SKj (ORCPT ); Thu, 27 Aug 2015 14:10:39 -0400 Date: Thu, 27 Aug 2015 20:10:32 +0200 From: Jiri Olsa To: Kan Liang Cc: acme@kernel.org, jolsa@kernel.org, a.p.zijlstra@chello.nl, luto@kernel.org, mingo@redhat.com, eranian@google.com, ak@linux.intel.com, mark.rutland@arm.com, adrian.hunter@intel.com, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V5 1/7] perf,tools: introduce generic FEAT for CPU attributes Message-ID: <20150827181032.GA15010@krava.redhat.com> References: <1440494288-20448-1-git-send-email-kan.liang@intel.com> <1440494288-20448-2-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1440494288-20448-2-git-send-email-kan.liang@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 886 Lines: 33 On Tue, Aug 25, 2015 at 05:18:02AM -0400, Kan Liang wrote: SNIP > @@ -66,6 +67,11 @@ struct perf_header; > int perf_file_header__read(struct perf_file_header *header, > struct perf_header *ph, int fd); > > +enum perf_header_cpu_attr { > + PERF_HEADER_CPU_MAX_FREQ = 0, > + PERF_HEADER_CPU_ATTR_MAX, > +}; > + > struct perf_session_env { > char *hostname; > char *os_release; > @@ -89,6 +95,12 @@ struct perf_session_env { > char *sibling_threads; > char *numa_nodes; > char *pmu_mappings; > + union { > + u64 cpu_attr[PERF_HEADER_CPU_ATTR_MAX]; > + struct { > + u64 freq; should it b maxfreq ? jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/