doc/examples: use provided include files in configs
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 18 Mar 2016 21:54:19 +0000 (17:54 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 18 Mar 2016 21:55:00 +0000 (17:55 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
doc/examples/linux-fs-simple/config.yaml
doc/examples/parallella/config.yaml

index e7ac5a71cc2b32d546851c8de09f3c4e5934f382..9439f813c726d8722650f48476fe1b9736ce8619 100644 (file)
@@ -1,47 +1,11 @@
 version: '2.1'
 metadata:
+  $include:
+    - stdint.yaml
+    - stdfloat.yaml
+    - stdmisc.yaml
+    - lttng-ust-log-levels.yaml
   type-aliases:
-    uint8:
-      class: integer
-      size: 8
-    uint16:
-      class: integer
-      size: 16
-    uint32:
-      class: integer
-      size: 32
-    uint64:
-      class: integer
-      size: 64
-    int8:
-      $inherit: uint8
-      signed: true
-    int16:
-      $inherit: int8
-      size: 16
-    int32:
-      $inherit: int8
-      size: 32
-    int64:
-      $inherit: int8
-      size: 64
-    float:
-      class: floating-point
-      size:
-        exp: 8
-        mant: 24
-      align: 32
-    double:
-      class: floating-point
-      size:
-        exp: 11
-        mant: 53
-      align: 64
-    byte: uint8
-    uuid:
-      class: array
-      length: 16
-      element-type: byte
     clock-int:
       $inherit: uint64
       property-mappings:
@@ -57,22 +21,6 @@ metadata:
         - READY
         - RUNNING
         - WAITING
-  $log-levels:
-    EMERG: 0
-    ALERT: 1
-    CRIT: 2
-    ERR: 3
-    WARNING: 4
-    NOTICE: 5
-    INFO: 6
-    DEBUG_SYSTEM: 7
-    DEBUG_PROGRAM: 8
-    DEBUG_PROCESS: 9
-    DEBUG_MODULE: 10
-    DEBUG_UNIT: 11
-    DEBUG_FUNCTION: 12
-    DEBUG_LINE: 13
-    DEBUG: 14
   clocks:
     default:
       freq: 1000000000
@@ -80,15 +28,8 @@ metadata:
         seconds: 1434072888
       $return-ctype: uint64_t
   trace:
+    $include: trace-basic.yaml
     byte-order: le
-    uuid: auto
-    packet-header-type:
-      class: struct
-      min-align: 8
-      fields:
-        magic: uint32
-        uuid: uuid
-        stream_id: uint8
   streams:
     default:
       packet-context-type:
index 63b706479063c855cce911ade0537e66272171e1..9c9ab22db94bd5bbebd973179440dba8239de5e0 100644 (file)
@@ -1,50 +1,14 @@
 version: '2.1'
 metadata:
+  $include:
+    - stdint.yaml
+    - stdfloat.yaml
+    - stdmisc.yaml
+    - lttng-ust-log-levels.yaml
   type-aliases:
-    uint8:
-      class: integer
-      size: 8
     uint6:
-      class: integer
+      $inherit: bit-packed-uint8
       size: 6
-    uint16:
-      class: integer
-      size: 16
-    uint32:
-      class: integer
-      size: 32
-    uint64:
-      class: integer
-      size: 64
-    int8:
-      $inherit: uint8
-      signed: true
-    int16:
-      $inherit: int8
-      size: 16
-    int32:
-      $inherit: int8
-      size: 32
-    int64:
-      $inherit: int8
-      size: 64
-    float:
-      class: floating-point
-      size:
-        exp: 8
-        mant: 24
-      align: 32
-    double:
-      class: floating-point
-      size:
-        exp: 11
-        mant: 53
-      align: 64
-    byte: uint8
-    uuid:
-      class: array
-      length: 16
-      element-type: byte
     clock_int:
       $inherit: uint64
       property-mappings:
@@ -60,24 +24,6 @@ metadata:
         - READY
         - RUNNING
         - WAITING
-    str:
-      class: string
-  $log-levels:
-    EMERG: 0
-    ALERT: 1
-    CRIT: 2
-    ERR: 3
-    WARNING: 4
-    NOTICE: 5
-    INFO: 6
-    DEBUG_SYSTEM: 7
-    DEBUG_PROGRAM: 8
-    DEBUG_PROCESS: 9
-    DEBUG_MODULE: 10
-    DEBUG_UNIT: 11
-    DEBUG_FUNCTION: 12
-    DEBUG_LINE: 13
-    DEBUG: 14
   clocks:
     default:
       freq: 1000000000
@@ -85,15 +31,8 @@ metadata:
         seconds: 1434580186
       $return-ctype: uint64_t
   trace:
+    $include: trace-basic.yaml
     byte-order: le
-    uuid: auto
-    packet-header-type:
-      class: struct
-      min-align: 8
-      fields:
-        magic: uint32
-        uuid: uuid
-        stream_id: uint8
   streams:
     default:
       packet-context-type:
@@ -145,5 +84,5 @@ metadata:
           payload-type:
             class: struct
             fields:
-              the_string: str
+              the_string: string
               the_float: float
This page took 0.036384 seconds and 4 git commands to generate.