From 7092fb86b9ec0873ee40a62e0bf3de1a0707efe7 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 4 Apr 2007 20:46:05 +0000 Subject: [PATCH] exec fix git-svn-id: http://ltt.polymtl.ca/svn@2473 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/state.c | 6 +++--- ltt/branches/poly/lttv/lttv/stats.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index 00c37cb8..857fc931 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -2124,11 +2124,11 @@ static gboolean schedchange(void *hook_data, void *call_data) LttEvent *e = ltt_tracefile_get_event(s->parent.tf); LttvTraceHookByFacility *thf = (LttvTraceHookByFacility *)hook_data; guint pid_in, pid_out; - gint state_out; + gint64 state_out; pid_out = ltt_event_get_unsigned(e, thf->f1); pid_in = ltt_event_get_unsigned(e, thf->f2); - state_out = ltt_event_get_int(e, thf->f3); + state_out = ltt_event_get_long_int(e, thf->f3); if(likely(process != NULL)) { @@ -2379,7 +2379,7 @@ static gboolean process_exec(void *hook_data, void *call_data) process->name = g_quark_from_string(null_term_name); #endif //0 - process->name = ltt_event_get_string(e, thf->f1); + process->name = g_quark_from_string(ltt_event_get_string(e, thf->f1)); process->brand = LTTV_STATE_UNBRANDED; //g_free(null_term_name); return FALSE; diff --git a/ltt/branches/poly/lttv/lttv/stats.c b/ltt/branches/poly/lttv/lttv/stats.c index 0fd94a00..7ffc37bd 100644 --- a/ltt/branches/poly/lttv/lttv/stats.c +++ b/ltt/branches/poly/lttv/lttv/stats.c @@ -694,11 +694,11 @@ static gboolean before_schedchange(void *hook_data, void *call_data) guint pid_in, pid_out; - gint state_out; + gint64 state_out; pid_out = ltt_event_get_unsigned(e, thf->f1); pid_in = ltt_event_get_unsigned(e, thf->f2); - state_out = ltt_event_get_int(e, thf->f3); + state_out = ltt_event_get_long_int(e, thf->f3); /* compute the time for the process to schedule out */ mode_change(tfcs); @@ -718,13 +718,13 @@ static gboolean after_schedchange(void *hook_data, void *call_data) guint pid_in, pid_out; - gint state_out; + gint64 state_out; LttvProcessState *process; pid_out = ltt_event_get_unsigned(e, thf->f1); pid_in = ltt_event_get_unsigned(e, thf->f2); - state_out = ltt_event_get_int(e, thf->f3); + state_out = ltt_event_get_long_int(e, thf->f3); /* get the information for the process scheduled in */ guint cpu = tfcs->parent.cpu; -- 2.34.1