add func instrumentation
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 6 Mar 2006 23:45:17 +0000 (23:45 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 6 Mar 2006 23:45:17 +0000 (23:45 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1592 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/facilities/user_generic.xml
ltt/branches/poly/ltt/parser.c
ltt/branches/poly/ltt/parser.h

index 61ca6f79ae53f6c28cc04096a2d49d95f37f2430..73f88761326a840b945bb569d70e64a74b314985 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.26-05032006)
+AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.27-05032006)
 AM_CONFIG_HEADER(config.h)
 AM_PROG_LIBTOOL
 
index a700028541dccaa6c62ce8fe83eb313dc11b3137..6e555bbcde7624f81deefe7b46cf8d8efca5aaa5 100644 (file)
                <field name="string"><string/></field>
   </event>
        
+       <event name=function_entry no_instrument_function>
+               <description>Entry in a function</description>
+               <field name="this_fn"><pointer/></field>
+               <field name="call_site"><pointer/></field>
+       </event>
+
+       <event name=function_exit no_instrument_function>
+               <description>Exit from a function</description>
+               <field name="this_fn"><pointer/></field>
+               <field name="call_site"><pointer/></field>
+       </event>
+
 </facility>
index ba331e9edb88ae9da88a97545bb05c94e8f81c59..28ebaeea9dba2e5a99eac16c404be0f62d81d000 100644 (file)
@@ -248,6 +248,7 @@ 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;
 
   while(1) {
     token = getToken(in); 
@@ -268,6 +269,8 @@ void getEventAttributes(parse_file_t *in, event_t *ev)
       ev->per_tracefile = 1;
     } else if(!strcmp("param_buffer", token)) {
                        ev->param_buffer = 1;
+               } else if(!strcmp("no_instrument_function", token)) {
+                       ev->no_instrument_function = 1;
                }
 
   }
index 7c579e00c6e61ce989c6e5e004f6fdfcfe75ac1d..ec360f8444ce5b3466f49abb3004282427961a25 100644 (file)
@@ -135,6 +135,7 @@ typedef struct _event {
   int  per_trace;   /* Is the event able to be logged to a specific trace ? */
   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;
 } event_t;
 
 typedef struct _facility {
This page took 0.026011 seconds and 4 git commands to generate.