usertrace prio
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 13 Sep 2006 20:16:48 +0000 (20:16 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 13 Sep 2006 20:16:48 +0000 (20:16 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2102 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/ltt/parser.c
ltt/branches/poly/ltt/parser.h

index 029f511d45ab1deb06fd9ee880993e4900aca39e..a216927a084dd061c00282ee2add0e5188c24b49 100644 (file)
@@ -23,7 +23,7 @@
 AC_PREREQ(2.57)
 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
 #AC_WITH_LTDL  # not needed ?
-AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.59-11092006)
+AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.60-13092006)
 AM_CONFIG_HEADER(config.h)
 AM_PROG_LIBTOOL
 
index 2d6b27d5060718394983471a5738c62007f260fc..0ac6f5454da87294dc2f28f3714bb44bd35d5ac0 100644 (file)
@@ -269,7 +269,8 @@ void getEventAttributes(parse_file_t *in, event_t *ev)
   ev->per_trace = 0;
   ev->per_tracefile = 0;
   ev->param_buffer = 0;
-       ev->no_instrument_function = 0;
+  ev->no_instrument_function = 0;
+  ev->high_priority = 0;
 
   while(1) {
     token = getToken(in); 
@@ -285,28 +286,30 @@ void getEventAttributes(parse_file_t *in, event_t *ev)
       else if(car == '\"') ev->name = allocAndCopy(getQuotedString(in));
       else ev->name = allocAndCopy(getName(in));
     } else if(!strcmp("scope", token)) {
-                       getEqual(in);
-                       car = seekNextChar(in);
-                       if(car == EOF) in->error(in,"scope was expected");
+      getEqual(in);
+      car = seekNextChar(in);
+      if(car == EOF) in->error(in,"scope was expected");
       else if(car == '\"') token = getQuotedString(in);
       else token = getName(in);
-                       if(!strcmp(token, "trace")) ev->per_trace = 1;
-                       else if(!strcmp(token, "tracefile")) ev->per_tracefile = 1;
-         } else if(!strcmp("param", token)) {
-                       getEqual(in);
-                       car = seekNextChar(in);
-                       if(car == EOF) in->error(in,"parameter type was expected");
+      if(!strcmp(token, "trace")) ev->per_trace = 1;
+      else if(!strcmp(token, "tracefile")) ev->per_tracefile = 1;
+    } else if(!strcmp("param", token)) {
+      getEqual(in);
+      car = seekNextChar(in);
+      if(car == EOF) in->error(in,"parameter type was expected");
       else if(car == '\"') token = getQuotedString(in);
       else token = getName(in);
-                       if(!strcmp(token, "buffer")) ev->param_buffer = 1;
-               } else if(!strcmp("attribute", token)) {
-                       getEqual(in);
-                       car = seekNextChar(in);
-                       if(car == EOF) in->error(in,"attribute was expected");
+      if(!strcmp(token, "buffer")) ev->param_buffer = 1;
+    } else if(!strcmp("attribute", token)) {
+      getEqual(in);
+      car = seekNextChar(in);
+      if(car == EOF) in->error(in,"attribute was expected");
       else if(car == '\"') token = getQuotedString(in);
       else token = getName(in);
-                       if(!strcmp(token, "no_instrument_function"))
-                               ev->no_instrument_function = 1;
+      if(!strcmp(token, "no_instrument_function"))
+        ev->no_instrument_function = 1;
+      else if(!strcmp(token, "high_priority"))
+        ev->high_priority = 1;
     }
   }
 }
index a447d6db03c3cca91b1bbc727cd8911aa1959bfb..8fd75743c96fe35c0dcb19890a885f2026db996e 100644 (file)
@@ -136,6 +136,7 @@ typedef struct _event {
   int  per_tracefile;  /* Must we log this event in a specific tracefile ? */
        int param_buffer; /* For userspace tracing : takes a buffer as parameter? */
        int no_instrument_function;
+       int high_priority;
 } event_t;
 
 typedef struct _facility {
This page took 0.026309 seconds and 4 git commands to generate.