File: cmdline.cxx

package info (click to toggle)
systemtap 5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 47,964 kB
  • sloc: cpp: 80,838; ansic: 54,757; xml: 49,725; exp: 43,665; sh: 11,527; python: 5,003; perl: 2,252; tcl: 1,312; makefile: 1,006; javascript: 149; lisp: 105; awk: 101; asm: 91; java: 70; sed: 16
file content (70 lines) | stat: -rw-r--r-- 5,153 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Shared data for parsing the stap command line
// Copyright (C) 2014-2018 Red Hat Inc.
//
// This file is part of systemtap, and is free software.  You can
// redistribute it and/or modify it under the terms of the GNU General
// Public License (GPL); either version 2, or (at your option) any
// later version.

#include <cstdlib>
#include "cmdline.h"

// NB: when adding new options, consider very carefully whether they
// should be restricted from stap clients (after --client-options)!
struct option stap_long_options[] = {
  { "skip-badvars",                no_argument,       NULL, LONG_OPT_SKIP_BADVARS },
  { "vp",                          required_argument, NULL, LONG_OPT_VERBOSE_PASS },
  { "unprivileged",                no_argument,       NULL, LONG_OPT_UNPRIVILEGED },
  { "build-as",                    optional_argument, NULL, LONG_OPT_BUILD_AS },
  { "client-options",              no_argument,       NULL, LONG_OPT_CLIENT_OPTIONS },
  { "help",                        no_argument,       NULL, LONG_OPT_HELP },
  { "disable-cache",               no_argument,       NULL, LONG_OPT_DISABLE_CACHE },
  { "poison-cache",                no_argument,       NULL, LONG_OPT_POISON_CACHE },
  { "clean-cache",                 no_argument,       NULL, LONG_OPT_CLEAN_CACHE },
  { "compatible",                  required_argument, NULL, LONG_OPT_COMPATIBLE },
  { "ldd",                         no_argument,       NULL, LONG_OPT_LDD },
  { "use-server",                  optional_argument, NULL, LONG_OPT_USE_SERVER },
  { "list-servers",                optional_argument, NULL, LONG_OPT_LIST_SERVERS },
  { "trust-servers",               optional_argument, NULL, LONG_OPT_TRUST_SERVERS },
  { "use-server-on-error",         optional_argument, NULL, LONG_OPT_USE_SERVER_ON_ERROR },
  { "use-http-server",             required_argument, NULL, LONG_OPT_USE_HTTP_SERVER },
  { "all-modules",                 no_argument,       NULL, LONG_OPT_ALL_MODULES },
  { "sign-module",                 optional_argument, NULL, LONG_OPT_SIGN_MODULE },
  { "remote",                      required_argument, NULL, LONG_OPT_REMOTE },
  { "remote-prefix",               no_argument,       NULL, LONG_OPT_REMOTE_PREFIX },
  { "check-version",               no_argument,       NULL, LONG_OPT_CHECK_VERSION },
  { "version",                     no_argument,       NULL, LONG_OPT_VERSION },
  { "tmpdir",                      required_argument, NULL, LONG_OPT_TMPDIR },
  { "download-debuginfo",          optional_argument, NULL, LONG_OPT_DOWNLOAD_DEBUGINFO },
  { "dump-probe-types",            no_argument,       NULL, LONG_OPT_DUMP_PROBE_TYPES },
  { "dump-probe-aliases",          no_argument,       NULL, LONG_OPT_DUMP_PROBE_ALIASES },
  { "dump-functions",              no_argument,       NULL, LONG_OPT_DUMP_FUNCTIONS },
  { "privilege",                   required_argument, NULL, LONG_OPT_PRIVILEGE },
  { "suppress-handler-errors",     no_argument,       NULL, LONG_OPT_SUPPRESS_HANDLER_ERRORS },
  { "modinfo",                     required_argument, NULL, LONG_OPT_MODINFO },
  { "rlimit-as",                   required_argument, NULL, LONG_OPT_RLIMIT_AS },
  { "rlimit-cpu",                  required_argument, NULL, LONG_OPT_RLIMIT_CPU },
  { "rlimit-nproc",                required_argument, NULL, LONG_OPT_RLIMIT_NPROC },
  { "rlimit-stack",                required_argument, NULL, LONG_OPT_RLIMIT_STACK },
  { "rlimit-fsize",                required_argument, NULL, LONG_OPT_RLIMIT_FSIZE },
  { "sysroot",                     required_argument, NULL, LONG_OPT_SYSROOT },
  { "sysenv",                      required_argument, NULL, LONG_OPT_SYSENV },
  { "suppress-time-limits",        no_argument,       NULL, LONG_OPT_SUPPRESS_TIME_LIMITS },
  { "runtime",                     required_argument, NULL, LONG_OPT_RUNTIME },
  { "dyninst",                     no_argument,       NULL, LONG_OPT_RUNTIME_DYNINST },
  { "bpf",                         no_argument,       NULL, LONG_OPT_RUNTIME_BPF },
  { "benchmark-sdt",               no_argument,       NULL, LONG_OPT_BENCHMARK_SDT },
  { "benchmark-sdt-loops",         required_argument, NULL, LONG_OPT_BENCHMARK_SDT_LOOPS },
  { "benchmark-sdt-threads",       required_argument, NULL, LONG_OPT_BENCHMARK_SDT_THREADS },
  { "color",                       optional_argument, NULL, LONG_OPT_COLOR_ERRS },
  { "colour",                      optional_argument, NULL, LONG_OPT_COLOR_ERRS },
  { "prologue-searching",          optional_argument, NULL, LONG_OPT_PROLOGUE_SEARCHING },
  { "save-uprobes",                no_argument,       NULL, LONG_OPT_SAVE_UPROBES },
  { "target-namespaces",           required_argument, NULL, LONG_OPT_TARGET_NAMESPACES },
  { "monitor",                     optional_argument, NULL, LONG_OPT_MONITOR },
  { "interactive",                 no_argument,       NULL, LONG_OPT_INTERACTIVE},
  { "example",                     no_argument,       NULL, LONG_OPT_RUN_EXAMPLE},
  { "no-global-var-display",       no_argument,       NULL, LONG_OPT_NO_GLOBAL_VAR_DISPLAY},
  { "language-server",             no_argument,       NULL, LONG_OPT_LANGUAGE_SERVER},
  { NULL, 0, NULL, 0 }
};