def __filter_event_type__(trace_events, event_type):
    """
    Looks for the events in the trace matching the event type

    :param trace_events: Events found in the trace (filtered by family).
    :param event_type: Event type to filter.
    :return: Filtered trace
    """
    filtered = []
    for line in trace_events:
        if line[0] == event_type:
            filtered.append(line)
    return filtered