Lines Matching defs:opts
33 static struct record_opts opts = {
54 OPT_BOOLEAN('a', "all-cpus", &opts.target.system_wide, "system-wide collection from all CPUs"),
55 OPT_STRING('C', "cpu", &opts.target.cpu_list, "cpu", "list of cpus where to open events"),
56 OPT_STRING('p', "pid", &opts.target.pid, "pid", "record events on existing process id"),
57 OPT_STRING('t', "tid", &opts.target.tid, "tid", "record events on existing thread id"),
58 OPT_STRING('u', "uid", &opts.target.uid_str, "user", "user to profile"),
59 OPT_BOOLEAN(0, "per-thread", &opts.target.per_thread, "use per-thread mmaps"),
100 ret = evlist__create_maps(evlist, &opts.target);
106 evlist__config(evlist, &opts, NULL);
125 err = evlist__mmap(evlist, opts.mmap_pages);
237 err = target__validate(&opts.target);
239 target__strerror(&opts.target, err, errbuf, sizeof(errbuf));
244 err = target__parse_uid(&opts.target);
246 target__strerror(&opts.target, err, errbuf, sizeof(errbuf));
252 opts.ignore_missing_thread = opts.target.uid != UINT_MAX || opts.target.pid;