1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Tracing</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="drmI915.html" title="Chapter 4. drm/i915 Intel GFX Driver"><link rel="prev" href="API-i915-gem-shrinker-init.html" title="i915_gem_shrinker_init"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"> Tracing </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-i915-gem-shrinker-init.html">Prev</a> </td><th width="60%" align="center">Chapter 4. drm/i915 Intel GFX Driver</th><td width="20%" align="right"> </td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1128540452"></a> Tracing </h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="sect2"><a href="ch04s04.html#idp1128541092"> i915_ppgtt_create and i915_ppgtt_release </a></span></dt><dt><span class="sect2"><a href="ch04s04.html#idp1128542276"> i915_context_create and i915_context_free </a></span></dt><dt><span class="sect2"><a href="ch04s04.html#idp1128543204"> switch_mm </a></span></dt></dl></div><p> 2 This sections covers all things related to the tracepoints implemented in 3 the i915 driver. 4 </p><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="idp1128541092"></a> i915_ppgtt_create and i915_ppgtt_release </h3></div></div></div><p> 5 </p><p> 6 With full ppgtt enabled each process using drm will allocate at least one 7 translation table. With these traces it is possible to keep track of the 8 allocation and of the lifetime of the tables; this can be used during 9 testing/debug to verify that we are not leaking ppgtts. 10 These traces identify the ppgtt through the vm pointer, which is also printed 11 by the i915_vma_bind and i915_vma_unbind tracepoints. 12</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="idp1128542276"></a> i915_context_create and i915_context_free </h3></div></div></div><p> 13 </p><p> 14 These tracepoints are used to track creation and deletion of contexts. 15 If full ppgtt is enabled, they also print the address of the vm assigned to 16 the context. 17</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="idp1128543204"></a> switch_mm </h3></div></div></div><p> 18 </p><p> 19 This tracepoint allows tracking of the mm switch, which is an important point 20 in the lifetime of the vm in the legacy submission path. This tracepoint is 21 called only if full ppgtt is enabled. 22</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-i915-gem-shrinker-init.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="drmI915.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">i915_gem_shrinker_init</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html> 23