From 54be3e479151d0279429f7fbecd111431650c58f Mon Sep 17 00:00:00 2001 From: compudj Date: Mon, 6 Mar 2006 23:45:17 +0000 Subject: [PATCH] add func instrumentation git-svn-id: http://ltt.polymtl.ca/svn@1592 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/configure.in | 2 +- ltt/branches/poly/facilities/user_generic.xml | 12 ++++++++++++ ltt/branches/poly/ltt/parser.c | 3 +++ ltt/branches/poly/ltt/parser.h | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ltt/branches/poly/configure.in b/ltt/branches/poly/configure.in index 61ca6f79..73f88761 100644 --- a/ltt/branches/poly/configure.in +++ b/ltt/branches/poly/configure.in @@ -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 diff --git a/ltt/branches/poly/facilities/user_generic.xml b/ltt/branches/poly/facilities/user_generic.xml index a7000285..6e555bbc 100644 --- a/ltt/branches/poly/facilities/user_generic.xml +++ b/ltt/branches/poly/facilities/user_generic.xml @@ -17,4 +17,16 @@ + + Entry in a function + + + + + + Exit from a function + + + + diff --git a/ltt/branches/poly/ltt/parser.c b/ltt/branches/poly/ltt/parser.c index ba331e9e..28ebaeea 100644 --- a/ltt/branches/poly/ltt/parser.c +++ b/ltt/branches/poly/ltt/parser.c @@ -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; } } diff --git a/ltt/branches/poly/ltt/parser.h b/ltt/branches/poly/ltt/parser.h index 7c579e00..ec360f84 100644 --- a/ltt/branches/poly/ltt/parser.h +++ b/ltt/branches/poly/ltt/parser.h @@ -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 { -- 2.34.1