ac/rgp: expose data structure to populate co, col, pso database

This patch exposes struct rgp_code_object, struct rgp_loader_events and
struct rgp_pso_correlation into struct ac_thread_trace_data. Other modules
can fill in this data structure. The code object, code object loader events,
pso correlation database is written to rgp profile file using data from
these data structure exposed by this patch.

v2: move the data structures to struct ac_thread_trace_data

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>
This commit is contained in:
Yogesh Mohan Marimuthu 2021-01-29 15:11:42 +05:30 committed by Marge Bot
parent 110bb2c77d
commit c544e56fb5
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,7 @@
#include <assert.h>
#include "c11_compat.h"
#include "ac_rgp.h"
struct radeon_cmdbuf;
struct radeon_info;
@ -44,6 +45,10 @@ struct ac_thread_trace_data {
uint32_t buffer_size;
int start_frame;
char *trigger_file;
struct rgp_code_object rgp_code_object;
struct rgp_loader_events rgp_loader_events;
struct rgp_pso_correlation rgp_pso_correlation;
};
#define SQTT_BUFFER_ALIGN_SHIFT 12