From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64447 invoked by alias); 1 May 2019 21:29:39 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 64439 invoked by uid 89); 1 May 2019 21:29:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=Hang, expertise, H*i:sk:e192a04, H*f:sk:e192a04 X-HELO: mail-ua1-f67.google.com Received: from mail-ua1-f67.google.com (HELO mail-ua1-f67.google.com) (209.85.222.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 01 May 2019 21:29:37 +0000 Received: by mail-ua1-f67.google.com with SMTP id l17so70147uar.4 for ; Wed, 01 May 2019 14:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vH3DH6MwYPdrsgZnTo9gSjUOYFkvnu4ex+vOvmO66yU=; b=D3vMMG4BRW0equ7R1ZicbxTFnCfEFXcMGpwVgBs7g8Hc5YjPcc/TS1O4cBa1nwQYHg Jgm9UI7jxgRcgaD5lvK1DyMAN1V07BtWXbPzSWCIKPYaqXey/vOXLErz32yPQr8XuNiC gcFfXHha4L8htoTCdj7xN6yl21H75YdsjgtrXcDJst9HbAfcg6cw6twx6Pop+Kv+TLM5 ehnukEijm4e4FewdcrOPqvgtedRmGF3HoFN74oHPQOG8hgupezeHCyZRt+bwSlBOCSij k9F/2W9QPXz84WTkftYP+ZPoNaRRP80JjpngAsBZszSKUMvYMQ+zJVODh3hS82w4qfr0 3oeA== MIME-Version: 1.0 References: <20190430225706.159422-1-nick.alcock@oracle.com> <20190430225706.159422-2-nick.alcock@oracle.com> In-Reply-To: From: Jim Wilson Date: Wed, 01 May 2019 21:29:00 -0000 Message-ID: Subject: Re: [PATCH 01/19] include: new header ctf.h: file format description To: Nick Clifton Cc: Nick Alcock , Binutils Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00091.txt.bz2 On Wed, May 1, 2019 at 9:57 AM Nick Clifton wrote: > > +/* CTF format description. > > + Copyright (C) 2004-2019 Free Software Foundation, Inc. > > Copyright starting from 2004, really ? Looks like CTF is part of dtrace which Oracle inherited from Sun. Wikipedia tells me that the first release of dtrace was in Jan 2005, so a 2004 copyright looks right if this is the original sources from Sun subsequently modified by Oracle. > > +/* CTF - Compact ANSI-C Type Format > ANSI-C ? Isn't everyone using ISO-C these days ? I was going to say the same thing. > Also - does this format explicitly exclude other languages like C++ or Go or Rust ? Apparently doesn't explicitly exclude them, it just doesn't explicitly include them, and with only 64 possible type classes, it looks like you could run out without some clever encoding for other languages. > > +#define CTF_VERSION_3 4 > > +#define CTF_VERSION CTF_VERSION_3 /* Current version. */ > > Hang on - so the value of CTF_VERSION_3 is 4 ? Does this mean that the > full version number is 3.4, or 4.0 or just 4 ? I am a bit confused... Looks like there was a version 1+ which took number 2. https://github.com/oracle/libdtrace-ctf/blob/master/include/sys/ctf.h#L149 I don't have any expertise with CTF, I was just curious, so did a little looking around for more info and found the version number encoding. I also found a FreeBSD man page which has some useful intro data. https://www.freebsd.org/cgi/man.cgi?query=ctf&sektion=5&manpath=freebsd-release-ports Jim