[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 2/6] trace: generalize the "property" concept in
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] Re: [PATCH 2/6] trace: generalize the "property" concept in the trace-events file |
Date: |
Wed, 6 Apr 2011 11:53:48 +0100 |
On Mon, Apr 4, 2011 at 10:49 PM, Lluís <address@hidden> wrote:
> @@ -168,7 +168,7 @@ The st_change_trace_event_state() function can be used to
> enable or disable trac
> events at runtime inside QEMU:
>
> #include "trace.h"
> -
> +
Please leave the trailing whitespace, it's a workaround for wiki
syntax/formatting.
> @@ -222,9 +223,10 @@ linetoc_simple()
> {
> local name state
> name=$(get_name "$1")
> - state=$(get_state "$1")
> - if [ "$state" = "0" ] ; then
> - name=${name##disable }
> + if has_property "$1" "disable"; then
> + state="0"
> + else
> + state="1"
Or put another way (style decision, I won't complain if you leave it):
has_property "$1" "disable"
state=$?
Stefan
- [Qemu-devel] [RFC][PATCH 0/6] trace-state: make the behaviour of "disable" consistent across all backends, Lluís, 2011/04/04
- [Qemu-devel] [PATCH 1/6] trace: [ust] fix generation of 'trace.c' on events without args, Lluís, 2011/04/04
- [Qemu-devel] [PATCH 2/6] trace: generalize the "property" concept in the trace-events file, Lluís, 2011/04/04
- [Qemu-devel] Re: [PATCH 2/6] trace: generalize the "property" concept in the trace-events file,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 3/6] trace-state: always use the "nop" backend on events with the "disable" keyword, Lluís, 2011/04/04
- [Qemu-devel] [PATCH 4/6] trace-state: [simple] disable all trace points by default, Lluís, 2011/04/04
- [Qemu-devel] [PATCH 5/6] trace-state: [simple] add "-trace events" argument to control initial state, Lluís, 2011/04/04
[Qemu-devel] [PATCH 6/6] trace: enable all events, Lluís, 2011/04/04