static TraceEvent* find_trace_event_by_name(const char *tname)

{

    unsigned int i;



    if (!tname) {

        return NULL;

    }



    for (i = 0; i < NR_TRACE_EVENTS; i++) {

        if (!strcmp(trace_list[i].tp_name, tname)) {

            return &trace_list[i];

        }

    }

    return NULL; /* indicates end of list reached without a match */

}

static TraceEvent* find_trace_event_by_name(const char *tname)

{

    unsigned int i;



    if (!tname) {

        return NULL;

    }



    for (i = 0; i < NR_TRACE_EVENTS; i++) {

        if (!strcmp(trace_list[i].tp_name, tname)) {

            return &trace_list[i];

        }

    }

    return NULL; 

}

static TraceEvent* find_trace_event_by_name(const char *tname)     if (!tname) {         return NULL;         if (!strcmp(trace_list[i].tp_name, tname)) {             return &trace_list[i];
static TraceEvent* FUNC_0(const char *tname)

{

    unsigned int VAR_0;



    if (!tname) {

        return NULL;

    }



    for (VAR_0 = 0; VAR_0 < NR_TRACE_EVENTS; VAR_0++) {

        if (!strcmp(trace_list[VAR_0].tp_name, tname)) {

            return &trace_list[VAR_0];

        }

    }

    return NULL; 

}

static TraceEvent* FUNC_0(const char *tname)
{ unsigned int VAR_0; if (!tname) { return NULL; } for (VAR_0 = 0; VAR_0 < NR_TRACE_EVENTS; VAR_0++) { if (!strcmp(trace_list[VAR_0].tp_name, tname)) { return &trace_list[VAR_0]; } } return NULL; }