Add custom event data support
[lttv.git] / ltt / branches / poly / ltt / trace.h
index 2e8ec3a101871969c97f1f57cd27355e30c10cca..85dfe866506c4aa00688b4f9dbfbfa948b3fa340 100644 (file)
@@ -1,5 +1,6 @@
 /* This file is part of the Linux Trace Toolkit trace reading library
  * Copyright (C) 2003-2004 Michel Dagenais
+ *               2005 Mathieu Desnoyers
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -22,7 +23,8 @@
 #include <ltt/ltt.h>
 
 extern GQuark LTT_FACILITY_NAME_HEARTBEAT,
-              LTT_EVENT_NAME_HEARTBEAT;
+              LTT_EVENT_NAME_HEARTBEAT,
+              LTT_EVENT_NAME_HEARTBEAT_FULL;
 
 /* A trace is specified as a pathname to the directory containing all the
    associated data (control tracefiles, per cpu tracefiles, event 
@@ -59,8 +61,6 @@ LttSystemDescription *ltt_trace_system_description(LttTrace *t);
 
 unsigned ltt_trace_facility_number(LttTrace *t);
 
-LttFacility *ltt_trace_facility_get(LttTrace *t, unsigned i);
-
 LttFacility * ltt_trace_facility_by_id(LttTrace * trace, guint8 id);
 
 /* Returns an array of indexes (guint) that matches the facility name */
@@ -85,7 +85,13 @@ GQuark ltt_tracefile_long_name(const LttTracefile *tf);
 
 /* get the cpu number of the tracefile */
 
-guint ltt_tracefile_num(LttTracefile *tf);
+guint ltt_tracefile_cpu(LttTracefile *tf);
+
+/* For usertrace */
+guint ltt_tracefile_tid(LttTracefile *tf);
+guint ltt_tracefile_pgid(LttTracefile *tf);
+guint64 ltt_tracefile_creation(LttTracefile *tf);
+
 
 LttTrace *ltt_tracefile_get_trace(LttTracefile *tf);
 
@@ -182,4 +188,6 @@ gint64 ltt_get_int(gboolean reverse_byte_order, gint size, void *data);
 
 guint64 ltt_get_uint(gboolean reverse_byte_order, gint size, void *data);
 
+LttTime ltt_interpolate_time_from_tsc(LttTracefile *tf, guint64 tsc);
+
 #endif // TRACE_H
This page took 0.023598 seconds and 4 git commands to generate.