Received: from eggs.gnu.org ([2001:4830:134:3::10]:42655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn51Y-0004W7-U9 for qemu-devel@nongnu.org; Fri, 16 Oct 2015 09:26:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn51V-0001yp-7V for qemu-devel@nongnu.org; Fri, 16 Oct 2015 09:26:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn51V-0001yV-24 for qemu-devel@nongnu.org; Fri, 16 Oct 2015 09:26:17 -0400 Date: Fri, 16 Oct 2015 14:26:11 +0100 From: "Daniel P. Berrange" Message-ID: <20151016132611.GB32625@redhat.com> References: <1444894224-9542-1-git-send-email-den@openvz.org> <1444894224-9542-3-git-send-email-den@openvz.org> <87oafzdmck.fsf_-_@blackfin.pond.sub.org> <5620F213.1010908@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] What's the intended use of log.h logging? Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Pavel Butsykin , Markus Armbruster , QEMU Developers , Luiz Capitulino , Stefan Hajnoczi , "Denis V. Lunev" , Paolo Bonzini On Fri, Oct 16, 2015 at 01:54:40PM +0100, Peter Maydell wrote: > On 16 October 2015 at 13:48, Paolo Bonzini wrote: > > > > > > On 16/10/2015 14:33, Markus Armbruster wrote: > >> Looks like this is basically TCG with a couple of random LOG_UNIMP > >> and LOG_GUEST_ERROR thrown in. It's definitely not a general purpose > >> QEMU log in its current state. > > > > I think these could become error_report. > > No; it's important not to print these unless the user really > asked for them (especially the GUEST_ERROR) kind. Otherwise it's > (potentially quite a lot of) unnecessary noise. > > > Some others (e.g. LOG_IOPORT) can be removed. > > > > LOG_MMU seems to be mostly a ppc thing, could also become a tracepoint. > > Likewise for LOG_PCALL and perhaps LOG_INT. > > It's also very useful to be able to enable whole *classes* of > tracing (like "tell me whenever my guest OS does something dumb"); > does the tracepoint code have any support for this? You can use globs in tracepoint names you want to enable. So if the tracepoints have structured / well considerd name prefixes, you can enable classses at once. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|