Lines Matching refs:record
66 struct record { struct
90 static bool switch_output_signal(struct record *rec) in switch_output_signal() argument
96 static bool switch_output_size(struct record *rec) in switch_output_size()
103 static bool switch_output_time(struct record *rec) in switch_output_time()
109 static int record__write(struct record *rec, void *bf, size_t size) in record__write()
129 struct record *rec = container_of(tool, struct record, tool); in process_synthesized_event()
135 struct record *rec = to; in record__pushfn()
176 struct record *rec = container_of(tool, struct record, tool); in record__process_auxtrace()
209 static int record__auxtrace_mmap_read(struct record *rec, in record__auxtrace_mmap_read()
225 static int record__auxtrace_mmap_read_snapshot(struct record *rec, in record__auxtrace_mmap_read_snapshot()
242 static int record__auxtrace_read_snapshot_all(struct record *rec) in record__auxtrace_read_snapshot_all()
263 static void record__read_auxtrace_snapshot(struct record *rec) in record__read_auxtrace_snapshot()
276 static int record__auxtrace_init(struct record *rec) in record__auxtrace_init()
297 int record__auxtrace_mmap_read(struct record *rec __maybe_unused, in record__auxtrace_mmap_read()
304 void record__read_auxtrace_snapshot(struct record *rec __maybe_unused) in record__read_auxtrace_snapshot()
314 static int record__auxtrace_init(struct record *rec __maybe_unused) in record__auxtrace_init()
321 static int record__mmap_evlist(struct record *rec, in record__mmap_evlist()
350 static int record__mmap(struct record *rec) in record__mmap()
355 static int record__open(struct record *rec) in record__open()
434 struct record *rec = container_of(tool, struct record, tool); in process_sample_event()
448 static int process_buildids(struct record *rec) in process_buildids()
513 static int record__mmap_read_evlist(struct record *rec, struct perf_evlist *evlist, in record__mmap_read_evlist()
561 static int record__mmap_read_all(struct record *rec) in record__mmap_read_all()
572 static void record__init_features(struct record *rec) in record__init_features()
596 record__finish_output(struct record *rec) in record__finish_output()
618 static int record__synthesize_workload(struct record *rec, bool tail) in record__synthesize_workload()
639 static int record__synthesize(struct record *rec, bool tail);
642 record__switch_output(struct record *rec, bool at_exit) in record__switch_output()
733 static const struct perf_event_mmap_page *record__pick_pc(struct record *rec) in record__pick_pc()
743 static int record__synthesize(struct record *rec, bool tail) in record__synthesize()
854 static int __cmd_record(struct record *rec, int argc, const char **argv) in __cmd_record()
1224 int record_opts__parse_callchain(struct record_opts *record, in record_opts__parse_callchain() argument
1242 record->sample_address = true; in record_opts__parse_callchain()
1273 struct record *rec = cb; in perf_record_config()
1421 static void switch_output_size_warn(struct record *rec) in switch_output_size_warn()
1438 static int switch_output_setup(struct record *rec) in switch_output_setup()
1510 static struct record record = { variable
1548 OPT_CALLBACK('e', "event", &record.evlist, "event",
1551 OPT_CALLBACK(0, "filter", &record.evlist, "filter",
1553 OPT_CALLBACK_NOOPT(0, "exclude-perf", &record.evlist,
1556 OPT_STRING('p', "pid", &record.opts.target.pid, "pid",
1558 OPT_STRING('t', "tid", &record.opts.target.tid, "tid",
1560 OPT_INTEGER('r', "realtime", &record.realtime_prio,
1562 OPT_BOOLEAN(0, "no-buffering", &record.opts.no_buffering,
1564 OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples,
1566 OPT_BOOLEAN('a', "all-cpus", &record.opts.target.system_wide,
1568 OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu",
1570 OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"),
1571 OPT_STRING('o', "output", &record.data.file.path, "file",
1573 OPT_BOOLEAN_SET('i', "no-inherit", &record.opts.no_inherit,
1574 &record.opts.no_inherit_set,
1576 OPT_BOOLEAN(0, "tail-synthesize", &record.opts.tail_synthesize,
1578 OPT_BOOLEAN(0, "overwrite", &record.opts.overwrite, "use overwrite mode"),
1579 OPT_BOOLEAN(0, "strict-freq", &record.opts.strict_freq,
1581 OPT_CALLBACK('F', "freq", &record.opts, "freq or 'max'",
1584 OPT_CALLBACK('m', "mmap-pages", &record.opts, "pages[,pages]",
1587 OPT_BOOLEAN(0, "group", &record.opts.group,
1592 OPT_CALLBACK(0, "call-graph", &record.opts,
1598 OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat,
1600 OPT_BOOLEAN('d', "data", &record.opts.sample_address, "Record the sample addresses"),
1601 OPT_BOOLEAN(0, "phys-data", &record.opts.sample_phys_addr,
1603 OPT_BOOLEAN(0, "sample-cpu", &record.opts.sample_cpu, "Record the sample cpu"),
1604 OPT_BOOLEAN_SET('T', "timestamp", &record.opts.sample_time,
1605 &record.opts.sample_time_set,
1607 OPT_BOOLEAN_SET('P', "period", &record.opts.period, &record.opts.period_set,
1609 OPT_BOOLEAN('n', "no-samples", &record.opts.no_samples,
1611 OPT_BOOLEAN_SET('N', "no-buildid-cache", &record.no_buildid_cache,
1612 &record.no_buildid_cache_set,
1614 OPT_BOOLEAN_SET('B', "no-buildid", &record.no_buildid,
1615 &record.no_buildid_set,
1617 OPT_CALLBACK('G', "cgroup", &record.evlist, "name",
1620 OPT_UINTEGER('D', "delay", &record.opts.initial_delay,
1622 OPT_STRING('u', "uid", &record.opts.target.uid_str, "user",
1625 OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack,
1629 OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack,
1632 OPT_BOOLEAN('W', "weight", &record.opts.sample_weight,
1634 OPT_BOOLEAN(0, "transaction", &record.opts.sample_transaction,
1636 OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread,
1638 OPT_CALLBACK_OPTARG('I', "intr-regs", &record.opts.sample_intr_regs, NULL, "any register",
1641 OPT_CALLBACK_OPTARG(0, "user-regs", &record.opts.sample_user_regs, NULL, "any register",
1644 OPT_BOOLEAN(0, "running-time", &record.opts.running_time,
1646 OPT_CALLBACK('k', "clockid", &record.opts,
1649 OPT_STRING_OPTARG('S', "snapshot", &record.opts.auxtrace_snapshot_opts,
1651 OPT_UINTEGER(0, "proc-map-timeout", &record.opts.proc_map_timeout,
1653 OPT_BOOLEAN(0, "namespaces", &record.opts.record_namespaces,
1655 OPT_BOOLEAN(0, "switch-events", &record.opts.record_switch_events,
1657 OPT_BOOLEAN_FLAG(0, "all-kernel", &record.opts.all_kernel,
1660 OPT_BOOLEAN_FLAG(0, "all-user", &record.opts.all_user,
1669 OPT_BOOLEAN(0, "buildid-all", &record.buildid_all,
1671 OPT_BOOLEAN(0, "timestamp-filename", &record.timestamp_filename,
1673 OPT_BOOLEAN(0, "timestamp-boundary", &record.timestamp_boundary,
1675 OPT_STRING_OPTARG_SET(0, "switch-output", &record.switch_output.str,
1676 &record.switch_output.set, "signal,size,time",
1689 struct record *rec = &record; in cmd_record()
1820 if (record.opts.overwrite) in cmd_record()
1821 record.opts.tail_synthesize = true; in cmd_record()
1824 __perf_evlist__add_default(rec->evlist, !record.opts.no_samples) < 0) { in cmd_record()
1873 err = __cmd_record(&record, argc, argv); in cmd_record()
1883 struct record *rec = &record; in snapshot_sig_handler()
1888 if (auxtrace_record__snapshot_start(record.itr)) in snapshot_sig_handler()
1898 struct record *rec = &record; in alarm_sig_handler()