summaryrefslogtreecommitdiffstats
path: root/src/config-bison.y
diff options
context:
space:
mode:
authorJiri Olsa <Jiri Olsa jolsa@redhat.com>2011-05-05 08:54:40 +0200
committerJiri Olsa <Jiri Olsa jolsa@redhat.com>2011-05-05 08:54:40 +0200
commit29420f774dc55c794cebefe24aadc90280601b79 (patch)
treeb2f371bebd836a564de30c5fbec7a659c90515ad /src/config-bison.y
parentc9d0018b9e527168292f8d40273a9e97223c0bc8 (diff)
downloadlatrace-29420f774dc55c794cebefe24aadc90280601b79.tar.gz
latrace-29420f774dc55c794cebefe24aadc90280601b79.tar.xz
latrace-29420f774dc55c794cebefe24aadc90280601b79.zip
adding OUTPUT_TTY config file option
- added OUTPUT_TTY config file option it is possible to catch traced program tty output and storing it to the configured file (0/1/2 descriptors are monitored) - added automated test for the option - refactoring process method a bit - disabling connection between -R and -q options
Diffstat (limited to 'src/config-bison.y')
-rw-r--r--src/config-bison.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config-bison.y b/src/config-bison.y
index a544fa7..4f9dae5 100644
--- a/src/config-bison.y
+++ b/src/config-bison.y
@@ -56,7 +56,7 @@ do { \
%token OPT_TIMESTAMP OPT_FRAMESIZE OPT_FRAMESIZE_CHECK
%token OPT_HIDE_TID OPT_FOLLOW_FORK OPT_FOLLOW_EXEC
%token OPT_DEMANGLE OPT_BRACES OPT_ENABLE_ARGS
-%token OPT_DETAIL_ARGS
+%token OPT_DETAIL_ARGS OPT_OUTPUT_TTY
%union
{
@@ -167,6 +167,11 @@ OPTIONS_DEF OPT_DETAIL_ARGS '=' BOOL
OPTION_ADD(LT_OPT_DETAIL_ARGS, $4, -1);
}
|
+OPTIONS_DEF OPT_OUTPUT_TTY '=' '"' FILENAME '"'
+{
+ OPTION_ADD(LT_OPT_OUTPUT_TTY, $5, -1);
+}
+|
/* left blank intentionally */
%%