Lines Matching refs:record
88 struct record { struct
123 static bool switch_output_signal(struct record *rec) in switch_output_signal() argument
129 static bool switch_output_size(struct record *rec) in switch_output_size()
136 static bool switch_output_time(struct record *rec) in switch_output_time()
142 static bool record__output_max_size_exceeded(struct record *rec) in record__output_max_size_exceeded()
148 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write()
173 static int record__aio_enabled(struct record *rec);
174 static int record__comp_enabled(struct record *rec);
286 struct record *rec;
336 static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) in record__aio_push()
383 static void record__aio_mmap_read_sync(struct record *rec) in record__aio_mmap_read_sync()
423 static int record__aio_push(struct record *rec __maybe_unused, struct mmap *map __maybe_unused, in record__aio_push()
438 static void record__aio_mmap_read_sync(struct record *rec __maybe_unused) in record__aio_mmap_read_sync()
443 static int record__aio_enabled(struct record *rec) in record__aio_enabled()
504 static int record__comp_enabled(struct record *rec) in record__comp_enabled()
514 struct record *rec = container_of(tool, struct record, tool); in process_synthesized_event()
534 struct record *rec = to; in record__pushfn()
598 struct record *rec = container_of(tool, struct record, tool); in record__process_auxtrace()
631 static int record__auxtrace_mmap_read(struct record *rec, in record__auxtrace_mmap_read()
647 static int record__auxtrace_mmap_read_snapshot(struct record *rec, in record__auxtrace_mmap_read_snapshot()
664 static int record__auxtrace_read_snapshot_all(struct record *rec) in record__auxtrace_read_snapshot_all()
684 static void record__read_auxtrace_snapshot(struct record *rec, bool on_exit) in record__read_auxtrace_snapshot()
697 static int record__auxtrace_snapshot_exit(struct record *rec) in record__auxtrace_snapshot_exit()
713 static int record__auxtrace_init(struct record *rec) in record__auxtrace_init()
739 int record__auxtrace_mmap_read(struct record *rec __maybe_unused, in record__auxtrace_mmap_read()
746 void record__read_auxtrace_snapshot(struct record *rec __maybe_unused, in record__read_auxtrace_snapshot()
758 int record__auxtrace_snapshot_exit(struct record *rec __maybe_unused) in record__auxtrace_snapshot_exit()
763 static int record__auxtrace_init(struct record *rec __maybe_unused) in record__auxtrace_init()
838 static int record__mmap_evlist(struct record *rec, in record__mmap_evlist()
874 static int record__mmap(struct record *rec) in record__mmap()
879 static int record__open(struct record *rec) in record__open()
973 struct record *rec = container_of(tool, struct record, tool); in process_sample_event()
987 static int process_buildids(struct record *rec) in process_buildids()
1051 static void record__adjust_affinity(struct record *rec, struct mmap *map) in record__adjust_affinity()
1066 static size_t process_comp_header(void *record, size_t increment) in process_comp_header() argument
1068 struct perf_record_compressed *event = record; in process_comp_header()
1097 static int record__mmap_read_evlist(struct record *rec, struct evlist *evlist, in record__mmap_read_evlist()
1174 static int record__mmap_read_all(struct record *rec, bool synch) in record__mmap_read_all()
1185 static void record__init_features(struct record *rec) in record__init_features()
1219 record__finish_output(struct record *rec) in record__finish_output()
1241 static int record__synthesize_workload(struct record *rec, bool tail) in record__synthesize_workload()
1261 static int record__synthesize(struct record *rec, bool tail);
1264 record__switch_output(struct record *rec, bool at_exit) in record__switch_output()
1364 static const struct perf_event_mmap_page *record__pick_pc(struct record *rec) in record__pick_pc()
1374 static int record__synthesize(struct record *rec, bool tail) in record__synthesize()
1516 struct record *rec = data; in record__process_signal_event()
1521 static int record__setup_sb_evlist(struct record *rec) in record__setup_sb_evlist()
1559 static int record__init_clock(struct record *rec) in record__init_clock()
1596 static void hit_auxtrace_snapshot_trigger(struct record *rec) in hit_auxtrace_snapshot_trigger()
1606 static int __cmd_record(struct record *rec, int argc, const char **argv) in __cmd_record()
2084 int record_opts__parse_callchain(struct record_opts *record, in record_opts__parse_callchain() argument
2102 record->sample_address = true; in record_opts__parse_callchain()
2133 struct record *rec = cb; in perf_record_config()
2256 static void switch_output_size_warn(struct record *rec) in switch_output_size_warn()
2273 static int switch_output_setup(struct record *rec) in switch_output_setup()
2379 static struct record record = { variable
2420 OPT_CALLBACK('e', "event", &record.evlist, "event",
2423 OPT_CALLBACK(0, "filter", &record.evlist, "filter",
2425 OPT_CALLBACK_NOOPT(0, "exclude-perf", &record.evlist,
2428 OPT_STRING('p', "pid", &record.opts.target.pid, "pid",
2430 OPT_STRING('t', "tid", &record.opts.target.tid, "tid",
2432 OPT_INTEGER('r', "realtime", &record.realtime_prio,
2434 OPT_BOOLEAN(0, "no-buffering", &record.opts.no_buffering,
2436 OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples,
2438 OPT_BOOLEAN('a', "all-cpus", &record.opts.target.system_wide,
2440 OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu",
2442 OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"),
2443 OPT_STRING('o', "output", &record.data.path, "file",
2445 OPT_BOOLEAN_SET('i', "no-inherit", &record.opts.no_inherit,
2446 &record.opts.no_inherit_set,
2448 OPT_BOOLEAN(0, "tail-synthesize", &record.opts.tail_synthesize,
2450 OPT_BOOLEAN(0, "overwrite", &record.opts.overwrite, "use overwrite mode"),
2451 OPT_BOOLEAN(0, "no-bpf-event", &record.opts.no_bpf_event, "do not record bpf events"),
2452 OPT_BOOLEAN(0, "strict-freq", &record.opts.strict_freq,
2454 OPT_CALLBACK('F', "freq", &record.opts, "freq or 'max'",
2457 OPT_CALLBACK('m', "mmap-pages", &record.opts, "pages[,pages]",
2460 OPT_CALLBACK(0, "mmap-flush", &record.opts, "number",
2463 OPT_BOOLEAN(0, "group", &record.opts.group,
2468 OPT_CALLBACK(0, "call-graph", &record.opts,
2474 OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat,
2476 OPT_BOOLEAN('d', "data", &record.opts.sample_address, "Record the sample addresses"),
2477 OPT_BOOLEAN(0, "phys-data", &record.opts.sample_phys_addr,
2479 OPT_BOOLEAN(0, "sample-cpu", &record.opts.sample_cpu, "Record the sample cpu"),
2480 OPT_BOOLEAN_SET('T', "timestamp", &record.opts.sample_time,
2481 &record.opts.sample_time_set,
2483 OPT_BOOLEAN_SET('P', "period", &record.opts.period, &record.opts.period_set,
2485 OPT_BOOLEAN('n', "no-samples", &record.opts.no_samples,
2487 OPT_BOOLEAN_SET('N', "no-buildid-cache", &record.no_buildid_cache,
2488 &record.no_buildid_cache_set,
2490 OPT_BOOLEAN_SET('B', "no-buildid", &record.no_buildid,
2491 &record.no_buildid_set,
2493 OPT_CALLBACK('G', "cgroup", &record.evlist, "name",
2496 OPT_INTEGER('D', "delay", &record.opts.initial_delay,
2498 OPT_BOOLEAN(0, "kcore", &record.opts.kcore, "copy /proc/kcore"),
2499 OPT_STRING('u', "uid", &record.opts.target.uid_str, "user",
2502 OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack,
2506 OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack,
2509 OPT_BOOLEAN('W', "weight", &record.opts.sample_weight,
2511 OPT_BOOLEAN(0, "transaction", &record.opts.sample_transaction,
2513 OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread,
2515 OPT_CALLBACK_OPTARG('I', "intr-regs", &record.opts.sample_intr_regs, NULL, "any register",
2518 OPT_CALLBACK_OPTARG(0, "user-regs", &record.opts.sample_user_regs, NULL, "any register",
2521 OPT_BOOLEAN(0, "running-time", &record.opts.running_time,
2523 OPT_CALLBACK('k', "clockid", &record.opts,
2526 OPT_STRING_OPTARG('S', "snapshot", &record.opts.auxtrace_snapshot_opts,
2528 OPT_STRING_OPTARG(0, "aux-sample", &record.opts.auxtrace_sample_opts,
2532 OPT_BOOLEAN(0, "namespaces", &record.opts.record_namespaces,
2534 OPT_BOOLEAN(0, "all-cgroups", &record.opts.record_cgroup,
2536 OPT_BOOLEAN_SET(0, "switch-events", &record.opts.record_switch_events,
2537 &record.opts.record_switch_events_set,
2539 OPT_BOOLEAN_FLAG(0, "all-kernel", &record.opts.all_kernel,
2542 OPT_BOOLEAN_FLAG(0, "all-user", &record.opts.all_user,
2545 OPT_BOOLEAN(0, "kernel-callchains", &record.opts.kernel_callchains,
2547 OPT_BOOLEAN(0, "user-callchains", &record.opts.user_callchains,
2555 OPT_BOOLEAN(0, "buildid-all", &record.buildid_all,
2557 OPT_BOOLEAN(0, "timestamp-filename", &record.timestamp_filename,
2559 OPT_BOOLEAN(0, "timestamp-boundary", &record.timestamp_boundary,
2561 OPT_STRING_OPTARG_SET(0, "switch-output", &record.switch_output.str,
2562 &record.switch_output.set, "signal or size[BKMG] or time[smhd]",
2565 …OPT_CALLBACK_SET(0, "switch-output-event", &record.sb_evlist, &record.switch_output_event_set, "sw…
2568 OPT_INTEGER(0, "switch-max-files", &record.switch_output.num_files,
2573 OPT_CALLBACK_OPTARG(0, "aio", &record.opts,
2577 OPT_CALLBACK(0, "affinity", &record.opts, "node|cpu",
2581 OPT_CALLBACK_OPTARG('z', "compression-level", &record.opts, &comp_level_default,
2585 OPT_CALLBACK(0, "max-size", &record.output_max_size,
2588 &record.opts.nr_threads_synthesize,
2591 OPT_CALLBACK(0, "pfm-events", &record.evlist, "event",
2595 OPT_CALLBACK(0, "control", &record.opts, "fd:ctl-fd[,ack-fd] or fifo:ctl-fifo[,ack-fifo]",
2609 struct record *rec = &record; in cmd_record()
2763 if (record.opts.overwrite) in cmd_record()
2764 record.opts.tail_synthesize = true; in cmd_record()
2767 __evlist__add_default(rec->evlist, !record.opts.no_samples) < 0) { in cmd_record()
2835 err = __cmd_record(&record, argc, argv); in cmd_record()
2848 struct record *rec = &record; in snapshot_sig_handler()
2858 struct record *rec = &record; in alarm_sig_handler()