From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: Re: Tracking drm_intel_bo allocation Date: Mon, 28 Mar 2011 13:26:12 -0700 Message-ID: <87zkofc7q3.fsf@pollan.anholt.net> References: <5812F7DC54903547874AA228AE9C46AB3D9F73E8@orsmsx504.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1045926422==" Return-path: In-Reply-To: <5812F7DC54903547874AA228AE9C46AB3D9F73E8@orsmsx504.amr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: "Segovia, Benjamin" , DRI List-Id: dri-devel@lists.freedesktop.org --===============1045926422== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Fri, 25 Mar 2011 23:36:33 -0700, "Segovia, Benjamin" wrote: > Hello all, >=20 > I am using drm_intel to access the HW. I would like to know if there > is any way to know if my application frees all the bos I used. I would > like to be sure I cleanly freed my resources and no bo is still > referenced. Is there any tool in the memory allocation part of > drm_intel to do that? I've used the drm_intel_bufmgr_set_debug() plus post-processing to catch major leaks before. #!/usr/bin/awk -f /bo_create:/ { botype[$4]++; } /bo_unreference final:/ { botype[$4]--; } END { for (name in botype) { printf("%s: %d\n", name, botype[name]) } } --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk2Q7uQACgkQHUdvYGzw6veGLwCePZH6kl4yD91ZO53A+bDvbtc2 fCoAnRSQ5PPC6vq8wa/DEJunD4Nb/fUc =7Vws -----END PGP SIGNATURE----- --=-=-=-- --===============1045926422== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1045926422==--