Lines Matching refs:record

115 	struct record		*rec;
154 struct record { struct
218 static int record__threads_enabled(struct record *rec) in record__threads_enabled()
223 static bool switch_output_signal(struct record *rec) in switch_output_signal()
229 static bool switch_output_size(struct record *rec) in switch_output_size()
236 static bool switch_output_time(struct record *rec) in switch_output_time()
242 static u64 record__bytes_written(struct record *rec) in record__bytes_written()
247 static bool record__output_max_size_exceeded(struct record *rec) in record__output_max_size_exceeded()
253 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write()
286 static int record__aio_enabled(struct record *rec);
287 static int record__comp_enabled(struct record *rec);
399 struct record *rec;
453 static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) in record__aio_push()
500 static void record__aio_mmap_read_sync(struct record *rec) in record__aio_mmap_read_sync()
540 static int record__aio_push(struct record *rec __maybe_unused, struct mmap *map __maybe_unused, in record__aio_push()
555 static void record__aio_mmap_read_sync(struct record *rec __maybe_unused) in record__aio_mmap_read_sync()
560 static int record__aio_enabled(struct record *rec) in record__aio_enabled()
621 static int record__comp_enabled(struct record *rec) in record__comp_enabled()
631 struct record *rec = container_of(tool, struct record, tool); in process_synthesized_event()
652 struct record *rec = to; in record__pushfn()
740 struct record *rec = container_of(tool, struct record, tool); in record__process_auxtrace()
773 static int record__auxtrace_mmap_read(struct record *rec, in record__auxtrace_mmap_read()
791 static int record__auxtrace_mmap_read_snapshot(struct record *rec, in record__auxtrace_mmap_read_snapshot()
810 static int record__auxtrace_read_snapshot_all(struct record *rec) in record__auxtrace_read_snapshot_all()
830 static void record__read_auxtrace_snapshot(struct record *rec, bool on_exit) in record__read_auxtrace_snapshot()
843 static int record__auxtrace_snapshot_exit(struct record *rec) in record__auxtrace_snapshot_exit()
859 static int record__auxtrace_init(struct record *rec) in record__auxtrace_init()
895 int record__auxtrace_mmap_read(struct record *rec __maybe_unused, in record__auxtrace_mmap_read()
902 void record__read_auxtrace_snapshot(struct record *rec __maybe_unused, in record__read_auxtrace_snapshot()
914 int record__auxtrace_snapshot_exit(struct record *rec __maybe_unused) in record__auxtrace_snapshot_exit()
919 static int record__auxtrace_init(struct record *rec __maybe_unused) in record__auxtrace_init()
948 static int record__config_off_cpu(struct record *rec) in record__config_off_cpu()
953 static bool record__tracking_system_wide(struct record *rec) in record__tracking_system_wide()
972 static int record__config_tracking_events(struct record *rec) in record__config_tracking_events()
1173 static void record__free_thread_data(struct record *rec) in record__free_thread_data()
1191 static int record__map_thread_evlist_pollfd_indexes(struct record *rec, in record__map_thread_evlist_pollfd_indexes()
1205 static int record__update_evlist_pollfd_from_thread(struct record *rec, in record__update_evlist_pollfd_from_thread()
1229 static int record__dup_non_perf_events(struct record *rec, in record__dup_non_perf_events()
1255 static int record__alloc_thread_data(struct record *rec, struct evlist *evlist) in record__alloc_thread_data()
1319 static int record__mmap_evlist(struct record *rec, in record__mmap_evlist()
1378 static int record__mmap(struct record *rec) in record__mmap()
1383 static int record__open(struct record *rec) in record__open()
1444 static void set_timestamp_boundary(struct record *rec, u64 sample_time) in set_timestamp_boundary()
1459 struct record *rec = container_of(tool, struct record, tool); in process_sample_event()
1470 static int process_buildids(struct record *rec) in process_buildids()
1539 static void record__adjust_affinity(struct record *rec, struct mmap *map) in record__adjust_affinity()
1556 static size_t process_comp_header(void *record, size_t increment) in process_comp_header() argument
1558 struct perf_record_compressed2 *event = record; in process_comp_header()
1598 static int record__mmap_read_evlist(struct record *rec, struct evlist *evlist, in record__mmap_read_evlist()
1682 static int record__mmap_read_all(struct record *rec, bool synch) in record__mmap_read_all()
1764 static void record__init_features(struct record *rec) in record__init_features()
1800 record__finish_output(struct record *rec) in record__finish_output()
1831 static int record__synthesize_workload(struct record *rec, bool tail) in record__synthesize_workload()
1853 static int write_finished_init(struct record *rec, bool tail) in write_finished_init()
1861 static int record__synthesize(struct record *rec, bool tail);
1864 record__switch_output(struct record *rec, bool at_exit) in record__switch_output()
1937 static void __record__save_lost_samples(struct record *rec, struct evsel *evsel, in __record__save_lost_samples()
1961 static void record__read_lost_samples(struct record *rec) in record__read_lost_samples()
2041 static const struct perf_event_mmap_page *record__pick_pc(struct record *rec) in record__pick_pc()
2049 static int record__synthesize(struct record *rec, bool tail) in record__synthesize()
2171 static void record__synthesize_final_bpf_metadata(struct record *rec __maybe_unused) in record__synthesize_final_bpf_metadata()
2181 struct record *rec = data; in record__process_signal_event()
2186 static int record__setup_sb_evlist(struct record *rec) in record__setup_sb_evlist()
2224 static int record__init_clock(struct record *rec) in record__init_clock()
2262 static void hit_auxtrace_snapshot_trigger(struct record *rec) in hit_auxtrace_snapshot_trigger()
2290 static int record__start_threads(struct record *rec) in record__start_threads()
2353 static int record__stop_threads(struct record *rec) in record__stop_threads()
2379 static unsigned long record__waking(struct record *rec) in record__waking()
2391 static int __cmd_record(struct record *rec, int argc, const char **argv) in __cmd_record()
2956 int record_opts__parse_callchain(struct record_opts *record, in record_opts__parse_callchain() argument
2974 record->sample_address = true; in record_opts__parse_callchain()
3005 struct record *rec = cb; in perf_record_config()
3045 struct record *rec = (struct record *)opt->value; in record__parse_event_enable_time()
3242 static void switch_output_size_warn(struct record *rec) in switch_output_size_warn()
3259 static int switch_output_setup(struct record *rec) in switch_output_setup()
3370 struct record *rec = container_of(tool, struct record, tool); in process_timestamp_boundary()
3406 static struct record record = { variable
3433 .evlistp = &record.evlist,
3437 .evlistp = &record.sb_evlist,
3451 OPT_CALLBACK(0, "filter", &record.evlist, "filter",
3453 OPT_BOOLEAN(0, "latency", &record.latency,
3456 OPT_CALLBACK_NOOPT(0, "exclude-perf", &record.evlist,
3459 OPT_STRING('p', "pid", &record.opts.target.pid, "pid",
3461 OPT_STRING('t', "tid", &record.opts.target.tid, "tid",
3463 OPT_INTEGER('r', "realtime", &record.realtime_prio,
3465 OPT_BOOLEAN(0, "no-buffering", &record.opts.no_buffering,
3467 OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples,
3469 OPT_BOOLEAN('a', "all-cpus", &record.opts.target.system_wide,
3471 OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu",
3473 OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"),
3474 OPT_STRING('o', "output", &record.data.path, "file",
3476 OPT_BOOLEAN_SET('i', "no-inherit", &record.opts.no_inherit,
3477 &record.opts.no_inherit_set,
3479 OPT_BOOLEAN(0, "tail-synthesize", &record.opts.tail_synthesize,
3481 OPT_BOOLEAN(0, "overwrite", &record.opts.overwrite, "use overwrite mode"),
3482 OPT_BOOLEAN(0, "no-bpf-event", &record.opts.no_bpf_event, "do not record bpf events"),
3483 OPT_BOOLEAN(0, "strict-freq", &record.opts.strict_freq,
3485 OPT_CALLBACK('F', "freq", &record.opts, "freq or 'max'",
3488 OPT_CALLBACK('m', "mmap-pages", &record.opts, "pages[,pages]",
3491 OPT_CALLBACK(0, "mmap-flush", &record.opts, "number",
3497 OPT_CALLBACK(0, "call-graph", &record.opts,
3503 OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat,
3505 OPT_BOOLEAN('d', "data", &record.opts.sample_address, "Record the sample addresses"),
3506 OPT_BOOLEAN(0, "phys-data", &record.opts.sample_phys_addr,
3508 OPT_BOOLEAN(0, "data-page-size", &record.opts.sample_data_page_size,
3510 OPT_BOOLEAN(0, "code-page-size", &record.opts.sample_code_page_size,
3512 OPT_BOOLEAN(0, "sample-mem-info", &record.opts.sample_data_src,
3514 OPT_BOOLEAN(0, "sample-cpu", &record.opts.sample_cpu, "Record the sample cpu"),
3515 OPT_BOOLEAN(0, "sample-identifier", &record.opts.sample_identifier,
3517 OPT_BOOLEAN_SET('T', "timestamp", &record.opts.sample_time,
3518 &record.opts.sample_time_set,
3520 OPT_BOOLEAN_SET('P', "period", &record.opts.period, &record.opts.period_set,
3522 OPT_BOOLEAN('n', "no-samples", &record.opts.no_samples,
3524 OPT_BOOLEAN_SET('N', "no-buildid-cache", &record.no_buildid_cache,
3525 &record.no_buildid_cache_set,
3527 OPT_BOOLEAN_SET('B', "no-buildid", &record.no_buildid,
3528 &record.no_buildid_set,
3530 OPT_CALLBACK('G', "cgroup", &record.evlist, "name",
3533 OPT_CALLBACK('D', "delay", &record, "ms",
3537 OPT_BOOLEAN(0, "kcore", &record.opts.kcore, "copy /proc/kcore"),
3538 OPT_STRING('u', "uid", &record.uid_str, "user", "user to profile"),
3540 OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack,
3544 OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack,
3547 OPT_BOOLEAN('W', "weight", &record.opts.sample_weight,
3549 OPT_BOOLEAN(0, "transaction", &record.opts.sample_transaction,
3551 OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread,
3553 OPT_CALLBACK_OPTARG('I', "intr-regs", &record.opts.sample_intr_regs, NULL, "any register",
3556 OPT_CALLBACK_OPTARG(0, "user-regs", &record.opts.sample_user_regs, NULL, "any register",
3559 OPT_BOOLEAN(0, "running-time", &record.opts.running_time,
3561 OPT_CALLBACK('k', "clockid", &record.opts,
3564 OPT_STRING_OPTARG('S', "snapshot", &record.opts.auxtrace_snapshot_opts,
3566 OPT_STRING_OPTARG(0, "aux-sample", &record.opts.auxtrace_sample_opts,
3570 OPT_BOOLEAN(0, "namespaces", &record.opts.record_namespaces,
3572 OPT_BOOLEAN(0, "all-cgroups", &record.opts.record_cgroup,
3574 OPT_BOOLEAN_SET(0, "switch-events", &record.opts.record_switch_events,
3575 &record.opts.record_switch_events_set,
3577 OPT_BOOLEAN_FLAG(0, "all-kernel", &record.opts.all_kernel,
3580 OPT_BOOLEAN_FLAG(0, "all-user", &record.opts.all_user,
3583 OPT_BOOLEAN(0, "kernel-callchains", &record.opts.kernel_callchains,
3585 OPT_BOOLEAN(0, "user-callchains", &record.opts.user_callchains,
3589 OPT_BOOLEAN(0, "buildid-all", &record.buildid_all,
3591 OPT_BOOLEAN_SET(0, "buildid-mmap", &record.buildid_mmap, &record.buildid_mmap_set,
3593 OPT_BOOLEAN(0, "timestamp-filename", &record.timestamp_filename,
3595 OPT_BOOLEAN(0, "timestamp-boundary", &record.timestamp_boundary,
3597 OPT_STRING_OPTARG_SET(0, "switch-output", &record.switch_output.str,
3598 &record.switch_output.set, "signal or size[BKMG] or time[smhd]",
3602 &record.switch_output_event_set, "switch output event",
3605 OPT_INTEGER(0, "switch-max-files", &record.switch_output.num_files,
3610 OPT_CALLBACK_OPTARG(0, "aio", &record.opts,
3614 OPT_CALLBACK(0, "affinity", &record.opts, "node|cpu",
3618 OPT_CALLBACK_OPTARG('z', "compression-level", &record.opts, &comp_level_default, "n",
3622 OPT_CALLBACK(0, "max-size", &record.output_max_size,
3625 &record.opts.nr_threads_synthesize,
3628 OPT_CALLBACK(0, "pfm-events", &record.evlist, "event",
3632 OPT_CALLBACK(0, "control", &record.opts, "fd:ctl-fd[,ack-fd] or fifo:ctl-fifo[,ack-fifo]",
3638 OPT_CALLBACK(0, "synth", &record.opts, "no|all|task|mmap|cgroup",
3640 OPT_STRING_OPTARG_SET(0, "debuginfod", &record.debuginfod.urls,
3641 &record.debuginfod.set, "debuginfod urls",
3644 OPT_CALLBACK_OPTARG(0, "threads", &record.opts, NULL, "spec",
3647 OPT_BOOLEAN(0, "off-cpu", &record.off_cpu, "Enable off-cpu analysis"),
3648 OPT_STRING(0, "setup-filter", &record.filter_action, "pin|unpin",
3650 OPT_CALLBACK(0, "off-cpu-thresh", &record.opts, "ms",
3693 static void record__free_thread_masks(struct record *rec, int nr_threads) in record__free_thread_masks()
3704 static int record__alloc_thread_masks(struct record *rec, int nr_threads, int nr_bits) in record__alloc_thread_masks()
3730 static int record__init_thread_cpu_masks(struct record *rec, struct perf_cpu_map *cpus) in record__init_thread_cpu_masks()
3755 static int record__init_thread_masks_spec(struct record *rec, struct perf_cpu_map *cpus, in record__init_thread_masks_spec()
3869 static int record__init_thread_core_masks(struct record *rec, struct perf_cpu_map *cpus) in record__init_thread_core_masks()
3887 static int record__init_thread_package_masks(struct record *rec, struct perf_cpu_map *cpus) in record__init_thread_package_masks()
3905 static int record__init_thread_numa_masks(struct record *rec, struct perf_cpu_map *cpus) in record__init_thread_numa_masks()
3937 static int record__init_thread_user_masks(struct record *rec, struct perf_cpu_map *cpus) in record__init_thread_user_masks()
4007 static int record__init_thread_default_masks(struct record *rec, struct perf_cpu_map *cpus) in record__init_thread_default_masks()
4023 static int record__init_thread_masks(struct record *rec) in record__init_thread_masks()
4062 struct record *rec = &record; in cmd_record()
4094 perf_debuginfod_setup(&record.debuginfod); in cmd_record()
4106 if (record.latency) { in cmd_record()
4114 if (record.opts.target.system_wide) { in cmd_record()
4119 record.opts.record_switch_events = true; in cmd_record()
4267 if (record.opts.overwrite) in cmd_record()
4268 record.opts.tail_synthesize = true; in cmd_record()
4376 err = __cmd_record(&record, argc, argv); in cmd_record()
4390 struct record *rec = &record; in snapshot_sig_handler()
4400 struct record *rec = &record; in alarm_sig_handler()