Re: [PATCH 5/5] perf tools: Add report.show-headers config file option

From: Jiri Olsa
Date: Thu Jun 19 2014 - 13:02:40 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/