Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 146) sorted by relevance

123456

/tools/testing/selftests/filesystems/incfs/
Dincfs_perf.c31 struct options { struct
81 int parse_options(int argc, char *const *argv, struct options *options) in parse_options() argument
86 *options = (struct options){ in parse_options()
97 options->blocks = strtol(optarg, NULL, 10); in parse_options()
101 options->no_cleanup = true; in parse_options()
105 options->test_dir = optarg; in parse_options()
110 options->file_types = optarg; in parse_options()
112 options->file_types = "sS"; in parse_options()
120 options->no_native = true; in parse_options()
124 options->no_random = true; in parse_options()
[all …]
Dincfs_stress.c29 struct options { struct
49 int parse_options(int argc, char *const *argv, struct options *options) in parse_options() argument
54 *options = (struct options){ in parse_options()
65 options->no_cleanup = true; in parse_options()
69 options->test_dir = optarg; in parse_options()
73 options->rng_seed = strtol(optarg, NULL, 10); in parse_options()
77 options->num_reads = strtol(optarg, NULL, 10); in parse_options()
81 options->readers = strtol(optarg, NULL, 10); in parse_options()
85 options->size = strtol(optarg, NULL, 10); in parse_options()
89 options->timeout = strtol(optarg, NULL, 10); in parse_options()
[all …]
/tools/lib/subcmd/
Dparse-options.c345 static int parse_short_opt(struct parse_opt_ctx_t *p, const struct option *options) in parse_short_opt() argument
348 for (; options->type != OPTION_END; options++) { in parse_short_opt()
349 if (options->short_name == *p->opt) { in parse_short_opt()
351 return get_value(p, options, OPT_SHORT); in parse_short_opt()
355 if (options->parent) { in parse_short_opt()
356 options = options->parent; in parse_short_opt()
364 const struct option *options) in parse_long_opt() argument
374 for (; options->type != OPTION_END; options++) { in parse_long_opt()
378 if (!options->long_name) in parse_long_opt()
381 rest = skip_prefix(arg, options->long_name); in parse_long_opt()
[all …]
/tools/perf/trace/beauty/
Dwaitid_options.c10 int printed = 0, options = arg->val; in syscall_arg__scnprintf_waitid_options() local
13 if (options & W##n) { \ in syscall_arg__scnprintf_waitid_options()
15 options &= ~W##n; \ in syscall_arg__scnprintf_waitid_options()
23 if (options) in syscall_arg__scnprintf_waitid_options()
24 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", options); in syscall_arg__scnprintf_waitid_options()
/tools/perf/Documentation/
Dperf-version.txt10 'perf version' [--build-options]
14 With no options given, the 'perf version' prints the perf version
17 If the option '--build-options' is given, then the status of
22 --build-options::
Dperf-mem.txt11 'perf mem' [<options>] (record [<command>] | report)
16 from it, into perf.data. Perf record options are accepted and are passed through.
19 right set of options to display a memory access profile. By default, loads
90 In addition, for report all perf report options are valid, and for record
91 all perf record options.
Dperf-daemon.txt14 'perf daemon' [<options>]
15 'perf daemon start' [<options>]
16 'perf daemon stop' [<options>]
17 'perf daemon signal' [<options>]
18 'perf daemon ping' [<options>]
42 options).
63 All generic options are available also under commands.
Dperf-help.txt15 With no options and no COMMAND given, the synopsis of the 'perf'
24 can be overridden by other options or configuration variables.
/tools/lib/traceevent/
Devent-plugin.c26 struct tep_plugin_option *options; member
115 for (op = reg->options; op->name; op++) { in tep_plugin_list_options()
220 struct tep_plugin_option *options) in tep_plugin_add_options() argument
228 reg->options = options; in tep_plugin_add_options()
231 while (options->name) { in tep_plugin_add_options()
232 update_option(name, options); in tep_plugin_add_options()
233 options++; in tep_plugin_add_options()
242 void tep_plugin_remove_options(struct tep_plugin_option *options) in tep_plugin_remove_options() argument
248 if ((*last)->options == options) { in tep_plugin_remove_options()
281 for (op = reg->options; op->name; op++) { in find_registered_option()
[all …]
/tools/perf/tests/
Dattr.py141 def __init__(self, path, options): argument
148 self.test_dir = options.test_dir
149 self.perf = options.perf
326 def run_tests(options): argument
327 for f in glob.glob(options.test_dir + '/' + options.test):
329 Test(f, options).run()
373 options, args = parser.parse_args()
378 setup_log(options.verbose)
380 if not options.test_dir:
384 if not options.test:
[all …]
/tools/perf/
Dbuiltin-evlist.c69 const struct option options[] = { in cmd_evlist() local
85 argc = parse_options(argc, argv, options, evlist_usage, 0); in cmd_evlist()
87 usage_with_options(evlist_usage, options); in cmd_evlist()
90 usage_with_options_msg(evlist_usage, options, in cmd_evlist()
Dbuiltin-probe.c513 struct option options[] = { in __cmd_probe() local
593 set_option_flag(options, 'a', "add", PARSE_OPT_EXCLUSIVE); in __cmd_probe()
594 set_option_flag(options, 'd', "del", PARSE_OPT_EXCLUSIVE); in __cmd_probe()
595 set_option_flag(options, 'D', "definition", PARSE_OPT_EXCLUSIVE); in __cmd_probe()
596 set_option_flag(options, 'l', "list", PARSE_OPT_EXCLUSIVE); in __cmd_probe()
598 set_option_flag(options, 'L', "line", PARSE_OPT_EXCLUSIVE); in __cmd_probe()
599 set_option_flag(options, 'V', "vars", PARSE_OPT_EXCLUSIVE); in __cmd_probe()
601 # define set_nobuild(s, l, c) set_option_nobuild(options, s, l, "NO_DWARF=1", c) in __cmd_probe()
611 set_option_flag(options, 'F', "funcs", PARSE_OPT_EXCLUSIVE); in __cmd_probe()
613 argc = parse_options(argc, argv, options, probe_usage, in __cmd_probe()
[all …]
Dbuiltin-kallsyms.c50 const struct option options[] = { in cmd_kallsyms() local
59 argc = parse_options(argc, argv, options, kallsyms_usage, 0); in cmd_kallsyms()
61 usage_with_options(kallsyms_usage, options); in cmd_kallsyms()
Dbuiltin-buildid-list.c104 const struct option options[] = { in cmd_buildid_list() local
117 argc = parse_options(argc, argv, options, buildid_list_usage, 0); in cmd_buildid_list()
/tools/testing/selftests/bpf/
Dtest_sockmap.c909 static int run_options(struct sockmap_options *options, int cg_fd, int test) in run_options() argument
968 err = sockmap_init_sockets(options->verbose); in run_options()
1214 options->drop_expected = true; in run_options()
1217 err = forever_ping_pong(options->rate, options); in run_options()
1219 options->base = false; in run_options()
1220 options->sendpage = false; in run_options()
1221 err = sendmsg_test(options); in run_options()
1223 options->base = false; in run_options()
1224 options->sendpage = true; in run_options()
1225 err = sendmsg_test(options); in run_options()
[all …]
/tools/testing/selftests/ftrace/test.d/event/
Devent-pid.tc10 echo 0 > options/event-fork
20 echo 0 > options/event-fork
49 echo 1 > options/event-fork
Devent-no-pid.tc11 echo 0 > options/event-fork
64 echo 0 > options/event-fork
92 echo 1 > options/event-fork
/tools/kvm/kvm_stat/
Dkvm_stat872 def __init__(self, options): argument
873 self.providers = self._get_providers(options)
874 self._pid_filter = options.pid
875 self._fields_filter = options.fields
879 def _get_providers(self, options): argument
883 if options.debugfs:
884 providers.append(DebugfsProvider(options.pid, options.fields,
885 options.debugfs_include_past))
886 if options.tracepoints or not providers:
887 providers.append(TracepointProvider(options.pid, options.fields))
[all …]
/tools/testing/selftests/powerpc/benchmarks/
Dmmap_bench.c23 static struct option options[] = { variable
66 c = getopt_long(argc, argv, "", options, &option_index); in main()
73 if (options[option_index].flag != 0) in main()
/tools/perf/bench/
Dkallsyms-parse.c16 static const struct option options[] = { variable
68 argc = parse_options(argc, argv, options, bench_usage, 0); in bench_kallsyms_parse()
70 usage_with_options(bench_usage, options); in bench_kallsyms_parse()
Dsyscall.c23 static const struct option options[] = { variable
39 argc = parse_options(argc, argv, options, bench_syscall_usage, 0); in bench_syscall_basic()
Dfind-bit-bench.c18 static const struct option options[] = { variable
125 argc = parse_options(argc, argv, options, bench_usage, 0); in bench_mem_find_bit()
127 usage_with_options(bench_usage, options); in bench_mem_find_bit()
/tools/perf/ui/browsers/
Dannotate.c105 .change_color = (!notes->options->hide_src_code && in annotate_browser__write()
203 if (notes->options->hide_src_code) { in annotate_browser__draw_current_jump()
232 if (notes->options->jump_arrows) in annotate_browser__refresh()
306 if (notes->options->hide_src_code) in annotate_browser__set_rb_top()
388 if (notes->options->hide_src_code) { in annotate_browser__toggle_source()
393 notes->options->hide_src_code = false; in annotate_browser__toggle_source()
411 notes->options->hide_src_code = true; in annotate_browser__toggle_source()
815 notes->options->show_linenr = !notes->options->show_linenr; in annotate_browser__run()
828 notes->options->use_offset = !notes->options->use_offset; in annotate_browser__run()
832 if (++notes->options->offset_level > ANNOTATION__MAX_OFFSET_LEVEL) in annotate_browser__run()
[all …]
/tools/hv/
Dlsvmbus12 (options, args) = parser.parse_args()
15 if options.verbose is not None:
16 verbose = options.verbose
/tools/perf/util/
Dannotate.h283 struct annotation_options *options; member
304 if (notes->have_cycles && notes->options->show_minmax_cycle) in annotation__cycles_width()
317 return notes->options->hide_src_code && al->offset == -1; in annotation_line__filter()
356 struct annotation_options *options,
360 struct annotation_options *options,
388 struct annotation_options *options);

123456