+
+ //trace function : function name and parameters : stub function.
+ seqCount = 0;
+ strCount = 0;
+ fprintf(fp, "#ifndef CONFIG_LTT\n");
+ fprintf(fp,"static inline void trace_%s_%s(",facName,ev->name);
+ if(ev->type == 0)
+ fprintf(fp, "void");
+ else
+ for(pos1 = 0; pos1 < ev->type->fields.position; pos1++){
+ fld = (field *)ev->type->fields.array[pos1];
+ td = fld->type;
+ if(td->type == ARRAY ){
+ fprintf(fp,"%s * %s",getTypeStr(td), fld->name);
+ }else if(td->type == STRING){
+ fprintf(fp,"short int strlength_%d, %s * %s",
+ ++strCount, getTypeStr(td), fld->name);
+ }else if(td->type == SEQUENCE){
+ fprintf(fp,"%s seqlength_%d, %s * %s",
+ uintOutputTypes[td->size], ++seqCount,getTypeStr(td), fld->name);
+ }else fprintf(fp,"%s %s",getTypeStr(td), fld->name);
+ if(pos1 != ev->type->fields.position - 1) fprintf(fp,", ");
+ }
+ fprintf(fp,")\n{\n");
+ fprintf(fp,"}\n");
+ fprintf(fp,"#else\n");
+