[PATCH] generate xlat structs

Dmitry V. Levin ldv at altlinux.org
Fri May 30 23:51:09 UTC 2014


On Sat, Apr 26, 2014 at 11:58:35PM +0400, Dmitry V. Levin wrote:
> On Fri, Apr 18, 2014 at 02:46:25AM +0400, Dmitry V. Levin wrote:
> > On Mon, Feb 17, 2014 at 07:08:52PM +0400, Dmitry V. Levin wrote:
> > > On Mon, Feb 17, 2014 at 03:18:44AM -0500, Mike Frysinger wrote:
> > > > On Monday, February 17, 2014 02:51:17 Dmitry V. Levin wrote:
> > > [...]
> > > > > > +	echo "const struct xlat ${name}[] = {"
> > > > > 
> > > > > static?
> > > > 
> > > > i started with that, but not all xlat's are static like addrfams :(.  but i 
> > > > didn't want to try extending the file format too much to support this as then 
> > > > we'd have this giant ad-hoc mess.  any suggestions on any semi-existing 
> > > > standards/structured file formats to use ?
> > > 
> > > No, your simple lists are better than any structured file formats.
> > 
> > BTW, there are about 167 static xlat structs and only 5 global xlat structs.
> > All 5 are declared in defs.h, we surely can handle them somehow.
> > 
> > I'd like to have your nice idea implemented and all xlat structs
> > converted before the release.
> > Is there any chance this will happen? ;)
> 
> The result of my experiments on this subject is pushed to ldv/xlat branch.
> It seems to work after all.

Pushed to master.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140531/36669c11/attachment.bin>


More information about the Strace-devel mailing list