qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 1/1] allow to enable all tracepoints via alia


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH v2 1/1] allow to enable all tracepoints via alias all
Date: Tue, 03 Nov 2015 19:40:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

"Denis V. Lunev" <address@hidden> writes:

> From: Olga Krishtal <address@hidden>
>
> 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 <address@hidden>
> Signed-off-by: Denis V. Lunev <address@hidden>
> CC: Paolo Bonzini <address@hidden>
> CC: Stefan Hajnoczi <address@hidden>
> ---
> 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 '*'?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]