Received: from eggs.gnu.org ([2001:4830:134:3::10]:46574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtgVh-0003M7-T7 for qemu-devel@nongnu.org; Tue, 03 Nov 2015 13:40:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtgVd-0003P7-Kx for qemu-devel@nongnu.org; Tue, 03 Nov 2015 13:40:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtgVd-0003P1-G3 for qemu-devel@nongnu.org; Tue, 03 Nov 2015 13:40:41 -0500 From: Markus Armbruster References: <1446570199-29893-1-git-send-email-den@openvz.org> Date: Tue, 03 Nov 2015 19:40:36 +0100 In-Reply-To: <1446570199-29893-1-git-send-email-den@openvz.org> (Denis V. Lunev's message of "Tue, 3 Nov 2015 20:03:19 +0300") Message-ID: <871tc70vvf.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [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: , To: "Denis V. Lunev" Cc: Olga Krishtal , qemu-devel@nongnu.org, Stefan Hajnoczi , Paolo Bonzini "Denis V. Lunev" writes: > 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++; What's wrong with '*'?