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:	Fri, 16 Oct 2009 09:42:22 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Frederic Weisbecker <fweisbec@...il.com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Peter Zijlstra <peterz@...radead.org>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Mike Galbraith <efault@....de>,
	Paul Mackerras <paulus@...ba.org>,
	Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH] perf tools: Add a new generic section in perf.data


* Frederic Weisbecker <fweisbec@...il.com> wrote:

> On Fri, Oct 16, 2009 at 09:10:46AM +0200, Ingo Molnar wrote:
> > 
> > * Frederic Weisbecker <fweisbec@...il.com> wrote:
> > 
> > > +/*
> > > + * Version 0: contains trace_info section only
> > > + */
> > > +struct perf_file_additionals {
> > > +	u64				version;
> > > +	struct perf_file_section	trace_info;
> > > +};
> > 
> > i dont disagree with the change - but it would be even nicer to simply 
> > define a features bitmask, instead of a flat version - and add the 
> > trace_info section as a feature.
> > 
> > That way it's all a lot more manageable: we dont know about versions per 
> > se, we know about features. Individual features could be developed (and 
> > backported) in a distributed way - without having to worry about a flat 
> > version model.
> > 
> > So i'd suggest something like a bitmask in the perf.data file header:
> > 
> > 	DECLARE_BITMAP(features, 256);
> > 
> > Plus every perf version knows about the features it supports:
> > 
> > 	DECLARE_BITMAP(features_supported, 256);
> > 
> > The compatibility rule is: perf only touches attributes that belong to 
> > features it knows about.
> > 
> > 	Ingo
> 
> 
> Yeah, I've thought about that too but feared about the limitation of 
> bitweight(u64), although it's probably enough, we never know. That 
> said I can take a bunch of four u64 to draw this bitmap and 256 
> features is enough.
> 
> Indeed that's way much better as a bitmap. Will do that instead.

Yeah, but please reuse linux/bitmap.h instead of some open-coded array 
of 4x u64's.

	Ingo
--
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