lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 7 Feb 2012 12:50:21 -0200
From:	Arnaldo Carvalho de Melo <acme@...stprotocols.net>
To:	Ingo Molnar <mingo@...e.hu>
Cc:	David Ahern <dsahern@...il.com>, linux-kernel@...r.kernel.org,
	peterz@...radead.org, fweisbec@...il.com, paulus@...ba.org,
	tglx@...utronix.de
Subject: Re: [PATCH] perf-record: no build id option fails

Em Tue, Feb 07, 2012 at 10:06:23AM +0100, Ingo Molnar escreveu:
> 
> * David Ahern <dsahern@...il.com> wrote:
> 
> > --- a/tools/perf/builtin-record.c
> > +++ b/tools/perf/builtin-record.c
> > @@ -504,9 +504,9 @@ static int __cmd_record(struct perf_record *rec, int argc, const char **argv)
> >  			return err;
> >  	}
> >  
> > -	if (!!rec->no_buildid
> > +	if (!rec->no_buildid
> >  	    && !perf_header__has_feat(&session->header, HEADER_BUILD_ID)) {
> > -		pr_err("Couldn't generating buildids. "
> > +		pr_err("Couldn't generate buildids. "
> >  		       "Use --no-buildid to profile anyway.\n");
> 
> After this fix it might make sense to do a s/no_buildid/build_id 
> across the source and negate all the conditions. Generally it's 
> cleaner to have no negation in structure field names, it avoids 
> such double and triple negation problems.
> 
> The feature bit did it correctly: it has HEADER_BUILD_ID which 
> signals the presence of build-ids.
> 
> ( Btw., in error messages it might make sense to do a 
>   subsystem-wide s/buildid/build-id rename as well, to make it 
>   all easier to read - when I read 'buildid' I often keep 
>   wondering who that Buil guy is and what he did. )

Yeah, making it consistently build_id (and build-id in command line
options) is better than disturbing Buil, as he did nothing to deserve
that level of disturbance from these pesky linux guys ;-)

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ