#include "src/trace_processor/importers/ftrace/virtio_gpu_tracker.h"
#include "perfetto/ext/base/string_utils.h"
#include "protos/perfetto/trace/ftrace/ftrace_event.pbzero.h"
#include "protos/perfetto/trace/ftrace/virtio_gpu.pbzero.h"
#include "src/trace_processor/importers/common/async_track_set_tracker.h"
#include "src/trace_processor/importers/common/event_tracker.h"
#include "src/trace_processor/importers/common/slice_tracker.h"
#include "src/trace_processor/importers/common/track_tracker.h"
enum virtio_gpu_ctrl_type { … };
static const char* virtio_gpu_ctrl_name(uint32_t type) { … }
namespace perfetto {
namespace trace_processor {
VirtioGpuTracker::VirtioGpuTracker(TraceProcessorContext* context)
: … { … }
void VirtioGpuTracker::ParseVirtioGpu(int64_t timestamp,
uint32_t field_id,
uint32_t pid,
protozero::ConstBytes blob) { … }
VirtioGpuTracker::VirtioGpuQueue::VirtioGpuQueue(TraceProcessorContext* context,
const char* name)
: … { … }
void VirtioGpuTracker::VirtioGpuQueue::HandleNumFree(int64_t timestamp,
uint32_t num_free) { … }
void VirtioGpuTracker::VirtioGpuQueue::HandleCmdQueue(int64_t timestamp,
uint32_t seqno,
uint32_t type,
uint64_t fence_id) { … }
void VirtioGpuTracker::VirtioGpuQueue::HandleCmdResponse(int64_t timestamp,
uint32_t seqno) { … }
void VirtioGpuTracker::ParseVirtioGpuCmdQueue(int64_t timestamp,
uint32_t ,
protozero::ConstBytes blob) { … }
void VirtioGpuTracker::ParseVirtioGpuCmdResponse(int64_t timestamp,
uint32_t ,
protozero::ConstBytes blob) { … }
}
}