summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-09-17 18:43:14 -0700
committerJosh Stone <jistone@redhat.com>2009-09-17 18:43:14 -0700
commitbe0789e5d8f6aa888efb53d033eca149c3710278 (patch)
tree1176c34d567f39030228efe4edd02d949c8c31fd /main.cxx
parenta9b593471a5d22c820333938d4c4210efd63bd3a (diff)
parent762684a57fa5420cc122b475f592545e8eeb29cd (diff)
downloadsystemtap-steved-be0789e5d8f6aa888efb53d033eca149c3710278.tar.gz
systemtap-steved-be0789e5d8f6aa888efb53d033eca149c3710278.tar.xz
systemtap-steved-be0789e5d8f6aa888efb53d033eca149c3710278.zip
Merge branch 'master' of sourceware.org:/git/systemtap
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx46
1 files changed, 5 insertions, 41 deletions
diff --git a/main.cxx b/main.cxx
index c2331a3e..8e3c9399 100644
--- a/main.cxx
+++ b/main.cxx
@@ -381,42 +381,6 @@ checkOptions (systemtap_session &s)
cerr << "You can't specify -g and --unprivileged together." << endl;
optionsConflict = true;
}
- if (s.include_path.size () > 1)
- {
- cerr << "You can't specify -I and --unprivileged together." << endl;
- optionsConflict = true;
- }
- if (s.runtime_path != string(PKGDATADIR) + "/runtime")
- {
- cerr << "You can't use -R to specify an alternate runtime path when --unprivileged is specified." << endl;
- optionsConflict = true;
- }
- if (s.kernel_build_tree.substr(0, 13) != "/lib/modules/")
- {
- cerr << "You can't use -r to specify a kernel release which is not installed when --unprivileged is specified." << endl;
- optionsConflict = true;
- }
- if (! s.macros.empty ())
- {
- cerr << "You can't specify -D and --unprivileged together." << endl;
- optionsConflict = true;
- }
-
- if (getenv ("SYSTEMTAP_TAPSET"))
- {
- cerr << "The environment variable SYSTEMTAP_TAPSET can not be defined when --unprivileged is specified." << endl;
- optionsConflict = true;
- }
- if (getenv ("SYSTEMTAP_RUNTIME"))
- {
- cerr << "The environment variable SYSTEMTAP_RUNTIME can not be defined when --unprivileged is specified." << endl;
- optionsConflict = true;
- }
- if (getenv ("SYSTEMTAP_DEBUGINFO_PATH"))
- {
- cerr << "The environment variable SYSTEMTAP_DEBUGINFO_PATH can not be defined when --unprivileged is specified." << endl;
- optionsConflict = true;
- }
}
if (!s.kernel_symtab_path.empty())
@@ -621,17 +585,17 @@ main (int argc, char * const argv [])
break;
case 'p':
- if (s.listing_mode)
- {
- cerr << "Listing (-l) mode implies pass 2." << endl;
- usage (s, 1);
- }
s.last_pass = (int)strtoul(optarg, &num_endptr, 10);
if (*num_endptr != '\0' || s.last_pass < 1 || s.last_pass > 5)
{
cerr << "Invalid pass number (should be 1-5)." << endl;
usage (s, 1);
}
+ if (s.listing_mode && s.last_pass != 2)
+ {
+ cerr << "Listing (-l) mode implies pass 2." << endl;
+ usage (s, 1);
+ }
break;
case 'I':