projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: http://ltt.polymtl.ca/svn@131 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
tracefile.c
diff --git
a/ltt/branches/poly/ltt/tracefile.c
b/ltt/branches/poly/ltt/tracefile.c
index 9f66cc8032639736813cb204a9435c6ccf958775..f3ee2e20b8252c42cde495b4ae29250871ff5f6e 100644
(file)
--- a/
ltt/branches/poly/ltt/tracefile.c
+++ b/
ltt/branches/poly/ltt/tracefile.c
@@
-130,6
+130,7
@@
void ltt_tracefile_open_cpu(LttTrace *t, char * tracefile_name)
{
LttTracefile * tf;
tf = ltt_tracefile_open(t,tracefile_name);
{
LttTracefile * tf;
tf = ltt_tracefile_open(t,tracefile_name);
+ if(!tf) return;
t->per_cpu_tracefile_number++;
g_ptr_array_add(t->per_cpu_tracefiles, tf);
}
t->per_cpu_tracefile_number++;
g_ptr_array_add(t->per_cpu_tracefiles, tf);
}
@@
-150,7
+151,7
@@
void ltt_tracefile_open_control(LttTrace *t, char * control_name)
g_ptr_array_add(t->control_tracefiles,tf);
//parse facilities tracefile to get base_id
g_ptr_array_add(t->control_tracefiles,tf);
//parse facilities tracefile to get base_id
- if(strcmp(
control_name
,"facilities") ==0){
+ if(strcmp(
&control_name[strlen(control_name)-10]
,"facilities") ==0){
while(1){
ev = ltt_tracefile_read(tf);
if(!ev)return; // end of file
while(1){
ev = ltt_tracefile_read(tf);
if(!ev)return; // end of file
@@
-477,15
+478,15
@@
LttTrace *ltt_trace_open(char *pathname)
strcat(tmp,"system.xml");
getSystemInfo(sys_description, tmp);
strcat(tmp,"system.xml");
getSystemInfo(sys_description, tmp);
+ //get facilities info
+ getFacilityInfo(t,eventdefs);
+
//get control tracefile info
getControlFileInfo(t,control);
//get cpu tracefile info
getCpuFileInfo(t,cpu);
//get control tracefile info
getControlFileInfo(t,control);
//get cpu tracefile info
getCpuFileInfo(t,cpu);
- //get facilities info
- getFacilityInfo(t,eventdefs);
-
return t;
}
return t;
}
This page took
0.022732 seconds
and
4
git commands to generate.