From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933984AbaFSRCh (ORCPT ); Thu, 19 Jun 2014 13:02:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3641 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932232AbaFSRCg (ORCPT ); Thu, 19 Jun 2014 13:02:36 -0400 Date: Thu, 19 Jun 2014 18:51:13 +0200 From: Jiri Olsa To: Namhyung Kim Cc: Jiri Olsa , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Corey Ashford , David Ahern , Frederic Weisbecker , Ingo Molnar , Paul Mackerras , Peter Zijlstra Subject: Re: [PATCH 5/5] perf tools: Add report.show-headers config file option Message-ID: <20140619165113.GB31520@krava.brq.redhat.com> References: <1403178076-14072-1-git-send-email-jolsa@kernel.org> <1403178076-14072-6-git-send-email-jolsa@kernel.org> <1403182604.1670.26.camel@leonhard> <20140619130202.GA24328@krava.brq.redhat.com> <1403183399.1670.30.camel@leonhard> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1403183399.1670.30.camel@leonhard> 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 On Thu, Jun 19, 2014 at 10:09:59PM +0900, Namhyung Kim wrote: > 2014-06-19 (목), 15:02 +0200, Jiri Olsa: > > On Thu, Jun 19, 2014 at 09:56:44PM +0900, Namhyung Kim wrote: > > > [SNIP] > > > > @@ -35,6 +35,7 @@ struct symbol_conf symbol_conf = { > > > > .demangle = true, > > > > .cumulate_callchain = true, > > > > .symfs = "", > > > > + .show_headers = -1, > > > > > > Hmm.. why not just making it boolean and set it to true (like others)? > > > > I need 'unset' value, otherwise I dont know if the config > > option was unset by user or not touched at all > > I don't understand why you need it.. isn't it enough to check the > config option before using the value? if config file option is not specified the show_headers value will be 'false' ... which will cause headers not to be displayed.. but they should be by default jirka