From 635035ca64e9c6e6ad8252545446bbf9bc2a9c55 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 1 Sep 2009 15:20:39 -0500 Subject: PR10552: Removed references to the merge ('-M') option. * hash.cxx (find_script_hash): Removed unused merge option. * main.cxx (checkOptions): Removed merge option checks. (main): Removed merge option. * session.h: Ditto. * initscript/README.initscript: Removed reference to '-M' option. * initscript/systemtap.in (stap_getopt): Ditto. * testsuite/parseko/cmdline01.stp: Removed merge option test. * testsuite/parseko/cmdline05.stp: Ditto. --- hash.cxx | 1 - initscript/README.initscript | 2 +- initscript/systemtap.in | 2 +- main.cxx | 19 +------------------ session.h | 1 - testsuite/parseko/cmdline01.stp | 6 ------ testsuite/parseko/cmdline05.stp | 5 ----- 7 files changed, 3 insertions(+), 33 deletions(-) delete mode 100755 testsuite/parseko/cmdline01.stp delete mode 100755 testsuite/parseko/cmdline05.stp diff --git a/hash.cxx b/hash.cxx index 105e1115..bcf0ebcc 100644 --- a/hash.cxx +++ b/hash.cxx @@ -168,7 +168,6 @@ find_script_hash (systemtap_session& s, const string& script, const hash &base) // Hash user-specified arguments (that change the generated module). h.add(s.bulk_mode); // '-b' - h.add(s.merge); // '-M' h.add(s.timing); // '-t' h.add(s.prologue_searching); // '-P' h.add(s.ignore_vmlinux); // --ignore-vmlinux diff --git a/initscript/README.initscript b/initscript/README.initscript index ee11f3be..c7bb4888 100644 --- a/initscript/README.initscript +++ b/initscript/README.initscript @@ -223,7 +223,7 @@ Configuration file allows us - Below options are ignored when compiling script. -p,-m,-r,-c,-x,-e,-s,-o,-h,-V,-k - Below options are ignored when starting script. - -h,-V,-M,-v,-t,-p,-I,-e,-R,-r,-m,-k,-g,-P,-D,-b,-u,-q,-w,-l,-d,-L,-F, and + -h,-V,-v,-t,-p,-I,-e,-R,-r,-m,-k,-g,-P,-D,-b,-u,-q,-w,-l,-d,-L,-F, and other long options. 4.2.2 _REQ diff --git a/initscript/systemtap.in b/initscript/systemtap.in index 7552df44..21bcd65b 100644 --- a/initscript/systemtap.in +++ b/initscript/systemtap.in @@ -287,7 +287,7 @@ stap_getopt () { # opts # TODO: support quoted options getopt -s bash -u \ -l 'kelf,kmap::,ignore-vmlinux,ignore-dwarf,vp:' \ - -o 'hVMvtp:I:e:o:R:r:m:kgPc:x:D:bs:uqwl:d:L:FS:' -- $@ + -o 'hVvtp:I:e:o:R:r:m:kgPc:x:D:bs:uqwl:d:L:FS:' -- $@ ret=$? [ $ret -ne 0 ] && slog "Failed to parse parameters. ($@)" return $ret diff --git a/main.cxx b/main.cxx index 9887f2b7..b97d0092 100644 --- a/main.cxx +++ b/main.cxx @@ -368,18 +368,6 @@ checkOptions (systemtap_session &s) { bool optionsConflict = false; - if(!s.bulk_mode && !s.merge) - { - cerr << "-M option is valid only for bulk (relayfs) mode." </dev/null 2>&1 # otherwise, ERROR: message confuses dejagnu -exit $? diff --git a/testsuite/parseko/cmdline05.stp b/testsuite/parseko/cmdline05.stp deleted file mode 100755 index 0f43d7b4..00000000 --- a/testsuite/parseko/cmdline05.stp +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# You can't specify '-M', '-b', and '-o' simultaneously. - -stap -p1 -b -M -o stdout -e 'probe begin { exit() }' -- cgit