From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: Tracking drm_intel_bo allocation Date: Sat, 26 Mar 2011 07:21:13 +0000 Message-ID: <0d30dc$ljoekm@orsmga001.jf.intel.com> References: <5812F7DC54903547874AA228AE9C46AB3D9F73E8@orsmsx504.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id DE8E19E74F for ; Sat, 26 Mar 2011 00:21:16 -0700 (PDT) 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 On Fri, 25 Mar 2011 23:36:33 -0700, "Segovia, Benjamin" wrote: > Hello all, > > 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? valgrind. The kernel releases all client references upon termination. -Chris -- Chris Wilson, Intel Open Source Technology Centre