Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
VDISPLAY::HermesKmsMetrics Struct Reference

Output-lifetime counters read from the Hermes-KMS GET_METRICS ioctl. More...

#include <src/platform/linux/virtual_display.h>

Public Attributes

bool available = false
int output_index = -1
 0-based output selected for this snapshot.
std::string output_name
uint64_t frame_sequence = 0
 Latest frame sequence number.
uint64_t frame_update_count = 0
 Total framebuffer updates seen.
uint64_t acquire_count = 0
 ACQUIRE_FRAME ioctls served.
uint64_t acquire_no_frame_count = 0
 Acquires that found no new frame.
uint64_t dmabuf_export_count = 0
 DMA-BUFs exported to the consumer.
uint64_t dmabuf_export_fail_count = 0
 Failed DMA-BUF exports.
uint64_t wait_count = 0
 WAIT_FRAME ioctls served.
uint64_t wait_ready_count = 0
 Waits that returned a ready frame.
uint64_t wait_timeout_count = 0
 Waits that timed out.
uint64_t output_enable_count = 0
 Times the virtual output was enabled.
uint64_t output_disable_count = 0
 Times the virtual output was disabled.
uint64_t hotplug_event_count = 0
 Hotplug uevents emitted.
uint64_t last_update_ns = 0
 Timestamp of the last framebuffer update.
uint64_t last_wait_duration_ns = 0
bool session_lifecycle = false
uint64_t bound_fd_count = 0
uint64_t bind_count = 0
 Bindings granted over the output's lifetime.
uint64_t bind_reject_count = 0
 Binds refused: bad token, wrong session, revoked.
uint64_t unbind_count = 0
 Bindings given up by their holder.
uint64_t binding_revoke_count = 0
uint64_t cross_session_buffer_export_count = 0

Detailed Description

Output-lifetime counters read from the Hermes-KMS GET_METRICS ioctl.

These are cumulative since the driver created the output (not per-session) and are exposed by the diagnostics endpoint while Apollo owns an active Hermes-KMS session. available is false when there is no active authorized output or the device does not advertise the metrics capability.

Definition at line 145 of file virtual_display.h.

Member Data Documentation

◆ acquire_count

uint64_t VDISPLAY::HermesKmsMetrics::acquire_count = 0

ACQUIRE_FRAME ioctls served.

Definition at line 151 of file virtual_display.h.

◆ acquire_no_frame_count

uint64_t VDISPLAY::HermesKmsMetrics::acquire_no_frame_count = 0

Acquires that found no new frame.

Definition at line 152 of file virtual_display.h.

◆ available

bool VDISPLAY::HermesKmsMetrics::available = false

Definition at line 146 of file virtual_display.h.

◆ bind_count

uint64_t VDISPLAY::HermesKmsMetrics::bind_count = 0

Bindings granted over the output's lifetime.

Definition at line 171 of file virtual_display.h.

◆ bind_reject_count

uint64_t VDISPLAY::HermesKmsMetrics::bind_reject_count = 0

Binds refused: bad token, wrong session, revoked.

Definition at line 172 of file virtual_display.h.

◆ binding_revoke_count

uint64_t VDISPLAY::HermesKmsMetrics::binding_revoke_count = 0

Bindings dropped by an owner's revocation.

Definition at line 174 of file virtual_display.h.

◆ bound_fd_count

uint64_t VDISPLAY::HermesKmsMetrics::bound_fd_count = 0

Descriptors bound to the live session, including the short-lived one this snapshot binds to read the counters. Streaming with a single capture worker therefore reads 2; more than that is a leaked capability.

Definition at line 170 of file virtual_display.h.

◆ cross_session_buffer_export_count

uint64_t VDISPLAY::HermesKmsMetrics::cross_session_buffer_export_count = 0

Frames exported while the same buffer was another session's scanout. Legitimate when a compositor mirrors one buffer onto two outputs, but those consumers are not isolated from each other.

Definition at line 178 of file virtual_display.h.

◆ dmabuf_export_count

uint64_t VDISPLAY::HermesKmsMetrics::dmabuf_export_count = 0

DMA-BUFs exported to the consumer.

Definition at line 153 of file virtual_display.h.

◆ dmabuf_export_fail_count

uint64_t VDISPLAY::HermesKmsMetrics::dmabuf_export_fail_count = 0

Failed DMA-BUF exports.

Definition at line 154 of file virtual_display.h.

◆ frame_sequence

uint64_t VDISPLAY::HermesKmsMetrics::frame_sequence = 0

Latest frame sequence number.

Definition at line 149 of file virtual_display.h.

◆ frame_update_count

uint64_t VDISPLAY::HermesKmsMetrics::frame_update_count = 0

Total framebuffer updates seen.

Definition at line 150 of file virtual_display.h.

◆ hotplug_event_count

uint64_t VDISPLAY::HermesKmsMetrics::hotplug_event_count = 0

Hotplug uevents emitted.

Definition at line 160 of file virtual_display.h.

◆ last_update_ns

uint64_t VDISPLAY::HermesKmsMetrics::last_update_ns = 0

Timestamp of the last framebuffer update.

Definition at line 161 of file virtual_display.h.

◆ last_wait_duration_ns

uint64_t VDISPLAY::HermesKmsMetrics::last_wait_duration_ns = 0

Duration of the last frame wait.

Definition at line 162 of file virtual_display.h.

◆ output_disable_count

uint64_t VDISPLAY::HermesKmsMetrics::output_disable_count = 0

Times the virtual output was disabled.

Definition at line 159 of file virtual_display.h.

◆ output_enable_count

uint64_t VDISPLAY::HermesKmsMetrics::output_enable_count = 0

Times the virtual output was enabled.

Definition at line 158 of file virtual_display.h.

◆ output_index

int VDISPLAY::HermesKmsMetrics::output_index = -1

0-based output selected for this snapshot.

Definition at line 147 of file virtual_display.h.

◆ output_name

std::string VDISPLAY::HermesKmsMetrics::output_name

Definition at line 148 of file virtual_display.h.

◆ session_lifecycle

bool VDISPLAY::HermesKmsMetrics::session_lifecycle = false

True when the driver reports the session-capability lifecycle counters below (uapi >= 13); they read as zero on older drivers, which is why they are reported only when this is set.

Definition at line 166 of file virtual_display.h.

◆ unbind_count

uint64_t VDISPLAY::HermesKmsMetrics::unbind_count = 0

Bindings given up by their holder.

Definition at line 173 of file virtual_display.h.

◆ wait_count

uint64_t VDISPLAY::HermesKmsMetrics::wait_count = 0

WAIT_FRAME ioctls served.

Definition at line 155 of file virtual_display.h.

◆ wait_ready_count

uint64_t VDISPLAY::HermesKmsMetrics::wait_ready_count = 0

Waits that returned a ready frame.

Definition at line 156 of file virtual_display.h.

◆ wait_timeout_count

uint64_t VDISPLAY::HermesKmsMetrics::wait_timeout_count = 0

Waits that timed out.

Definition at line 157 of file virtual_display.h.


The documentation for this struct was generated from the following file: