Lines Matching refs:record
90 struct record { struct
126 static bool switch_output_signal(struct record *rec) in switch_output_signal() argument
132 static bool switch_output_size(struct record *rec) in switch_output_size()
139 static bool switch_output_time(struct record *rec) in switch_output_time()
145 static bool record__output_max_size_exceeded(struct record *rec) in record__output_max_size_exceeded()
151 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write()
176 static int record__aio_enabled(struct record *rec);
177 static int record__comp_enabled(struct record *rec);
289 struct record *rec;
339 static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) in record__aio_push()
386 static void record__aio_mmap_read_sync(struct record *rec) in record__aio_mmap_read_sync()
426 static int record__aio_push(struct record *rec __maybe_unused, struct mmap *map __maybe_unused, in record__aio_push()
441 static void record__aio_mmap_read_sync(struct record *rec __maybe_unused) in record__aio_mmap_read_sync()
446 static int record__aio_enabled(struct record *rec) in record__aio_enabled()
507 static int record__comp_enabled(struct record *rec) in record__comp_enabled()
517 struct record *rec = container_of(tool, struct record, tool); in process_synthesized_event()
537 struct record *rec = to; in record__pushfn()
601 struct record *rec = container_of(tool, struct record, tool); in record__process_auxtrace()
634 static int record__auxtrace_mmap_read(struct record *rec, in record__auxtrace_mmap_read()
650 static int record__auxtrace_mmap_read_snapshot(struct record *rec, in record__auxtrace_mmap_read_snapshot()
667 static int record__auxtrace_read_snapshot_all(struct record *rec) in record__auxtrace_read_snapshot_all()
687 static void record__read_auxtrace_snapshot(struct record *rec, bool on_exit) in record__read_auxtrace_snapshot()
700 static int record__auxtrace_snapshot_exit(struct record *rec) in record__auxtrace_snapshot_exit()
716 static int record__auxtrace_init(struct record *rec) in record__auxtrace_init()
744 int record__auxtrace_mmap_read(struct record *rec __maybe_unused, in record__auxtrace_mmap_read()
751 void record__read_auxtrace_snapshot(struct record *rec __maybe_unused, in record__read_auxtrace_snapshot()
763 int record__auxtrace_snapshot_exit(struct record *rec __maybe_unused) in record__auxtrace_snapshot_exit()
768 static int record__auxtrace_init(struct record *rec __maybe_unused) in record__auxtrace_init()
843 static int record__mmap_evlist(struct record *rec, in record__mmap_evlist()
879 static int record__mmap(struct record *rec) in record__mmap()
884 static int record__open(struct record *rec) in record__open()
974 static void set_timestamp_boundary(struct record *rec, u64 sample_time) in set_timestamp_boundary()
989 struct record *rec = container_of(tool, struct record, tool); in process_sample_event()
1000 static int process_buildids(struct record *rec) in process_buildids()
1064 static void record__adjust_affinity(struct record *rec, struct mmap *map) in record__adjust_affinity()
1079 static size_t process_comp_header(void *record, size_t increment) in process_comp_header() argument
1081 struct perf_record_compressed *event = record; in process_comp_header()
1110 static int record__mmap_read_evlist(struct record *rec, struct evlist *evlist, in record__mmap_read_evlist()
1187 static int record__mmap_read_all(struct record *rec, bool synch) in record__mmap_read_all()
1198 static void record__init_features(struct record *rec) in record__init_features()
1232 record__finish_output(struct record *rec) in record__finish_output()
1254 static int record__synthesize_workload(struct record *rec, bool tail) in record__synthesize_workload()
1274 static int record__synthesize(struct record *rec, bool tail);
1277 record__switch_output(struct record *rec, bool at_exit) in record__switch_output()
1376 static const struct perf_event_mmap_page *record__pick_pc(struct record *rec) in record__pick_pc()
1384 static int record__synthesize(struct record *rec, bool tail) in record__synthesize()
1496 struct record *rec = data; in record__process_signal_event()
1501 static int record__setup_sb_evlist(struct record *rec) in record__setup_sb_evlist()
1539 static int record__init_clock(struct record *rec) in record__init_clock()
1576 static void hit_auxtrace_snapshot_trigger(struct record *rec) in hit_auxtrace_snapshot_trigger()
1586 static void record__uniquify_name(struct record *rec) in record__uniquify_name()
1612 static int __cmd_record(struct record *rec, int argc, const char **argv) in __cmd_record()
2096 int record_opts__parse_callchain(struct record_opts *record, in record_opts__parse_callchain() argument
2114 record->sample_address = true; in record_opts__parse_callchain()
2145 struct record *rec = cb; in perf_record_config()
2270 static void switch_output_size_warn(struct record *rec) in switch_output_size_warn()
2287 static int switch_output_setup(struct record *rec) in switch_output_setup()
2388 struct record *rec = container_of(tool, struct record, tool); in process_timestamp_boundary()
2404 static struct record record = { variable
2447 OPT_CALLBACK('e', "event", &record.evlist, "event",
2450 OPT_CALLBACK(0, "filter", &record.evlist, "filter",
2452 OPT_CALLBACK_NOOPT(0, "exclude-perf", &record.evlist,
2455 OPT_STRING('p', "pid", &record.opts.target.pid, "pid",
2457 OPT_STRING('t', "tid", &record.opts.target.tid, "tid",
2459 OPT_INTEGER('r', "realtime", &record.realtime_prio,
2461 OPT_BOOLEAN(0, "no-buffering", &record.opts.no_buffering,
2463 OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples,
2465 OPT_BOOLEAN('a', "all-cpus", &record.opts.target.system_wide,
2467 OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu",
2469 OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"),
2470 OPT_STRING('o', "output", &record.data.path, "file",
2472 OPT_BOOLEAN_SET('i', "no-inherit", &record.opts.no_inherit,
2473 &record.opts.no_inherit_set,
2475 OPT_BOOLEAN(0, "tail-synthesize", &record.opts.tail_synthesize,
2477 OPT_BOOLEAN(0, "overwrite", &record.opts.overwrite, "use overwrite mode"),
2478 OPT_BOOLEAN(0, "no-bpf-event", &record.opts.no_bpf_event, "do not record bpf events"),
2479 OPT_BOOLEAN(0, "strict-freq", &record.opts.strict_freq,
2481 OPT_CALLBACK('F', "freq", &record.opts, "freq or 'max'",
2484 OPT_CALLBACK('m', "mmap-pages", &record.opts, "pages[,pages]",
2487 OPT_CALLBACK(0, "mmap-flush", &record.opts, "number",
2490 OPT_BOOLEAN(0, "group", &record.opts.group,
2495 OPT_CALLBACK(0, "call-graph", &record.opts,
2501 OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat,
2503 OPT_BOOLEAN('d', "data", &record.opts.sample_address, "Record the sample addresses"),
2504 OPT_BOOLEAN(0, "phys-data", &record.opts.sample_phys_addr,
2506 OPT_BOOLEAN(0, "data-page-size", &record.opts.sample_data_page_size,
2508 OPT_BOOLEAN(0, "code-page-size", &record.opts.sample_code_page_size,
2510 OPT_BOOLEAN(0, "sample-cpu", &record.opts.sample_cpu, "Record the sample cpu"),
2511 OPT_BOOLEAN_SET('T', "timestamp", &record.opts.sample_time,
2512 &record.opts.sample_time_set,
2514 OPT_BOOLEAN_SET('P', "period", &record.opts.period, &record.opts.period_set,
2516 OPT_BOOLEAN('n', "no-samples", &record.opts.no_samples,
2518 OPT_BOOLEAN_SET('N', "no-buildid-cache", &record.no_buildid_cache,
2519 &record.no_buildid_cache_set,
2521 OPT_BOOLEAN_SET('B', "no-buildid", &record.no_buildid,
2522 &record.no_buildid_set,
2524 OPT_CALLBACK('G', "cgroup", &record.evlist, "name",
2527 OPT_INTEGER('D', "delay", &record.opts.initial_delay,
2529 OPT_BOOLEAN(0, "kcore", &record.opts.kcore, "copy /proc/kcore"),
2530 OPT_STRING('u', "uid", &record.opts.target.uid_str, "user",
2533 OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack,
2537 OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack,
2540 OPT_BOOLEAN('W', "weight", &record.opts.sample_weight,
2542 OPT_BOOLEAN(0, "transaction", &record.opts.sample_transaction,
2544 OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread,
2546 OPT_CALLBACK_OPTARG('I', "intr-regs", &record.opts.sample_intr_regs, NULL, "any register",
2549 OPT_CALLBACK_OPTARG(0, "user-regs", &record.opts.sample_user_regs, NULL, "any register",
2552 OPT_BOOLEAN(0, "running-time", &record.opts.running_time,
2554 OPT_CALLBACK('k', "clockid", &record.opts,
2557 OPT_STRING_OPTARG('S', "snapshot", &record.opts.auxtrace_snapshot_opts,
2559 OPT_STRING_OPTARG(0, "aux-sample", &record.opts.auxtrace_sample_opts,
2563 OPT_BOOLEAN(0, "namespaces", &record.opts.record_namespaces,
2565 OPT_BOOLEAN(0, "all-cgroups", &record.opts.record_cgroup,
2567 OPT_BOOLEAN_SET(0, "switch-events", &record.opts.record_switch_events,
2568 &record.opts.record_switch_events_set,
2570 OPT_BOOLEAN_FLAG(0, "all-kernel", &record.opts.all_kernel,
2573 OPT_BOOLEAN_FLAG(0, "all-user", &record.opts.all_user,
2576 OPT_BOOLEAN(0, "kernel-callchains", &record.opts.kernel_callchains,
2578 OPT_BOOLEAN(0, "user-callchains", &record.opts.user_callchains,
2586 OPT_BOOLEAN(0, "buildid-all", &record.buildid_all,
2588 OPT_BOOLEAN(0, "buildid-mmap", &record.buildid_mmap,
2590 OPT_BOOLEAN(0, "timestamp-filename", &record.timestamp_filename,
2592 OPT_BOOLEAN(0, "timestamp-boundary", &record.timestamp_boundary,
2594 OPT_STRING_OPTARG_SET(0, "switch-output", &record.switch_output.str,
2595 &record.switch_output.set, "signal or size[BKMG] or time[smhd]",
2598 …OPT_CALLBACK_SET(0, "switch-output-event", &record.sb_evlist, &record.switch_output_event_set, "sw…
2601 OPT_INTEGER(0, "switch-max-files", &record.switch_output.num_files,
2606 OPT_CALLBACK_OPTARG(0, "aio", &record.opts,
2610 OPT_CALLBACK(0, "affinity", &record.opts, "node|cpu",
2614 OPT_CALLBACK_OPTARG('z', "compression-level", &record.opts, &comp_level_default,
2618 OPT_CALLBACK(0, "max-size", &record.output_max_size,
2621 &record.opts.nr_threads_synthesize,
2624 OPT_CALLBACK(0, "pfm-events", &record.evlist, "event",
2628 OPT_CALLBACK(0, "control", &record.opts, "fd:ctl-fd[,ack-fd] or fifo:ctl-fifo[,ack-fifo]",
2642 struct record *rec = &record; in cmd_record()
2817 if (record.opts.overwrite) in cmd_record()
2818 record.opts.tail_synthesize = true; in cmd_record()
2823 !record.opts.no_samples); in cmd_record()
2826 !record.opts.no_samples); in cmd_record()
2905 err = __cmd_record(&record, argc, argv); in cmd_record()
2918 struct record *rec = &record; in snapshot_sig_handler()
2928 struct record *rec = &record; in alarm_sig_handler()