]>
Commit | Line | Data |
---|---|---|
73f52eb4 | 1 | // -*- C++ -*- |
73fcca6f | 2 | // Copyright (C) 2014-2018 Red Hat Inc. |
73f52eb4 DB |
3 | // |
4 | // This file is part of systemtap, and is free software. You can | |
5 | // redistribute it and/or modify it under the terms of the GNU General | |
6 | // Public License (GPL); either version 2, or (at your option) any | |
7 | // later version. | |
8 | ||
9 | #ifndef CMDLINE_H | |
10 | #define CMDLINE_H 1 | |
11 | extern "C" { | |
12 | #include <getopt.h> | |
13 | } | |
14 | ||
15 | // NB: when adding new options, consider very carefully whether they | |
16 | // should be restricted from stap clients (after --client-options)! | |
372c6458 DB |
17 | // NB: The values of these enumerators must not conflict with the values of ordinary |
18 | // characters, since those are returned by getopt_long for short options. | |
19 | enum { | |
523cb754 | 20 | LONG_OPT_VERBOSE_PASS = 256, |
372c6458 DB |
21 | LONG_OPT_SKIP_BADVARS, |
22 | LONG_OPT_UNPRIVILEGED, | |
372c6458 DB |
23 | LONG_OPT_CLIENT_OPTIONS, |
24 | LONG_OPT_HELP, | |
25 | LONG_OPT_DISABLE_CACHE, | |
26 | LONG_OPT_POISON_CACHE, | |
27 | LONG_OPT_CLEAN_CACHE, | |
28 | LONG_OPT_COMPATIBLE, | |
29 | LONG_OPT_LDD, | |
30 | LONG_OPT_USE_SERVER, | |
31 | LONG_OPT_LIST_SERVERS, | |
32 | LONG_OPT_TRUST_SERVERS, | |
cece1a9b | 33 | LONG_OPT_USE_HTTP_SERVER, |
372c6458 DB |
34 | LONG_OPT_ALL_MODULES, |
35 | LONG_OPT_REMOTE, | |
36 | LONG_OPT_CHECK_VERSION, | |
37 | LONG_OPT_USE_SERVER_ON_ERROR, | |
38 | LONG_OPT_VERSION, | |
39 | LONG_OPT_REMOTE_PREFIX, | |
40 | LONG_OPT_TMPDIR, | |
41 | LONG_OPT_DOWNLOAD_DEBUGINFO, | |
42 | LONG_OPT_DUMP_PROBE_TYPES, | |
7d66cd75 | 43 | LONG_OPT_DUMP_PROBE_ALIASES, |
eb9ea966 | 44 | LONG_OPT_DUMP_FUNCTIONS, |
372c6458 DB |
45 | LONG_OPT_PRIVILEGE, |
46 | LONG_OPT_SUPPRESS_HANDLER_ERRORS, | |
ea7e1c17 DB |
47 | LONG_OPT_MODINFO, |
48 | LONG_OPT_RLIMIT_AS, | |
49 | LONG_OPT_RLIMIT_CPU, | |
50 | LONG_OPT_RLIMIT_NPROC, | |
51 | LONG_OPT_RLIMIT_STACK, | |
4bf09a21 JS |
52 | LONG_OPT_RLIMIT_FSIZE, |
53 | LONG_OPT_SYSROOT, | |
54 | LONG_OPT_SYSENV, | |
152fa051 | 55 | LONG_OPT_SUPPRESS_TIME_LIMITS, |
4441e344 | 56 | LONG_OPT_RUNTIME, |
45402f2a | 57 | LONG_OPT_RUNTIME_DYNINST, |
f0bb511e | 58 | LONG_OPT_RUNTIME_BPF, |
a3253b49 | 59 | LONG_OPT_BENCHMARK_SDT, |
3d0a328d JS |
60 | LONG_OPT_BENCHMARK_SDT_LOOPS, |
61 | LONG_OPT_BENCHMARK_SDT_THREADS, | |
a8c9365c | 62 | LONG_OPT_COLOR_ERRS, |
8c1cf686 | 63 | LONG_OPT_PROLOGUE_SEARCHING, |
50f92d4e | 64 | LONG_OPT_SAVE_UPROBES, |
2aca52e2 | 65 | LONG_OPT_TARGET_NAMESPACES, |
6120441d | 66 | LONG_OPT_MONITOR, |
3ccab3a3 | 67 | LONG_OPT_INTERACTIVE, |
aabcebc8 | 68 | LONG_OPT_RUN_EXAMPLE, |
e428db47 | 69 | LONG_OPT_NO_GLOBAL_VAR_DISPLAY, |
372c6458 | 70 | }; |
73f52eb4 DB |
71 | |
72 | // NB: when adding new options, consider very carefully whether they | |
73 | // should be restricted from stap clients (after --client-options)! | |
5d27641e | 74 | #define STAP_SHORT_OPTIONS "hVvtp:I:e:E:o:R:r:a:m:kgPc:x:D:bs:uqiwl:d:L:FS:B:J:jWG:T:" |
73f52eb4 DB |
75 | |
76 | extern struct option stap_long_options[]; | |
73f52eb4 DB |
77 | |
78 | #endif // CMDLINE_H |