• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Sequence 1 defaults to track for "t1".
2packet {
3  trusted_packet_sequence_id: 1
4  timestamp: 0
5  incremental_state_cleared: true
6  track_descriptor {
7    uuid: 1
8    thread {
9      pid: 5
10      tid: 1
11      thread_name: "t1"
12    }
13  }
14  trace_packet_defaults {
15    track_event_defaults {
16      track_uuid: 1
17    }
18  }
19}
20
21# Track event with category.
22packet {
23  trusted_packet_sequence_id: 1
24  timestamp: 10000
25  track_event {
26    track_uuid: 0
27    categories: "cat"
28    name: "event1"
29    legacy_event {
30      phase: 66  # 'B'
31    }
32  }
33}
34
35# End track event without category.
36packet {
37  trusted_packet_sequence_id: 1
38  timestamp: 11000
39  track_event {
40    track_uuid: 0
41    legacy_event {
42      phase: 69  # 'E'
43    }
44  }
45}
46
47# Another track event.
48packet {
49  trusted_packet_sequence_id: 1
50  timestamp: 20000
51  track_event {
52    track_uuid: 0
53    categories: "cat"
54    name: "event2"
55    legacy_event {
56      phase: 66  # 'B'
57    }
58  }
59}
60
61# atrace event on the same track
62packet {
63  ftrace_events {
64    cpu: 1
65    event {
66      timestamp: 21000
67      pid: 1
68      print {
69        ip: 1
70        buf: "B|5|atrace\n"
71      }
72    }
73  }
74}
75
76# End track event.  Packet is out of order, but shouldn't crash because
77# category is specified.
78packet {
79  trusted_packet_sequence_id: 1
80  timestamp: 28000
81  track_event {
82    track_uuid: 0
83    categories: "cat"
84    legacy_event {
85      phase: 69  # 'E'
86    }
87  }
88}
89
90# End atrace event
91packet {
92  ftrace_events {
93    cpu: 1
94    event {
95      timestamp: 29000
96      pid: 1
97      print {
98        ip: 1
99        buf: "E|5\n"
100      }
101    }
102  }
103}
104