Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pb_msg!(InternedGpuCounterDescriptor {
iid: u64, primitive, 1,
counter_descriptor: GpuCounterDescriptor, msg, 2,
gpu_id: i32, primitive, 3,
gpu_domain_id: u32, primitive, 4,
});

pb_msg!(GpuCounterEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pb_msg!(GpuTrackDescriptor {
gpu_id: i32, primitive, 1,
hw_queue_iid: u64, primitive, 2,
logical_queue_id: u64, primitive, 3,
gpu_domain_id: u32, primitive, 4,
});

pb_msg!(GpuCorrelation {
Expand Down
5 changes: 5 additions & 0 deletions protos/perfetto/trace/gpu/gpu_counter_event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,9 @@ message InternedGpuCounterDescriptor {

// optional. Identifier for GPU in a multi-gpu device.
optional int32 gpu_id = 3;

// optional. The domain of the GPU (e.g. a hardware block such as an SM or a
// PE) the counters belong to, scoped to `gpu_id`. See
// GpuTrackDescriptor.gpu_domain_id.
optional uint32 gpu_domain_id = 4;
}
7 changes: 7 additions & 0 deletions protos/perfetto/trace/gpu/gpu_track_event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ message GpuTrackDescriptor {
// from a process TrackDescriptor ancestor.
uint64 logical_queue_id = 3;
}

// The domain of the GPU this track and all tracks below it belong to: a
// hardware block (e.g. an SM or a PE) or a producer-defined logical
// grouping, scoped to `gpu_id`. Other data sources identify the same domain
// with the same ID, e.g. InternedGpuCounterDescriptor.gpu_domain_id. Tracks
// below it must not declare a different `gpu_domain_id`.
optional uint32 gpu_domain_id = 4;
}

message GpuTrackDescriptorExtension {
Expand Down
5 changes: 5 additions & 0 deletions protos/perfetto/trace/perfetto_trace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14020,6 +14020,11 @@ message InternedGpuCounterDescriptor {

// optional. Identifier for GPU in a multi-gpu device.
optional int32 gpu_id = 3;

// optional. The domain of the GPU (e.g. a hardware block such as an SM or a
// PE) the counters belong to, scoped to `gpu_id`. See
// GpuTrackDescriptor.gpu_domain_id.
optional uint32 gpu_domain_id = 4;
}

// End of protos/perfetto/trace/gpu/gpu_counter_event.proto
Expand Down
Loading