ac/rgp: dump co, col, pso database to rgp profile file
authorYogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Wed, 27 Jan 2021 10:54:48 +0000 (16:24 +0530)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Feb 2021 14:29:47 +0000 (14:29 +0000)
commit9ce8b5024aec433d590d1b5c416f2ddff4d17c1d
treeeb3db0dbaa0b275669748fe7d3765fcef0748f3f
parent5d51ccd7d16b210d475b2b65c334b8efccfb639f
ac/rgp: dump co, col, pso database to rgp profile file

This patch dumps code object, code object loader events, pso correlation
databses to given rgp profile file. The data to dump is taken from
struct rgp_code_object, struct rgp_loader_events and
struct rgp_pso_correlation.

v2: fix sqtt_file structure name to match existing names in file.
    fix checking wrong variable for pso correlation record_count.
    remove freeing rgp database here.

Signed-off-by: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8609>
src/amd/common/ac_rgp.c