/
warning.proto
46 lines (40 loc) · 895 Bytes
/
warning.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
syntax = "proto3";
package alex;
message Warning {
// optional
SampleId sample_id = 1;
// "polymorphism", a warning is one of these types
oneof warning {
Throttle throttle = 2;
Lost lost = 3;
}
}
// additional data added if sample_id_all is set in perf_event_open attrs
// see perf_event_open's description of struct sample_id
message SampleId {
uint32 pid = 1;
uint32 tid = 2;
uint64 time = 3;
uint64 stream_id = 4;
uint64 id = 5;
}
// for both throttle and unthrottle
message Throttle {
Type type = 1;
uint64 time = 2;
// the new period
uint64 period = 3;
// duplicate of field in sampleId if it's set
uint64 stream_id = 4;
// duplicate of field in sampleId if it's set
uint64 id = 5;
enum Type {
THROTTLE = 0;
UNTHROTTLE = 1;
}
}
message Lost {
uint64 lost = 1;
// duplicate of field in sampleId if it's set
uint64 id = 2;
}