Lines Matching refs:record
75 struct record { struct
104 static bool switch_output_signal(struct record *rec) in switch_output_signal() argument
110 static bool switch_output_size(struct record *rec) in switch_output_size()
117 static bool switch_output_time(struct record *rec) in switch_output_time()
123 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write()
141 static int record__aio_enabled(struct record *rec);
142 static int record__comp_enabled(struct record *rec);
254 struct record *rec;
304 static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) in record__aio_push()
351 static void record__aio_mmap_read_sync(struct record *rec) in record__aio_mmap_read_sync()
391 static int record__aio_push(struct record *rec __maybe_unused, struct mmap *map __maybe_unused, in record__aio_push()
406 static void record__aio_mmap_read_sync(struct record *rec __maybe_unused) in record__aio_mmap_read_sync()
411 static int record__aio_enabled(struct record *rec) in record__aio_enabled()
472 static int record__comp_enabled(struct record *rec) in record__comp_enabled()
482 struct record *rec = container_of(tool, struct record, tool); in process_synthesized_event()
488 struct record *rec = to; in record__pushfn()
535 struct record *rec = container_of(tool, struct record, tool); in record__process_auxtrace()
568 static int record__auxtrace_mmap_read(struct record *rec, in record__auxtrace_mmap_read()
584 static int record__auxtrace_mmap_read_snapshot(struct record *rec, in record__auxtrace_mmap_read_snapshot()
601 static int record__auxtrace_read_snapshot_all(struct record *rec) in record__auxtrace_read_snapshot_all()
621 static void record__read_auxtrace_snapshot(struct record *rec, bool on_exit) in record__read_auxtrace_snapshot()
634 static int record__auxtrace_snapshot_exit(struct record *rec) in record__auxtrace_snapshot_exit()
650 static int record__auxtrace_init(struct record *rec) in record__auxtrace_init()
671 int record__auxtrace_mmap_read(struct record *rec __maybe_unused, in record__auxtrace_mmap_read()
678 void record__read_auxtrace_snapshot(struct record *rec __maybe_unused, in record__read_auxtrace_snapshot()
690 int record__auxtrace_snapshot_exit(struct record *rec __maybe_unused) in record__auxtrace_snapshot_exit()
695 static int record__auxtrace_init(struct record *rec __maybe_unused) in record__auxtrace_init()
702 static int record__mmap_evlist(struct record *rec, in record__mmap_evlist()
736 static int record__mmap(struct record *rec) in record__mmap()
741 static int record__open(struct record *rec) in record__open()
827 struct record *rec = container_of(tool, struct record, tool); in process_sample_event()
841 static int process_buildids(struct record *rec) in process_buildids()
905 static void record__adjust_affinity(struct record *rec, struct mmap *map) in record__adjust_affinity()
915 static size_t process_comp_header(void *record, size_t increment) in process_comp_header() argument
917 struct perf_record_compressed *event = record; in process_comp_header()
946 static int record__mmap_read_evlist(struct record *rec, struct evlist *evlist, in record__mmap_read_evlist()
1022 static int record__mmap_read_all(struct record *rec, bool synch) in record__mmap_read_all()
1033 static void record__init_features(struct record *rec) in record__init_features()
1064 record__finish_output(struct record *rec) in record__finish_output()
1086 static int record__synthesize_workload(struct record *rec, bool tail) in record__synthesize_workload()
1106 static int record__synthesize(struct record *rec, bool tail);
1109 record__switch_output(struct record *rec, bool at_exit) in record__switch_output()
1209 static const struct perf_event_mmap_page *record__pick_pc(struct record *rec) in record__pick_pc()
1219 static int record__synthesize(struct record *rec, bool tail) in record__synthesize()
1335 static int __cmd_record(struct record *rec, int argc, const char **argv) in __cmd_record()
1749 int record_opts__parse_callchain(struct record_opts *record, in record_opts__parse_callchain() argument
1767 record->sample_address = true; in record_opts__parse_callchain()
1798 struct record *rec = cb; in perf_record_config()
1982 static void switch_output_size_warn(struct record *rec) in switch_output_size_warn()
1999 static int switch_output_setup(struct record *rec) in switch_output_setup()
2071 static struct record record = { variable
2109 OPT_CALLBACK('e', "event", &record.evlist, "event",
2112 OPT_CALLBACK(0, "filter", &record.evlist, "filter",
2114 OPT_CALLBACK_NOOPT(0, "exclude-perf", &record.evlist,
2117 OPT_STRING('p', "pid", &record.opts.target.pid, "pid",
2119 OPT_STRING('t', "tid", &record.opts.target.tid, "tid",
2121 OPT_INTEGER('r', "realtime", &record.realtime_prio,
2123 OPT_BOOLEAN(0, "no-buffering", &record.opts.no_buffering,
2125 OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples,
2127 OPT_BOOLEAN('a', "all-cpus", &record.opts.target.system_wide,
2129 OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu",
2131 OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"),
2132 OPT_STRING('o', "output", &record.data.path, "file",
2134 OPT_BOOLEAN_SET('i', "no-inherit", &record.opts.no_inherit,
2135 &record.opts.no_inherit_set,
2137 OPT_BOOLEAN(0, "tail-synthesize", &record.opts.tail_synthesize,
2139 OPT_BOOLEAN(0, "overwrite", &record.opts.overwrite, "use overwrite mode"),
2140 OPT_BOOLEAN(0, "no-bpf-event", &record.opts.no_bpf_event, "record bpf events"),
2141 OPT_BOOLEAN(0, "strict-freq", &record.opts.strict_freq,
2143 OPT_CALLBACK('F', "freq", &record.opts, "freq or 'max'",
2146 OPT_CALLBACK('m', "mmap-pages", &record.opts, "pages[,pages]",
2149 OPT_CALLBACK(0, "mmap-flush", &record.opts, "number",
2152 OPT_BOOLEAN(0, "group", &record.opts.group,
2157 OPT_CALLBACK(0, "call-graph", &record.opts,
2163 OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat,
2165 OPT_BOOLEAN('d', "data", &record.opts.sample_address, "Record the sample addresses"),
2166 OPT_BOOLEAN(0, "phys-data", &record.opts.sample_phys_addr,
2168 OPT_BOOLEAN(0, "sample-cpu", &record.opts.sample_cpu, "Record the sample cpu"),
2169 OPT_BOOLEAN_SET('T', "timestamp", &record.opts.sample_time,
2170 &record.opts.sample_time_set,
2172 OPT_BOOLEAN_SET('P', "period", &record.opts.period, &record.opts.period_set,
2174 OPT_BOOLEAN('n', "no-samples", &record.opts.no_samples,
2176 OPT_BOOLEAN_SET('N', "no-buildid-cache", &record.no_buildid_cache,
2177 &record.no_buildid_cache_set,
2179 OPT_BOOLEAN_SET('B', "no-buildid", &record.no_buildid,
2180 &record.no_buildid_set,
2182 OPT_CALLBACK('G', "cgroup", &record.evlist, "name",
2185 OPT_UINTEGER('D', "delay", &record.opts.initial_delay,
2187 OPT_STRING('u', "uid", &record.opts.target.uid_str, "user",
2190 OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack,
2194 OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack,
2197 OPT_BOOLEAN('W', "weight", &record.opts.sample_weight,
2199 OPT_BOOLEAN(0, "transaction", &record.opts.sample_transaction,
2201 OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread,
2203 OPT_CALLBACK_OPTARG('I', "intr-regs", &record.opts.sample_intr_regs, NULL, "any register",
2206 OPT_CALLBACK_OPTARG(0, "user-regs", &record.opts.sample_user_regs, NULL, "any register",
2209 OPT_BOOLEAN(0, "running-time", &record.opts.running_time,
2211 OPT_CALLBACK('k', "clockid", &record.opts,
2214 OPT_STRING_OPTARG('S', "snapshot", &record.opts.auxtrace_snapshot_opts,
2218 OPT_BOOLEAN(0, "namespaces", &record.opts.record_namespaces,
2220 OPT_BOOLEAN(0, "switch-events", &record.opts.record_switch_events,
2222 OPT_BOOLEAN_FLAG(0, "all-kernel", &record.opts.all_kernel,
2225 OPT_BOOLEAN_FLAG(0, "all-user", &record.opts.all_user,
2228 OPT_BOOLEAN(0, "kernel-callchains", &record.opts.kernel_callchains,
2230 OPT_BOOLEAN(0, "user-callchains", &record.opts.user_callchains,
2238 OPT_BOOLEAN(0, "buildid-all", &record.buildid_all,
2240 OPT_BOOLEAN(0, "timestamp-filename", &record.timestamp_filename,
2242 OPT_BOOLEAN(0, "timestamp-boundary", &record.timestamp_boundary,
2244 OPT_STRING_OPTARG_SET(0, "switch-output", &record.switch_output.str,
2245 &record.switch_output.set, "signal or size[BKMG] or time[smhd]",
2248 OPT_INTEGER(0, "switch-max-files", &record.switch_output.num_files,
2253 OPT_CALLBACK_OPTARG(0, "aio", &record.opts,
2257 OPT_CALLBACK(0, "affinity", &record.opts, "node|cpu",
2261 OPT_CALLBACK_OPTARG('z', "compression-level", &record.opts, &comp_level_default,
2273 struct record *rec = &record; in cmd_record()
2410 if (record.opts.overwrite) in cmd_record()
2411 record.opts.tail_synthesize = true; in cmd_record()
2414 __perf_evlist__add_default(rec->evlist, !record.opts.no_samples) < 0) { in cmd_record()
2474 err = __cmd_record(&record, argc, argv); in cmd_record()
2484 struct record *rec = &record; in snapshot_sig_handler()
2489 if (auxtrace_record__snapshot_start(record.itr)) in snapshot_sig_handler()
2499 struct record *rec = &record; in alarm_sig_handler()