From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrJsg-0005kV-Es for qemu-devel@nongnu.org; Wed, 28 Oct 2015 02:06:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrJsb-0001jR-4q for qemu-devel@nongnu.org; Wed, 28 Oct 2015 02:06:42 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:34026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrJsa-0001jF-VQ for qemu-devel@nongnu.org; Wed, 28 Oct 2015 02:06:37 -0400 Received: by padhk11 with SMTP id hk11so246643441pad.1 for ; Tue, 27 Oct 2015 23:06:36 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 28 Oct 2015 07:06:25 +0100 Message-Id: <1446012388-9586-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH for-2.5 0/2] trace: decrease overhead of simpletrace and stderr backends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@redhat.com This patch series makes it faster for simpletrace and stderr backends to discard disabled events. This is done in two ways: patch 1 makes the common case of no enabled events faster; patch 2 makes the other case less heavy on the data cache by packing the "tracepoint enabled" flag and avoiding useless pointer chasing. This should decrease the impact of changing the default tracing backend to stderr aka log, which Peter suggested could be a problem. Paolo Paolo Bonzini (2): trace: count number of enabled events trace: track enabled events in a separate array scripts/tracetool/format/events_c.py | 2 +- trace/control-internal.h | 15 ++++++++++++--- trace/control.c | 3 +++ trace/control.h | 2 +- trace/event-internal.h | 2 -- 5 files changed, 17 insertions(+), 7 deletions(-) -- 2.5.0