intel: tools: dump: make dump tool reliable under gdb
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 20 Jul 2018 10:18:18 +0000 (11:18 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 20 Jul 2018 16:36:37 +0000 (17:36 +0100)
commit2a9069eb97f636b427430ffc49813dfbfa96d56f
tree6939ad58a513f0b153272ff7be11652bd1adf079
parent1efc9094e0e6a8ec3be9fd146fc781b1a48c1760
intel: tools: dump: make dump tool reliable under gdb

The problem with passing the configuration of the dump lib through a
file descriptor is that it can be read only once. But under gdb you
might want to rerun your program multiple times.

This change hands the configuration through a temporary file that is
deleted once the command line passes to intel_dump_gpu has exited.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/tools/intel_dump_gpu.c
src/intel/tools/intel_dump_gpu.in