From: compudj Date: Mon, 6 Mar 2006 16:02:22 +0000 (+0000) Subject: add slow_printf support to generic X-Git-Tag: v0.12.20~1906 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=f5c61f8de41b96495fb901f28fcc2a5c9fd6c1d7;p=lttv.git add slow_printf support to generic git-svn-id: http://ltt.polymtl.ca/svn@1583 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/parser.c b/ltt/branches/poly/ltt/parser.c index 3183367e..ba331e9e 100644 --- a/ltt/branches/poly/ltt/parser.c +++ b/ltt/branches/poly/ltt/parser.c @@ -247,6 +247,7 @@ void getEventAttributes(parse_file_t *in, event_t *ev) ev->name = NULL; ev->per_trace = 0; ev->per_tracefile = 0; + ev->param_buffer = 0; while(1) { token = getToken(in); @@ -265,7 +266,9 @@ void getEventAttributes(parse_file_t *in, event_t *ev) ev->per_trace = 1; } else if(!strcmp("per_tracefile", token)) { ev->per_tracefile = 1; - } + } else if(!strcmp("param_buffer", token)) { + ev->param_buffer = 1; + } } } diff --git a/ltt/branches/poly/ltt/parser.h b/ltt/branches/poly/ltt/parser.h index c0394049..7c579e00 100644 --- a/ltt/branches/poly/ltt/parser.h +++ b/ltt/branches/poly/ltt/parser.h @@ -134,6 +134,7 @@ typedef struct _event { sequence_t fields; /* event fields */ 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? */ } event_t; typedef struct _facility {