Skip to content

Draft: pps: rework to deal with multiple GPUs

Instead of having the DataSource single threaded and dealing with a single driver, each driver gets its own worker thread, pulling data from the driver and sending it over to the perfetto process doing the recording. This approach is inspired from the StressProducer in the perfetto repository [1].

This change deletes the pps_device completely as now drivers are instanced once per DRM device. Based on the configuration of the capture, worker threads are started to capture a given driver instance.

Signed-off-by: Lionel Landwerlin lionel.g.landwerlin@intel.com

[1] : https://github.com/google/perfetto/blob/af28ea349b7bbe63f9f2436e46a48301782449ff/test/stress_test/stress_producer.cc

Merge request reports