drm/i915: Rename struct intel_context
Our goal is to rename the anonymous per-engine struct beneath the current intel_context. However, after a lively debate resolving around the confusion between intel_context_engine and intel_engine_context, the realisation is that the two structs target different users. The outer struct is API / user facing, and so carries the higher level GEM information. The inner struct is hw facing. Thus we want to name the inner struct intel_context and the outer one i915_gem_context. As the first step, we need to rename the current struct: s/struct intel_context/struct i915_gem_context/ which fits much better with its constructors already conveying the i915_gem_context prefix! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Dave Gordon <david.s.gordon@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1464098023-3294-1-git-send-email-chris@chris-wilson.co.uk
This commit is contained in:
@@ -734,12 +734,12 @@ DEFINE_EVENT(i915_ppgtt, i915_ppgtt_release,
|
||||
* the context.
|
||||
*/
|
||||
DECLARE_EVENT_CLASS(i915_context,
|
||||
TP_PROTO(struct intel_context *ctx),
|
||||
TP_PROTO(struct i915_gem_context *ctx),
|
||||
TP_ARGS(ctx),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(u32, dev)
|
||||
__field(struct intel_context *, ctx)
|
||||
__field(struct i915_gem_context *, ctx)
|
||||
__field(struct i915_address_space *, vm)
|
||||
),
|
||||
|
||||
@@ -754,12 +754,12 @@ DECLARE_EVENT_CLASS(i915_context,
|
||||
)
|
||||
|
||||
DEFINE_EVENT(i915_context, i915_context_create,
|
||||
TP_PROTO(struct intel_context *ctx),
|
||||
TP_PROTO(struct i915_gem_context *ctx),
|
||||
TP_ARGS(ctx)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(i915_context, i915_context_free,
|
||||
TP_PROTO(struct intel_context *ctx),
|
||||
TP_PROTO(struct i915_gem_context *ctx),
|
||||
TP_ARGS(ctx)
|
||||
);
|
||||
|
||||
@@ -771,13 +771,13 @@ DEFINE_EVENT(i915_context, i915_context_free,
|
||||
* called only if full ppgtt is enabled.
|
||||
*/
|
||||
TRACE_EVENT(switch_mm,
|
||||
TP_PROTO(struct intel_engine_cs *engine, struct intel_context *to),
|
||||
TP_PROTO(struct intel_engine_cs *engine, struct i915_gem_context *to),
|
||||
|
||||
TP_ARGS(engine, to),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(u32, ring)
|
||||
__field(struct intel_context *, to)
|
||||
__field(struct i915_gem_context *, to)
|
||||
__field(struct i915_address_space *, vm)
|
||||
__field(u32, dev)
|
||||
),
|
||||
|
Reference in New Issue
Block a user