#include <linux/sort.h>
#include "intel_gpu_commands.h"
#include "intel_gt_pm.h"
#include "intel_rps.h"
#include "i915_selftest.h"
#include "selftests/igt_flush_test.h"
#define COUNT …
static int cmp_u32(const void *A, const void *B)
{ … }
static intel_wakeref_t perf_begin(struct intel_gt *gt)
{ … }
static int perf_end(struct intel_gt *gt, intel_wakeref_t wakeref)
{ … }
static i915_reg_t timestamp_reg(struct intel_engine_cs *engine)
{ … }
static int write_timestamp(struct i915_request *rq, int slot)
{ … }
static struct i915_vma *create_empty_batch(struct intel_context *ce)
{ … }
static u32 trifilter(u32 *a)
{ … }
static int perf_mi_bb_start(void *arg)
{ … }
static struct i915_vma *create_nop_batch(struct intel_context *ce)
{ … }
static int perf_mi_noop(void *arg)
{ … }
int intel_engine_cs_perf_selftests(struct drm_i915_private *i915)
{ … }
static int intel_mmio_bases_check(void *arg)
{ … }
int intel_engine_cs_mock_selftests(void)
{ … }