From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751725AbdKUPSL (ORCPT ); Tue, 21 Nov 2017 10:18:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38478 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751689AbdKUPSJ (ORCPT ); Tue, 21 Nov 2017 10:18:09 -0500 Date: Tue, 21 Nov 2017 16:18:06 +0100 From: Jiri Olsa To: Jin Yao Cc: acme@kernel.org, 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 Subject: Re: [PATCH v1 2/9] perf util: Define a structure for runtime shadow metrics stats Message-ID: <20171121151806.GJ20440@krava> References: <1511189024-19908-1-git-send-email-yao.jin@linux.intel.com> <1511189024-19908-3-git-send-email-yao.jin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511189024-19908-3-git-send-email-yao.jin@linux.intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 21 Nov 2017 15:18:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 20, 2017 at 10:43:37PM +0800, Jin Yao wrote: SNIP > + STAT_SMI_NUM, > + STAT_APERF, > + STAT_MAX > +}; > + > +struct runtime_stat { > + struct rblist value_list; > +}; > + > struct perf_stat_config { > enum aggr_mode aggr_mode; > bool scale; > FILE *output; > unsigned int interval; > + struct runtime_stat *stats; > + int stat_num; s/stat_num/stats_num/ or s/stats/stat/ thanks, jirka