|
@@ -16,15 +16,15 @@
|
|
|
extern TraceEvent trace_events[];
|
|
|
|
|
|
|
|
|
-static inline TraceEvent *trace_event_id(TraceEventID id)
|
|
|
+static inline TraceEventID trace_event_count(void)
|
|
|
{
|
|
|
- assert(id < trace_event_count());
|
|
|
- return &trace_events[id];
|
|
|
+ return TRACE_EVENT_COUNT;
|
|
|
}
|
|
|
|
|
|
-static inline TraceEventID trace_event_count(void)
|
|
|
+static inline TraceEvent *trace_event_id(TraceEventID id)
|
|
|
{
|
|
|
- return TRACE_EVENT_COUNT;
|
|
|
+ assert(id < trace_event_count());
|
|
|
+ return &trace_events[id];
|
|
|
}
|
|
|
|
|
|
static inline bool trace_event_is_pattern(const char *str)
|