parser update
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 26 Jan 2006 19:55:48 +0000 (19:55 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 26 Jan 2006 19:55:48 +0000 (19:55 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1495 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/doc/developer/lttng-userspace-tracing.txt
ltt/branches/poly/facilities/Makefile.am
ltt/branches/poly/ltt/parser.c
ltt/branches/poly/ltt/parser.h

index 5ecb494f1e6073ef44e52330057e0ebd7f990d1b..e0876f397155f608ca585fa1ff83d7f3a8978f22 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.6-20012006)
+AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.7-26012006)
 AM_CONFIG_HEADER(config.h)
 AM_PROG_LIBTOOL
 
index beb56cac516239b2583a7c649ffffe1b6d701a6a..bf58790772f67a2bff7300ee251a984659ce3867 100644 (file)
@@ -219,10 +219,17 @@ SIGRTMIN+3
 (like hardware fault and expiring timer : to the thread, see p. 413 of Advances
 prog. in the UNIX env.)
 
+Signal is sent on tracing create/destroy, start/stop and filter change.
+
 Will update for itself only : it will remove unnecessary concurrency.
 
 
 
+Notes :
+
+It doesn't matter "when" the process receives the update signal after a trace
+start : it will receive it in priority, before executing anything else when it
+will be scheduled in.
 
 
 
index 6e22d79052f7a6dfd87ed566430736af5a59dd44..005ce04eb61cf8ca578be73bdc9aa7f392601c50 100644 (file)
@@ -6,6 +6,7 @@ ipc.xml \
 kernel.xml \
 kernel_arch_i386.xml \
 stack_arch_i386.xml \
+locking.xml \
 memory.xml \
 network.xml \
 process.xml \
@@ -20,6 +21,7 @@ ipc.xml \
 kernel.xml \
 kernel_arch_i386.xml \
 stack_arch_i386.xml \
+locking.xml \
 memory.xml \
 network.xml \
 process.xml \
index 492f766724f9aaa38c5eb3be12194af3d6bbcb95..785cb652aaf2a47e7771024817649956274c6f28 100644 (file)
@@ -1,25 +1,24 @@
 /*
- * parser.c: Generate helper declarations and functions to trace events
- * from an event description file.
- *
- *    Copyright (C) 2005, Mathieu Desnoyers
- *    Copyright (C) 2002, Xianxiu Yang
- *    Copyright (C) 2002, Michel Dagenais 
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License Version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
+
+parser.c: Generate helper declarations and functions to trace events
+  from an event description file.
+
+           Copyright (C) 2005, Mathieu Desnoyers
+      Copyright (C) 2002, Xianxiu Yang
+      Copyright (C) 2002, Michel Dagenais 
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; version 2 of the License.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+*/
 
 /* This program reads the ".xml" event definitions input files 
    and constructs structure for each event.
@@ -339,22 +338,20 @@ char *getNameAttribute(parse_file_t *in)
   
   while(1) {
     token = getToken(in); 
-    if(strcmp("/",token) == 0 || strcmp(">",token) == 0){
-      ungetToken(in);
-      break;
-    }
-
     if(!strcmp("name",token)) {
       getEqual(in);
       car = seekNextChar(in);
       if(car == EOF) in->error(in,"name was expected");
       else if(car == '\"') name = allocAndCopy(getQuotedString(in));
       else name = allocAndCopy(getName(in));
+    } else {
+      ungetToken(in);
+      break;
     }
+
   }
   if(name == NULL) in->error(in, "Name was expected");
   return name;
-  
 }
 
 
index 9052229818062baa5cc34d0c127a8e854a4152ef..5a4c5b02cb1e41fd884be1de3de633508d9a45d6 100644 (file)
@@ -1,26 +1,3 @@
-/*
- * parser.h: Generate helper declarations and functions to trace events
- * from an event description file.
- *
- *    Copyright (C) 2005, Mathieu Desnoyers
- *    Copyright (C) 2002, Xianxiu Yang
- *    Copyright (C) 2002, Michel Dagenais 
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License Version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
 #ifndef PARSER_H
 #define PARSER_H
 
This page took 0.026409 seconds and 4 git commands to generate.