feat_fd
pid_t pid, u16 misc, struct feat_fd *fd)
struct feat_fd *fd;
static int machine__write_buildid_table(struct machine *machine, struct feat_fd *fd)
struct feat_fd *fd)
struct feat_fd;
struct feat_fd *fd);
static int write_dir_format(struct feat_fd *ff,
static int __do_write_fd(struct feat_fd *ff, const void *buf, size_t size)
static int write_bpf_prog_info(struct feat_fd *ff,
static int write_bpf_btf(struct feat_fd *ff,
static int __do_write_buf(struct feat_fd *ff, const void *buf, size_t size)
static int write_cache(struct feat_fd *ff,
static int write_stat(struct feat_fd *ff __maybe_unused,
static int write_sample_time(struct feat_fd *ff,
int do_write(struct feat_fd *ff, const void *buf, size_t size)
static int write_mem_topology(struct feat_fd *ff __maybe_unused,
static int do_write_bitmap(struct feat_fd *ff, unsigned long *set, u64 size)
static int write_compressed(struct feat_fd *ff __maybe_unused,
static int __write_pmu_caps(struct feat_fd *ff, struct perf_pmu *pmu,
static int write_cpu_pmu_caps(struct feat_fd *ff,
static int write_pmu_caps(struct feat_fd *ff,
int write_padded(struct feat_fd *ff, const void *bf,
static int write_cpu_domain_info(struct feat_fd *ff,
static void print_hostname(struct feat_fd *ff, FILE *fp)
static void print_osrelease(struct feat_fd *ff, FILE *fp)
static void print_arch(struct feat_fd *ff, FILE *fp)
static void print_e_machine(struct feat_fd *ff, FILE *fp)
static void print_cpudesc(struct feat_fd *ff, FILE *fp)
static void print_nrcpus(struct feat_fd *ff, FILE *fp)
static void print_version(struct feat_fd *ff, FILE *fp)
static void print_cmdline(struct feat_fd *ff, FILE *fp)
static int do_write_string(struct feat_fd *ff, const char *str)
static void print_cpu_topology(struct feat_fd *ff, FILE *fp)
static void print_clockid(struct feat_fd *ff, FILE *fp)
static void print_clock_data(struct feat_fd *ff, FILE *fp)
static void print_hybrid_topology(struct feat_fd *ff, FILE *fp)
static void print_dir_format(struct feat_fd *ff, FILE *fp)
static void print_bpf_prog_info(struct feat_fd *ff, FILE *fp)
static int __do_read_fd(struct feat_fd *ff, void *addr, ssize_t size)
static void print_bpf_btf(struct feat_fd *ff, FILE *fp)
static struct evsel *read_event_desc(struct feat_fd *ff)
static int __do_read_buf(struct feat_fd *ff, void *addr, ssize_t size)
static void print_event_desc(struct feat_fd *ff, FILE *fp)
static int __do_read(struct feat_fd *ff, void *addr, ssize_t size)
static void print_total_mem(struct feat_fd *ff, FILE *fp)
static void print_numa_topology(struct feat_fd *ff, FILE *fp)
static void print_cpuid(struct feat_fd *ff, FILE *fp)
static void print_branch_stack(struct feat_fd *ff __maybe_unused, FILE *fp)
static void print_auxtrace(struct feat_fd *ff __maybe_unused, FILE *fp)
static void print_stat(struct feat_fd *ff __maybe_unused, FILE *fp)
static void print_cache(struct feat_fd *ff, FILE *fp __maybe_unused)
static void print_compressed(struct feat_fd *ff, FILE *fp)
static int do_read_u32(struct feat_fd *ff, u32 *addr)
static void print_cpu_pmu_caps(struct feat_fd *ff, FILE *fp)
static void print_pmu_caps(struct feat_fd *ff, FILE *fp)
static void print_pmu_mappings(struct feat_fd *ff, FILE *fp)
static void print_group_desc(struct feat_fd *ff, FILE *fp)
static void print_sample_time(struct feat_fd *ff, FILE *fp)
static int do_read_u64(struct feat_fd *ff, u64 *addr)
static void print_mem_topology(struct feat_fd *ff, FILE *fp)
static void print_cpu_domain_info(struct feat_fd *ff, FILE *fp)
static char *do_read_string(struct feat_fd *ff)
static int process_##__feat(struct feat_fd *ff, void *data __maybe_unused) \
static int process_e_machine(struct feat_fd *ff, void *data __maybe_unused)
static int process_tracing_data(struct feat_fd *ff, void *data)
static int process_build_id(struct feat_fd *ff, void *data __maybe_unused)
static int process_nrcpus(struct feat_fd *ff, void *data __maybe_unused)
static int process_total_mem(struct feat_fd *ff, void *data __maybe_unused)
process_event_desc(struct feat_fd *ff, void *data __maybe_unused)
static int process_cmdline(struct feat_fd *ff, void *data __maybe_unused)
static int process_cpu_topology(struct feat_fd *ff, void *data __maybe_unused)
static int do_read_bitmap(struct feat_fd *ff, unsigned long **pset, u64 *psize)
static int process_numa_topology(struct feat_fd *ff, void *data __maybe_unused)
static int process_pmu_mappings(struct feat_fd *ff, void *data __maybe_unused)
static int process_group_desc(struct feat_fd *ff, void *data __maybe_unused)
static int process_auxtrace(struct feat_fd *ff, void *data __maybe_unused)
static int write_tracing_data(struct feat_fd *ff,
static int process_cache(struct feat_fd *ff, void *data __maybe_unused)
static int process_sample_time(struct feat_fd *ff, void *data __maybe_unused)
static int process_mem_topology(struct feat_fd *ff,
static int write_build_id(struct feat_fd *ff,
static int process_clockid(struct feat_fd *ff,
static int process_clock_data(struct feat_fd *ff,
static int process_hybrid_topology(struct feat_fd *ff,
static int process_dir_format(struct feat_fd *ff,
static int process_bpf_prog_info(struct feat_fd *ff, void *data __maybe_unused)
static int process_bpf_btf(struct feat_fd *ff, void *data __maybe_unused)
static int write_hostname(struct feat_fd *ff,
static int process_compressed(struct feat_fd *ff,
static int __process_pmu_caps(struct feat_fd *ff, int *nr_caps,
static int process_cpu_pmu_caps(struct feat_fd *ff,
static int process_pmu_caps(struct feat_fd *ff, void *data __maybe_unused)
static int write_osrelease(struct feat_fd *ff,
static int process_cpu_domain_info(struct feat_fd *ff, void *data __maybe_unused)
static int write_arch(struct feat_fd *ff,
struct feat_fd ff;
ff = (struct feat_fd) {
static int write_e_machine(struct feat_fd *ff,
struct feat_fd *ff;
static int do_write_feat(struct feat_fd *ff, int type,
struct feat_fd ff = {
struct feat_fd ff = {
static int write_version(struct feat_fd *ff,
struct feat_fd ff = {
static int __write_cpudesc(struct feat_fd *ff, const char *cpuinfo_proc)
struct feat_fd fdd = {
static int write_cpudesc(struct feat_fd *ff,
struct feat_fd ff = { .fd = 0 };
static int write_nrcpus(struct feat_fd *ff,
static int write_event_desc(struct feat_fd *ff,
static int write_cmdline(struct feat_fd *ff,
static int write_cpu_topology(struct feat_fd *ff,
static int write_total_mem(struct feat_fd *ff,
static int write_numa_topology(struct feat_fd *ff,
static int write_pmu_mappings(struct feat_fd *ff,
static int write_group_desc(struct feat_fd *ff,
static int write_cpuid(struct feat_fd *ff, struct evlist *evlist)
static int write_branch_stack(struct feat_fd *ff __maybe_unused,
static int write_auxtrace(struct feat_fd *ff,
static int write_clockid(struct feat_fd *ff,
static int write_clock_data(struct feat_fd *ff,
static int write_hybrid_topology(struct feat_fd *ff,
int (*write)(struct feat_fd *ff, struct evlist *evlist);
void (*print)(struct feat_fd *ff, FILE *fp);
int (*process)(struct feat_fd *ff, void *data);
struct feat_fd;
int do_write(struct feat_fd *fd, const void *buf, size_t size);
int write_padded(struct feat_fd *fd, const void *bf,
struct feat_fd ff;
ff = (struct feat_fd){ .fd = fd };
struct feat_fd ff;