platform/drm-tests: Make mali_stats tast friendly

Change mali_stats from a simple PoC program to a user-friendly program
that either prints out % total GPU usage, or all available counters for
a given platform depending on the usage flags.

Also add a CSV file for raw counter data and a python script to
automatically generate C code for referencing the counters.

TEST=Tested on asurada

Change-Id: I5b87bbcfc27c136c9d6332e0f8a375e1ab4a7e70
Reviewed-by: Fritz Koenig <>
Reviewed-by: Miguel Casas-Sanchez <>
Tested-by: Justin Green <>
Commit-Queue: Justin Green <>
10 files changed