projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use LttCycleCount elsewhere than in processing_lttv
[lttv.git]
/
lttv
/
lttv
/
sync
/
data_structures.h
diff --git
a/lttv/lttv/sync/data_structures.h
b/lttv/lttv/sync/data_structures.h
index 765967ffda75d2e018906fc6b9cd5d3d638c55dd..697f29a63e29ee5200918f07a8d11d305d4a50eb 100644
(file)
--- a/
lttv/lttv/sync/data_structures.h
+++ b/
lttv/lttv/sync/data_structures.h
@@
-23,7
+23,19
@@
#include <stdbool.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
-#include <ltt/ltt.h>
+
+enum Direction
+{
+ OUT,
+ IN,
+};
+
+enum EventType
+{
+ TCP,
+ UDP,
+ TYPE_COUNT // This must be the last field
+};
// Stage 1 to 2: These structures are passed from processing to matching modules
// TCP events
// Stage 1 to 2: These structures are passed from processing to matching modules
// TCP events
@@
-43,19
+55,6
@@
typedef struct
uint8_t ack, rst, syn, fin;
} SegmentKey;
uint8_t ack, rst, syn, fin;
} SegmentKey;
-enum Direction
-{
- OUT,
- IN,
-};
-
-enum EventType
-{
- TCP,
- UDP,
- TYPE_COUNT,
-};
-
typedef struct
{
enum Direction direction;
typedef struct
{
enum Direction direction;
@@
-78,10
+77,17
@@
typedef struct
bool unicast;
} UDPEvent;
bool unicast;
} UDPEvent;
+typedef struct
+{
+ uint32_t seconds;
+ uint32_t nanosec;
+} WallTime;
+
typedef struct _Event
{
unsigned long traceNum;
typedef struct _Event
{
unsigned long traceNum;
- uint64_t time;
+ uint64_t cpuTime;
+ WallTime wallTime;
// specific event structures and functions could be in separate files and
// type could be an int
// specific event structures and functions could be in separate files and
// type could be an int
@@
-92,6
+98,7
@@
typedef struct _Event
UDPEvent* udpEvent;
} event;
UDPEvent* udpEvent;
} event;
+ void (*copy)(const struct _Event* const event, struct _Event** const newEvent);
void (*destroy)(struct _Event* const event);
} Event;
void (*destroy)(struct _Event* const event);
} Event;
@@
-134,12
+141,21
@@
void gdnConnectionKeyDestroy(gpointer data);
guint ghfSegmentKeyHash(gconstpointer key);
gboolean gefSegmentKeyEqual(gconstpointer a, gconstpointer b);
guint ghfSegmentKeyHash(gconstpointer key);
gboolean gefSegmentKeyEqual(gconstpointer a, gconstpointer b);
+// DatagramKey-related functions
+guint ghfDatagramKeyHash(gconstpointer key);
+gboolean gefDatagramKeyEqual(gconstpointer a, gconstpointer b);
+void gdnDestroyDatagramKey(gpointer data);
+
// Event-related functions
void gdnDestroyEvent(gpointer data);
// Event-related functions
void gdnDestroyEvent(gpointer data);
+void copyEvent(const Event* const event, Event** const newEvent);
+void copyTCPEvent(const Event* const event, Event** const newEvent);
+void copyUDPEvent(const Event* const event, Event** const newEvent);
void destroyEvent(Event* const event);
void destroyTCPEvent(Event* const event);
void destroyUDPEvent(Event* const event);
void gfDestroyEvent(gpointer data, gpointer user_data);
void destroyEvent(Event* const event);
void destroyTCPEvent(Event* const event);
void destroyUDPEvent(Event* const event);
void gfDestroyEvent(gpointer data, gpointer user_data);
+double wallTimeSub(const WallTime const* tA, const WallTime const* tB);
// Message-related functions
void printTCPSegment(const Message* const segment);
// Message-related functions
void printTCPSegment(const Message* const segment);
This page took
0.023175 seconds
and
4
git commands to generate.