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:
parent
110bb2c77d
commit
c544e56fb5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue