Skip to content

Commit 7f03eae

Browse files
committed
Worked on Apple Unified Logging format support
1 parent 50b2ac5 commit 7f03eae

File tree

6 files changed

+1185
-763
lines changed

6 files changed

+1185
-763
lines changed

documentation/Apple Unified Logging and Activity Tracing formats.asciidoc

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ Contains a 32-bit value, formatted as "<private>"
774774
Contains a 8-bit, 16-bit, 32-bit or 64-bit value
775775
3+|
776776
| 0x10 | | [yellow-background]*Unknown (integer format precision)* +
777+
Contains a 32-bit value +
777778
This value has been seen to be used in combination with format strings like "%.0lld"
778779
3+|
779780
| 0x12 | | [yellow-background]*Unknown (string format precision)* +
@@ -1283,10 +1284,10 @@ The flags are defined as:
12831284
| Value | Identifier | Description
12841285
| "#" | | Value should be converted to an "alternate form". Note that "%#x" is formatted as "0x%x" with the exception of "0".
12851286
| "0" | | Value should be padded with 0
1286-
| "-" | | Value should be right-justified instead of left-justified
1287+
| "-" | | Value should be left-justified instead of right-justified
12871288
| " " | | Value should be padded with space
12881289
| "+" | | Add the '+' sign in front of positive values
1289-
| "'" | |
1290+
| "'" | | [yellow-background]*TODO describe*
12901291
|===
12911292

12921293
The length modifiers are defined as:
@@ -1348,32 +1349,6 @@ The types are defined as:
13481349

13491350
===== Notes
13501351

1351-
For a format string like "%25s:%-5d" the string and the integer are right
1352-
aligned.
1353-
1354-
....
1355-
%25s:%-5d Destroying SandboxHelper connection
1356-
....
1357-
1358-
Formatted as:
1359-
1360-
....
1361-
SandboxHelperClient.cpp:53 Destroying SandboxHelper connection
1362-
....
1363-
1364-
This is not the case if there is a "[" in front of the string:
1365-
1366-
....
1367-
[%s:%-5d %.*s:%p] constructed
1368-
....
1369-
1370-
Formatted as:
1371-
1372-
....
1373-
[Detector.cpp:20 rtaid::Detector:0x7f9b67f255e0] constructed
1374-
....
1375-
1376-
13771352
For a format string like "%6.6d" 0 padding is used.
13781353

13791354
....
@@ -1552,7 +1527,8 @@ Contains an UTF-8 formatted string with an end-of-string character
15521527
Note that appears to be only used by the "Activity" record type, other record types use info
15531528
| 0x01 | info | Info
15541529
| 0x02 | debug | Debug
1555-
| 0x03 | useraction | Useraction
1530+
| 0x03 | useraction | Useraction +
1531+
Note that appears to be only used by the "Activity" record type
15561532
| | |
15571533
| 0x10 | error | Error
15581534
| 0x11 | fault | Fault

dtformats/aul_tracev3.debug.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,9 @@ attributes:
140140
- name: value_data_size
141141
description: "Value data size"
142142
format: decimal
143-
- name: floating_point
144-
description: "Floating point value"
145-
format: floating_point
146-
- name: integer
147-
description: "Integer value"
148-
format: decimal
149143
- name: private_string
150144
description: "Private string value"
151145
format: string
152-
- name: string
153-
description: "String value"
154-
format: string
155-
- name: uuid
156-
description: "UUID value"
157-
format: uuid
158146
- name: value_data
159147
description: "Value data"
160148
format: binary_data

dtformats/aul_tracev3.yaml

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ attributes:
1919
size: 1
2020
units: bytes
2121
---
22-
name: int8
23-
type: integer
24-
attributes:
25-
format: signed
26-
size: 1
27-
units: bytes
28-
---
2922
name: uint8
3023
type: integer
3124
attributes:
@@ -61,13 +54,6 @@ attributes:
6154
size: 4
6255
units: bytes
6356
---
64-
name: int64
65-
type: integer
66-
attributes:
67-
format: signed
68-
size: 8
69-
units: bytes
70-
---
7157
name: uint64
7258
type: integer
7359
attributes:
@@ -81,68 +67,6 @@ encoding: utf8
8167
element_data_type: char
8268
elements_terminator: "\x00"
8369
---
84-
name: int16le
85-
type: integer
86-
attributes:
87-
byte_order: little-endian
88-
format: signed
89-
size: 2
90-
units: bytes
91-
---
92-
name: int32le
93-
type: integer
94-
attributes:
95-
byte_order: little-endian
96-
format: signed
97-
size: 4
98-
units: bytes
99-
---
100-
name: int64le
101-
type: integer
102-
attributes:
103-
byte_order: little-endian
104-
format: signed
105-
size: 8
106-
units: bytes
107-
---
108-
name: uint16le
109-
type: integer
110-
attributes:
111-
byte_order: little-endian
112-
format: unsigned
113-
size: 2
114-
units: bytes
115-
---
116-
name: uint32le
117-
type: integer
118-
attributes:
119-
byte_order: little-endian
120-
format: unsigned
121-
size: 4
122-
units: bytes
123-
---
124-
name: uint64le
125-
type: integer
126-
attributes:
127-
byte_order: little-endian
128-
format: unsigned
129-
size: 8
130-
units: bytes
131-
---
132-
name: float32le
133-
type: floating-point
134-
attributes:
135-
byte_order: little-endian
136-
size: 4
137-
units: bytes
138-
---
139-
name: float64le
140-
type: floating-point
141-
attributes:
142-
byte_order: little-endian
143-
size: 8
144-
units: bytes
145-
---
14670
name: uuid_be
14771
type: uuid
14872
attributes:

0 commit comments

Comments
 (0)