Commit 75002fc4 authored by Thibault Soucarre's avatar Thibault Soucarre

modify others parsers to follow changes made in pajeParser

parent 7f687c54
......@@ -301,8 +301,6 @@ int ParserEventOTF::handler_SendMsg( void* userData,
ContainerType *destination_type = t->search_container_type(receiver_group_string);
ContainerType *ancestor_type = t->search_container_type(ancestor_group_string);
EntityValue *value;
map<string, Value *> opt;
if(_containers.find(sender_string) != _containers.end()) {
......@@ -341,8 +339,6 @@ int ParserEventOTF::handler_SendMsg( void* userData,
link_type = t->search_link_type(link_type_string);
}
value = t->search_entity_value(name_string, link_type);
// Check if nothing is empty
if(source_type == 0) {
Error::set(Error::VITE_ERR_UNKNOWN_CONTAINER_TYPE + temp_sender._name, Error::VITE_ERRCODE_ERROR);
......@@ -380,7 +376,7 @@ int ParserEventOTF::handler_SendMsg( void* userData,
}
}
t->start_link(d, link_type, ancestor_container, source_container, value, name_string, opt);
t->start_link(d, link_type, ancestor_container, source_container, name_string, opt);
return OTF_RETURN_OK;
}
......@@ -435,8 +431,6 @@ int ParserEventOTF::handler_RecvMsg( void* userData,
ContainerType *ancestor_type = t->search_container_type(ancestor_group_string);
ContainerType *sender_type = t->search_container_type(sender_group_string);
EntityValue *value;
map<string, Value *> opt;
if(_containers.find(receiver_string) != _containers.end()) {
......@@ -472,8 +466,6 @@ int ParserEventOTF::handler_RecvMsg( void* userData,
link_type = t->search_link_type(link_type_string);
}
value = t->search_entity_value(name_string, link_type);
// Check if nothing is empty
if(destination_type == 0) {
Error::set(Error::VITE_ERR_UNKNOWN_CONTAINER_TYPE + temp_receiver._name, Error::VITE_ERRCODE_ERROR);
......@@ -508,7 +500,7 @@ int ParserEventOTF::handler_RecvMsg( void* userData,
}
}
t->end_link(d, link_type, ancestor_cont, destination_cont, value, name_string, opt);
t->end_link(d, link_type, ancestor_cont, destination_cont, name_string, opt);
return OTF_RETURN_OK;
}
......
......@@ -326,7 +326,6 @@ int ParserTau::send_message (void *trace, double time, unsigned int sourceNodeTo
link_type = t->search_link_type(current_link.str());
}
EntityValue *value = t->search_entity_value(value_str, link_type);
/* Key of the message */
ostringstream oss_key;
......@@ -335,7 +334,7 @@ int ParserTau::send_message (void *trace, double time, unsigned int sourceNodeTo
map<string, Value *> opt;
t->start_link(d, link_type, ancestor_container, source_container, value, key, opt);
t->start_link(d, link_type, ancestor_container, source_container, key, opt);
printf("SendMessage: time %g, source nid %d tid %d, destination nid %d tid %d, size %d, tag %d\n", time, sourceNodeToken, sourceThreadToken, destinationNodeToken, destinationThreadToken, messageSize, messageTag);
return 0;
......@@ -380,8 +379,6 @@ int ParserTau::receive_message (void *trace, double time, unsigned int sourceNod
link_type = t->search_link_type(current_link.str());
}
EntityValue *value = t->search_entity_value(value_str, link_type);
/* Key of the message */
ostringstream oss_key;
oss_key << messageTag;
......@@ -389,7 +386,7 @@ int ParserTau::receive_message (void *trace, double time, unsigned int sourceNod
map<string, Value *> opt;
t->end_link(d, link_type, ancestor_container, destination_container, value, key, opt);
t->end_link(d, link_type, ancestor_container, destination_container, key, opt);
printf("RecvMessage: time %g, source nid %d tid %d, destination nid %d tid %d, size %d, tag %d\n", time, sourceNodeToken, sourceThreadToken, destinationNodeToken, destinationThreadToken, messageSize, messageTag);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment