projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change function names
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
state.c
diff --git
a/ltt/branches/poly/lttv/state.c
b/ltt/branches/poly/lttv/state.c
index 4176313c82391c008ede664a67c4f92886266af1..a753b80240a9f94ada179f2b76f32ff9910a11d4 100644
(file)
--- a/
ltt/branches/poly/lttv/state.c
+++ b/
ltt/branches/poly/lttv/state.c
@@
-3,6
+3,7
@@
#include <ltt/facility.h>
#include <ltt/trace.h>
#include <ltt/event.h>
#include <ltt/facility.h>
#include <ltt/trace.h>
#include <ltt/event.h>
+#include <ltt/type.h>
LttvExecutionMode
LTTV_STATE_MODE_UNKNOWN,
LttvExecutionMode
LTTV_STATE_MODE_UNKNOWN,
@@
-257,7
+258,7
@@
static void state_save(LttvTraceState *self, LttvAttribute *container)
LTTV_POINTER);
if(tfcs->parent.e == NULL) *(value.v_pointer) = NULL;
else {
LTTV_POINTER);
if(tfcs->parent.e == NULL) *(value.v_pointer) = NULL;
else {
- ep =
g_new(LttEventPosition, 1
);
+ ep =
ltt_event_position_new(
);
ltt_event_position(tfcs->parent.e, ep);
*(value.v_pointer) = ep;
}
ltt_event_position(tfcs->parent.e, ep);
*(value.v_pointer) = ep;
}
@@
-861,7
+862,7
@@
static gboolean block_end(void *hook_data, void *call_data)
LttvTraceState *tcs = (LttvTraceState *)(tfcs->parent.t_context);
LttvTraceState *tcs = (LttvTraceState *)(tfcs->parent.t_context);
- LttEventPosition
ep
;
+ LttEventPosition
*ep = ltt_event_position_new()
;
guint nb_block, nb_event;
guint nb_block, nb_event;
@@
-871,9
+872,9
@@
static gboolean block_end(void *hook_data, void *call_data)
LttvAttributeValue value;
LttvAttributeValue value;
- ltt_event_position(tfcs->parent.e,
&
ep);
+ ltt_event_position(tfcs->parent.e, ep);
- ltt_event_position_get(
&
ep, &nb_block, &nb_event, &tf);
+ ltt_event_position_get(ep, &nb_block, &nb_event, &tf);
tcs->nb_event += nb_event - tfcs->saved_position;
tfcs->saved_position = 0;
if(tcs->nb_event >= tcs->save_interval) {
tcs->nb_event += nb_event - tfcs->saved_position;
tfcs->saved_position = 0;
if(tcs->nb_event >= tcs->save_interval) {
This page took
0.023319 seconds
and
4
git commands to generate.