exec fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 4 Apr 2007 20:46:05 +0000 (20:46 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 4 Apr 2007 20:46:05 +0000 (20:46 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2473 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/lttv/state.c
ltt/branches/poly/lttv/lttv/stats.c

index 00c37cb86149d5166749e71d9fe4c83962d87b51..857fc9314dba201478f18d8690f1b303d552d739 100644 (file)
@@ -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;
index 0fd94a009acd18ea502c28913288453b2659d4ed..7ffc37bd10acaf6727431608a939ae57f64ecedb 100644 (file)
@@ -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;
This page took 0.02715 seconds and 4 git commands to generate.