From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtezZ-0007yc-4c for qemu-devel@nongnu.org; Tue, 03 Nov 2015 12:03:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtezU-0001TY-NZ for qemu-devel@nongnu.org; Tue, 03 Nov 2015 12:03:29 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:20647 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtezU-0001SZ-B8 for qemu-devel@nongnu.org; Tue, 03 Nov 2015 12:03:24 -0500 From: "Denis V. Lunev" Date: Tue, 3 Nov 2015 20:03:19 +0300 Message-Id: <1446570199-29893-1-git-send-email-den@openvz.org> Subject: [Qemu-devel] [PATCH v2 1/1] allow to enable all tracepoints via alias all List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Olga Krishtal , Paolo Bonzini , qemu-devel@nongnu.org, Stefan Hajnoczi , "Denis V. Lunev" From: Olga Krishtal This will produce a lot of noise but could be usefull when we do this for a shot perioud of time on customer side to examine unclear problem. Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev CC: Paolo Bonzini CC: Stefan Hajnoczi --- Changes from v1: - proper mailing list targeted trace/control.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trace/control.c b/trace/control.c index 9a1e381..75085f6 100644 --- a/trace/control.c +++ b/trace/control.c @@ -35,6 +35,9 @@ TraceEvent *trace_event_name(const char *name) static bool pattern_glob(const char *pat, const char *ev) { + if (!(g_strcmp0(pat, "all"))) { + return true; + } while (*pat != '\0' && *ev != '\0') { if (*pat == *ev) { pat++; -- 2.1.4