Add a named pipe that can be used to control the VK_LAYER_MESA_overlay.
Some tools to automate gathering of benchmark data need the ability to start/stop statistic capturing while the benchmark/game is running. This series is an attempt to solve that. It creates a named pipe that allows any process to send commands to start/stop statistics capturing, and hopefully tries to make it easy to extend in the future.
Some alternatives to provide such control without a named pipe would be:
- creating a socket and listening to clients/connections
- using a signal handler or signalfd
- other ideas?
I chose the named pipe because I think for this use, it's the simple and lightweight, but still extensible enough. I'm open to other options too.