genevent for userspace generic
[lttv.git] / genevent-new / parser.c
index bcae82e1a4ab89e62948c998a6d7d088bf88c22f..3183367e7ff16a97e479c7d52dcd1b6ce540d5e0 100644 (file)
@@ -289,6 +289,7 @@ void getFacilityAttributes(parse_file_t *in, facility_t *fac)
   
   fac->name = NULL;
   fac->arch = NULL;
+       fac->user = 0;
 
   while(1) {
     token = getToken(in); 
@@ -303,6 +304,8 @@ void getFacilityAttributes(parse_file_t *in, facility_t *fac)
       if(car == EOF) in->error(in,"name was expected");
       else if(car == '\"') fac->name = allocAndCopy(getQuotedString(in));
       else fac->name = allocAndCopy(getName(in));
+                       if(!strncmp(fac->name, "user_", sizeof("user_")) == 0)
+                               fac->user = 1;
     } else if(!strcmp("arch", token)) {
       getEqual(in);
       car = seekNextChar(in);
This page took 0.022811 seconds and 4 git commands to generate.