mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
intel/perf: Add a macro with header + sample length
To be more explicit lets have 2 macros one with sample lenght other with header and sample length. This will also help add Xe KMD support as it don't have a header like i915. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29421>
This commit is contained in:
parent
2f128b2ba5
commit
9841aeb6ad
2 changed files with 7 additions and 3 deletions
|
|
@ -131,8 +131,12 @@ struct intel_pipeline_stat {
|
|||
#define STATS_BO_END_OFFSET_BYTES (STATS_BO_SIZE / 2)
|
||||
#define MAX_STAT_COUNTERS (STATS_BO_END_OFFSET_BYTES / 8)
|
||||
|
||||
#define I915_PERF_OA_SAMPLE_SIZE (8 + /* drm_i915_perf_record_header */ \
|
||||
256) /* OA counter report */
|
||||
/* Up to now all platforms uses the same sample size */
|
||||
#define INTEL_PERF_OA_SAMPLE_SIZE 256
|
||||
|
||||
/* header + sample */
|
||||
#define INTEL_PERF_OA_HEADER_SAMPLE_SIZE (sizeof(struct intel_perf_record_header) + \
|
||||
INTEL_PERF_OA_SAMPLE_SIZE)
|
||||
|
||||
struct intel_perf_query_result {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ struct oa_sample_buf {
|
|||
struct exec_node link;
|
||||
int refcount;
|
||||
int len;
|
||||
uint8_t buf[I915_PERF_OA_SAMPLE_SIZE * 10];
|
||||
uint8_t buf[INTEL_PERF_OA_HEADER_SAMPLE_SIZE * 10];
|
||||
uint32_t last_timestamp;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue