From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932366AbbJ0Nas (ORCPT ); Tue, 27 Oct 2015 09:30:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46707 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932266AbbJ0Nar (ORCPT ); Tue, 27 Oct 2015 09:30:47 -0400 Date: Tue, 27 Oct 2015 14:30:43 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , "Liang, Kan" Subject: Re: [PATCH 11/52] perf tools: Add stat config event Message-ID: <20151027133043.GA21158@krava.brq.redhat.com> References: <1445784728-21732-1-git-send-email-jolsa@kernel.org> <1445784728-21732-12-git-send-email-jolsa@kernel.org> <20151027131605.GA9405@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151027131605.GA9405@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 27, 2015 at 10:16:05AM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Oct 25, 2015 at 03:51:27PM +0100, Jiri Olsa escreveu: > > Adding stat config event to pass/store stat config data, > > so report tools (report/script) know how to interpret > > stat data. > > > > The config data are stored in 'tag|value' way to allow > > easy extension and backward compatibility. > > I wonder if this couldn't be renamed 'PERF_RECORD_CONFIG' and just go > on using one of those 2^64-1 tags for the 'stat config' needs, but then > this is just a matter of changing the name of this event, which won't > break anything when done. we use this event to update 'struct perf_stat_config', so it's kind of stat specific > > Other stuff we may want to have stored like this include sysctl, sysfs > values, kernel command line options used, etc. I think we could easily add record specific event for this once it's needed.. there's plenty of free numbers in user events area ;-) jirka