mesa/src/tool/pps
Julia Zhang 20b809f1f0
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
pps: init driver in OnSetup
Initialization of driver has been moved to register_data_source() from
OnSetup() by: a739889789 ("pps: Report available counters when
gpu.counters* data source is registered")

With above change, pps will destroy driver when collecting data stops
(pps may keep running) then the driver will become nullptr when user try
to collect data again. This will cause segmentation fault in OnSetup().

So this remove driver = nullptr in OnStop() and init driver in OnSetup()
to make sure driver exists when pps-producer run more than once.

Fixes: a739889789 ("pps: Report available counters when gpu.counters*
data source is registered")

Signed-off-by: Julia Zhang <Julia.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36548>
2025-08-27 02:27:03 +00:00
..
cfg panvk: add u_trace perfetto support 2024-12-17 23:14:26 +00:00
.clang-format
meson.build pps: Generate libgpudataprofiling.so from pps-producer sources for Android CTS 2025-07-15 20:29:57 +00:00
pps.cc
pps.h meson: Allow configuring with Android-internal perfetto 2025-08-07 16:22:37 +00:00
pps_algorithm.h
pps_config.cc
pps_counter.cc
pps_counter.h
pps_datasource.cc pps: init driver in OnSetup 2025-08-27 02:27:03 +00:00
pps_datasource.h pps: Report available counters when gpu.counters* data source is registered 2025-07-15 20:29:57 +00:00
pps_device.cc
pps_device.h
pps_driver.cc pps: Add support for v3d ds 2024-12-13 12:29:11 +00:00
pps_driver.h perfetto/pps-producer: add optimized cpu/gpu timestamp correlation support 2023-11-09 13:22:48 +00:00
pps_producer.cc pps: Generate libgpudataprofiling.so from pps-producer sources for Android CTS 2025-07-15 20:29:57 +00:00