X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-test%2Ftofix%2Fctf-path.txt;h=ccfcbda1833427476a7c21a8ba0edfe8eacc5f79;hp=718d763807930ebe82dcb9c78bdc697c89619934;hb=8a9a5dfef0e45118b5735ee444f56247a0cc0e02;hpb=ff34a2553be1776a20e616afc83e6ed0e3796802 diff --git a/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt b/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt index 718d7638..ccfcbda1 100644 --- a/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt +++ b/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt @@ -7,8 +7,8 @@ trace { byte_order = le; uuid = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"; packet.header := struct { - uint32_t magic; - }; + uint32_t magic; + }; }; variant var { @@ -30,7 +30,38 @@ event { /* * TODO: Only an identifier is expected in the variant/sequence * tag. It should be a dotted expression (a path). + * */ variant var b; + + /* + * TODO + * The path lookup only allows lookup for a full path starting + * from the root or for a field within the current scope. The + * CTF spec allows defining a relative sub-scope for a preceding + * field. + */ + struct { + enum select sel2; + } str2; + variant var2 b; + + /* + * TODO: Deal with path name lookup conflict, e.g. if a field is + * named "stream", it conflicts with the stream dynamic scope. + * Local fields hide dynamic scopes. + */ + struct { + enum select sel3 + } stream; + variant var3 c; + /* But now the following lookup should fail: */ + /* variant var4 d; */ + + /* + * TODO: support conflict-free local-scoped tags, starting with + * ".". + */ + variant var5 <.stream.sel3> e; }; };