Received: from eggs.gnu.org ([2001:4830:134:3::10]:48998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cayUE-0005Z2-EN for qemu-devel@nongnu.org; Tue, 07 Feb 2017 00:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cayUB-0005SR-8m for qemu-devel@nongnu.org; Tue, 07 Feb 2017 00:38:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51580) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cayUB-0005Qm-2e for qemu-devel@nongnu.org; Tue, 07 Feb 2017 00:38:39 -0500 References: <1486110164-13797-1-git-send-email-peterx@redhat.com> <1486110164-13797-8-git-send-email-peterx@redhat.com> From: Jason Wang Message-ID: Date: Tue, 7 Feb 2017 13:38:30 +0800 MIME-Version: 1.0 In-Reply-To: <1486110164-13797-8-git-send-email-peterx@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v6 07/18] intel_iommu: fix trace for inv desc handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu , qemu-devel@nongnu.org Cc: tianyu.lan@intel.com, kevin.tian@intel.com, mst@redhat.com, jan.kiszka@siemens.com, David Gibson , alex.williamson@redhat.com, bd.aviv@gmail.com On 2017=E5=B9=B402=E6=9C=8803=E6=97=A5 16:22, Peter Xu wrote: > VT-d codes are still using static DEBUG_INTEL_IOMMU macro. That's not > good, and we should end the day when we need to recompile the code > before getting useful debugging information for vt-d. Time to switch to > the trace system. Looks like we end up with using debug macros and tracepoints at the same=20 time (even with patch 8), this will cause even more troubles. > This is the first patch to do it. > > Generally, the rule of mine is: > > - for the old GENERAL typed message, I use trace_vtd_err*() in general. > > - for the non-GENERAL typed messages, convert into specified trace_*(). > > - for useless DPRINTFs, I removed them. > > Signed-off-by: Peter Xu > --- The title is a little bit confusing, this in fact convert from debug=20 macros to tracepoints.