/tools/perf/util/ |
D | record.c | 98 void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts) in perf_evlist__config() argument 108 if (opts->group) in perf_evlist__config() 112 opts->no_inherit = true; in perf_evlist__config() 117 perf_evsel__config(evsel, opts); in perf_evlist__config() 152 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument 154 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq() 157 if (opts->user_interval != ULLONG_MAX) in record_opts__config_freq() 158 opts->default_interval = opts->user_interval; in record_opts__config_freq() 160 opts->freq = opts->user_freq; in record_opts__config_freq() 165 if (opts->default_interval) in record_opts__config_freq() [all …]
|
D | parse-options.c | 499 static void print_option_help(const struct option *opts, int full) in print_option_help() argument 504 if (opts->type == OPTION_GROUP) { in print_option_help() 506 if (*opts->help) in print_option_help() 507 fprintf(stderr, "%s\n", opts->help); in print_option_help() 510 if (!full && (opts->flags & PARSE_OPT_HIDDEN)) in print_option_help() 514 if (opts->short_name) in print_option_help() 515 pos += fprintf(stderr, "-%c", opts->short_name); in print_option_help() 519 if (opts->long_name && opts->short_name) in print_option_help() 521 if (opts->long_name) in print_option_help() 522 pos += fprintf(stderr, "--%s", opts->long_name); in print_option_help() [all …]
|
D | top.c | 29 struct record_opts *opts = &top->record_opts; in perf_top__header_snprintf() local 30 struct target *target = &opts->target; in perf_top__header_snprintf() 77 opts->freq ? "Hz" : ""); in perf_top__header_snprintf()
|
D | evsel.c | 594 void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts) in perf_evsel__config() argument 599 bool per_cpu = opts->target.default_per_cpu && !opts->target.per_thread; in perf_evsel__config() 602 attr->inherit = !opts->no_inherit; in perf_evsel__config() 630 if (!attr->sample_period || (opts->user_freq != UINT_MAX || in perf_evsel__config() 631 opts->user_interval != ULLONG_MAX)) { in perf_evsel__config() 632 if (opts->freq) { in perf_evsel__config() 635 attr->sample_freq = opts->freq; in perf_evsel__config() 637 attr->sample_period = opts->default_interval; in perf_evsel__config() 650 if (opts->no_samples) in perf_evsel__config() 653 if (opts->inherit_stat) in perf_evsel__config() [all …]
|
D | kvm-stat.h | 74 struct record_opts opts; member
|
D | evlist.h | 110 void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts); 111 int record_opts__config(struct record_opts *opts);
|
/tools/perf/ |
D | builtin-record.c | 38 struct record_opts opts; member 142 struct record_opts *opts = &rec->opts; in record__open() local 145 perf_evlist__config(evlist, opts); in record__open() 157 perf_evsel__open_strerror(pos, &opts->target, in record__open() 171 if (perf_evlist__mmap(evlist, opts->mmap_pages, false) < 0) { in record__open() 177 "(current value: %u)\n", opts->mmap_pages); in record__open() 282 if (!rec->opts.branch_stack) in record__init_features() 310 struct record_opts *opts = &rec->opts; in __cmd_record() local 333 err = perf_evlist__prepare_workload(rec->evlist, &opts->target, in __cmd_record() 418 err = __machine__synthesize_threads(machine, tool, &opts->target, rec->evlist->threads, in __cmd_record() [all …]
|
D | builtin-kvm.c | 546 if (kvm->opts.target.system_wide) in print_vcpu_info() 548 else if (kvm->opts.target.pid) in print_vcpu_info() 549 pr_info("pid(s) %s, ", kvm->opts.target.pid); in print_vcpu_info() 981 perf_evlist__config(evlist, &kvm->opts); in kvm_live_open_events() 1021 if (perf_evlist__mmap(evlist, kvm->opts.mmap_pages, false) < 0) { in kvm_live_open_events() 1074 if (kvm->opts.target.pid) { in parse_target_str() 1075 kvm->pid_list = intlist__new(kvm->opts.target.pid); in parse_target_str() 1177 OPT_STRING('p', "pid", &kvm->opts.target.pid, "pid", in kvm_events_report() 1196 if (!kvm->opts.target.pid) in kvm_events_report() 1197 kvm->opts.target.system_wide = true; in kvm_events_report() [all …]
|
D | perf-completion.sh | 131 opts=$($cmd $subcmd --list-opts) 132 __perfcomp "$opts" "$cur"
|
D | builtin-top.c | 879 struct record_opts *opts = &top->record_opts; in perf_top__start_counters() local 881 perf_evlist__config(evlist, opts); in perf_top__start_counters() 893 perf_evsel__open_strerror(counter, &opts->target, in perf_top__start_counters() 900 if (perf_evlist__mmap(evlist, opts->mmap_pages, false) < 0) { in perf_top__start_counters() 931 struct record_opts *opts = &top->record_opts; in __cmd_top() local 951 machine__synthesize_threads(&top->session->machines.host, &opts->target, in __cmd_top() 968 if (!target__none(&opts->target)) in __cmd_top() 1066 struct record_opts *opts = &top.record_opts; in cmd_top() local 1067 struct target *target = &opts->target; in cmd_top() 1072 OPT_U64('c', "count", &opts->user_interval, "event period to sample"), in cmd_top() [all …]
|
D | builtin-trace.c | 1221 struct record_opts opts; member 1423 err = __machine__synthesize_threads(trace->host, &trace->tool, &trace->opts.target, in trace__symbols_init() 1921 if (trace->opts.target.pid) { in parse_target_str() 1922 trace->pid_list = intlist__new(trace->opts.target.pid); in parse_target_str() 1929 if (trace->opts.target.tid) { in parse_target_str() 1930 trace->tid_list = intlist__new(trace->opts.target.tid); in parse_target_str() 2078 err = perf_evlist__create_maps(evlist, &trace->opts.target); in trace__run() 2090 perf_evlist__config(evlist, &trace->opts); in trace__run() 2096 err = perf_evlist__prepare_workload(evlist, &trace->opts.target, in trace__run() 2108 err = perf_evlist__mmap(evlist, trace->opts.mmap_pages, false); in trace__run() [all …]
|
/tools/perf/tests/ |
D | open-syscall-tp-fields.c | 10 struct record_opts opts = { in test__syscall_open_tp_fields() local 40 err = perf_evlist__create_maps(evlist, &opts.target); in test__syscall_open_tp_fields() 46 perf_evsel__config(evsel, &opts); in test__syscall_open_tp_fields()
|
D | perf-record.c | 37 struct record_opts opts = { in test__PERF_RECORD() local 75 err = perf_evlist__create_maps(evlist, &opts.target); in test__PERF_RECORD() 87 err = perf_evlist__prepare_workload(evlist, &opts.target, argv, false, NULL); in test__PERF_RECORD() 100 perf_evlist__config(evlist, &opts); in test__PERF_RECORD() 136 err = perf_evlist__mmap(evlist, opts.mmap_pages, false); in test__PERF_RECORD()
|
D | keep-tracking.c | 54 struct record_opts opts = { in test__keep_tracking() local 84 perf_evlist__config(evlist, &opts); in test__keep_tracking()
|
D | perf-time-to-tsc.c | 38 struct record_opts opts = { in test__perf_time_to_tsc() local 73 perf_evlist__config(evlist, &opts); in test__perf_time_to_tsc()
|
D | code-reading.c | 393 struct record_opts opts = { in do_test_code_reading() local 494 perf_evlist__config(evlist, &opts); in do_test_code_reading()
|
D | switch-tracking.c | 312 struct record_opts opts = { in test__switch_tracking() local 420 perf_evlist__config(evlist, &opts); in test__switch_tracking()
|
/tools/usb/usbip/src/ |
D | usbip_detach.c | 84 static const struct option opts[] = { in usbip_detach() local 92 opt = getopt_long(argc, argv, "p:", opts, NULL); in usbip_detach()
|
D | usbip_unbind.c | 114 static const struct option opts[] = { in usbip_unbind() local 123 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_unbind()
|
D | usbip_bind.c | 196 static const struct option opts[] = { in usbip_bind() local 205 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_bind()
|
D | usbip.c | 147 static const struct option opts[] = { in main() local 161 opt = getopt_long(argc, argv, "+dlt:", opts, NULL); in main()
|
D | usbip_attach.c | 203 static const struct option opts[] = { in usbip_attach() local 214 opt = getopt_long(argc, argv, "r:b:", opts, NULL); in usbip_attach()
|
D | usbip_list.c | 251 static const struct option opts[] = { in usbip_list() local 266 opt = getopt_long(argc, argv, "pr:l", opts, NULL); in usbip_list()
|
/tools/power/acpi/common/ |
D | getopt.c | 120 int acpi_getopt(int argc, char **argv, char *opts) in acpi_getopt() argument 143 (opts_ptr = ACPI_STRCHR(opts, current_char)) == NULL) { in acpi_getopt()
|
/tools/thermal/tmon/ |
D | tmon.c | 218 static struct option opts[] = { variable 242 while ((c = getopt_long(argc, argv, "c:dlht:vgz:", opts, &id2)) != -1) { in main()
|