On Tue, May 8, 2012 at 3:38 PM, Lluís Vilanova <vilan...@ac.upc.edu> wrote:
> @@ -27,10 +96,19 @@ void trace_backend_init_events(const char *fname)
>         size_t len = strlen(line_buf);
>         if (len > 1) {              /* skip empty lines */
>             line_buf[len - 1] = '\0';
> -            if (!trace_event_set_state(line_buf, true)) {
> -                fprintf(stderr,
> -                        "error: trace event '%s' does not exist\n", 
> line_buf);
> -                exit(1);
> +            if (trace_event_is_pattern(line_buf)) {
> +                TraceEvent *ev;
> +                while ((ev = trace_event_pattern(line_buf, ev)) != NULL) {

ev must be initialized to NULL.

Stefan

Reply via email to