Lines Matching refs:feat_fd

101 static int __do_write_fd(struct feat_fd *ff, const void *buf, size_t size)
110 static int __do_write_buf(struct feat_fd *ff, const void *buf, size_t size)
139 int do_write(struct feat_fd *ff, const void *buf, size_t size)
147 static int do_write_bitmap(struct feat_fd *ff, unsigned long *set, u64 size)
166 int write_padded(struct feat_fd *ff, const void *bf,
182 static int do_write_string(struct feat_fd *ff, const char *str)
198 static int __do_read_fd(struct feat_fd *ff, void *addr, ssize_t size)
207 static int __do_read_buf(struct feat_fd *ff, void *addr, ssize_t size)
219 static int __do_read(struct feat_fd *ff, void *addr, ssize_t size)
226 static int do_read_u32(struct feat_fd *ff, u32 *addr)
239 static int do_read_u64(struct feat_fd *ff, u64 *addr)
252 static char *do_read_string(struct feat_fd *ff)
278 static int do_read_bitmap(struct feat_fd *ff, unsigned long **pset, u64 *psize)
308 static int write_tracing_data(struct feat_fd *ff,
318 static int write_build_id(struct feat_fd *ff,
342 static int write_hostname(struct feat_fd *ff,
355 static int write_osrelease(struct feat_fd *ff,
368 static int write_arch(struct feat_fd *ff,
381 static int write_version(struct feat_fd *ff,
387 static int __write_cpudesc(struct feat_fd *ff, const char *cpuinfo_proc)
442 static int write_cpudesc(struct feat_fd *ff,
478 static int write_nrcpus(struct feat_fd *ff,
500 static int write_event_desc(struct feat_fd *ff,
556 static int write_cmdline(struct feat_fd *ff,
585 static int write_cpu_topology(struct feat_fd *ff,
657 static int write_total_mem(struct feat_fd *ff,
686 static int write_numa_topology(struct feat_fd *ff,
740 static int write_pmu_mappings(struct feat_fd *ff,
783 static int write_group_desc(struct feat_fd *ff,
864 static int write_cpuid(struct feat_fd *ff,
877 static int write_branch_stack(struct feat_fd *ff __maybe_unused,
883 static int write_auxtrace(struct feat_fd *ff,
900 static int write_clockid(struct feat_fd *ff,
907 static int write_clock_data(struct feat_fd *ff,
941 static int write_hybrid_topology(struct feat_fd *ff,
975 static int write_dir_format(struct feat_fd *ff,
1042 static int write_bpf_prog_info(struct feat_fd *ff,
1084 static int write_bpf_btf(struct feat_fd *ff,
1266 static int write_cache(struct feat_fd *ff,
1319 static int write_stat(struct feat_fd *ff __maybe_unused,
1325 static int write_sample_time(struct feat_fd *ff,
1478 static int write_mem_topology(struct feat_fd *ff __maybe_unused,
1529 static int write_compressed(struct feat_fd *ff __maybe_unused,
1553 static int __write_pmu_caps(struct feat_fd *ff, struct perf_pmu *pmu,
1582 static int write_cpu_pmu_caps(struct feat_fd *ff,
1598 static int write_pmu_caps(struct feat_fd *ff,
1645 static void print_hostname(struct feat_fd *ff, FILE *fp)
1650 static void print_osrelease(struct feat_fd *ff, FILE *fp)
1655 static void print_arch(struct feat_fd *ff, FILE *fp)
1660 static void print_cpudesc(struct feat_fd *ff, FILE *fp)
1665 static void print_nrcpus(struct feat_fd *ff, FILE *fp)
1671 static void print_version(struct feat_fd *ff, FILE *fp)
1676 static void print_cmdline(struct feat_fd *ff, FILE *fp)
1705 static void print_cpu_topology(struct feat_fd *ff, FILE *fp)
1762 static void print_clockid(struct feat_fd *ff, FILE *fp)
1768 static void print_clock_data(struct feat_fd *ff, FILE *fp)
1811 static void print_hybrid_topology(struct feat_fd *ff, FILE *fp)
1823 static void print_dir_format(struct feat_fd *ff, FILE *fp)
1835 static void print_bpf_prog_info(struct feat_fd *ff, FILE *fp)
1859 static void print_bpf_btf(struct feat_fd *ff, FILE *fp)
1931 static struct evsel *read_event_desc(struct feat_fd *ff)
2018 static void print_event_desc(struct feat_fd *ff, FILE *fp)
2056 static void print_total_mem(struct feat_fd *ff, FILE *fp)
2061 static void print_numa_topology(struct feat_fd *ff, FILE *fp)
2078 static void print_cpuid(struct feat_fd *ff, FILE *fp)
2083 static void print_branch_stack(struct feat_fd *ff __maybe_unused, FILE *fp)
2088 static void print_auxtrace(struct feat_fd *ff __maybe_unused, FILE *fp)
2093 static void print_stat(struct feat_fd *ff __maybe_unused, FILE *fp)
2098 static void print_cache(struct feat_fd *ff, FILE *fp __maybe_unused)
2109 static void print_compressed(struct feat_fd *ff, FILE *fp)
2135 static void print_cpu_pmu_caps(struct feat_fd *ff, FILE *fp)
2141 static void print_pmu_caps(struct feat_fd *ff, FILE *fp)
2152 static void print_pmu_mappings(struct feat_fd *ff, FILE *fp)
2188 static void print_group_desc(struct feat_fd *ff, FILE *fp)
2210 static void print_sample_time(struct feat_fd *ff, FILE *fp)
2245 static void print_mem_topology(struct feat_fd *ff, FILE *fp)
2423 static int process_##__feat(struct feat_fd *ff, void *data __maybe_unused) \
2438 static int process_tracing_data(struct feat_fd *ff, void *data)
2446 static int process_build_id(struct feat_fd *ff, void *data __maybe_unused)
2453 static int process_nrcpus(struct feat_fd *ff, void *data __maybe_unused)
2470 static int process_total_mem(struct feat_fd *ff, void *data __maybe_unused)
2512 process_event_desc(struct feat_fd *ff, void *data __maybe_unused)
2537 static int process_cmdline(struct feat_fd *ff, void *data __maybe_unused)
2575 static int process_cpu_topology(struct feat_fd *ff, void *data __maybe_unused)
2709 static int process_numa_topology(struct feat_fd *ff, void *data __maybe_unused)
2755 static int process_pmu_mappings(struct feat_fd *ff, void *data __maybe_unused)
2802 static int process_group_desc(struct feat_fd *ff, void *data __maybe_unused)
2885 static int process_auxtrace(struct feat_fd *ff, void *data __maybe_unused)
2899 static int process_cache(struct feat_fd *ff, void *data __maybe_unused)
2951 static int process_sample_time(struct feat_fd *ff, void *data __maybe_unused)
2972 static int process_mem_topology(struct feat_fd *ff,
3024 static int process_clockid(struct feat_fd *ff,
3033 static int process_clock_data(struct feat_fd *ff,
3067 static int process_hybrid_topology(struct feat_fd *ff,
3107 static int process_dir_format(struct feat_fd *ff,
3123 static int process_bpf_prog_info(struct feat_fd *ff, void *data __maybe_unused)
3192 static int process_bpf_btf(struct feat_fd *ff, void *data __maybe_unused)
3239 static int process_compressed(struct feat_fd *ff,
3260 static int __process_pmu_caps(struct feat_fd *ff, int *nr_caps,
3315 static int process_cpu_pmu_caps(struct feat_fd *ff,
3327 static int process_pmu_caps(struct feat_fd *ff, void *data __maybe_unused)
3457 struct feat_fd ff;
3471 ff = (struct feat_fd) {
3527 struct feat_fd *ff;
3537 static int do_write_feat(struct feat_fd *ff, int type,
3590 struct feat_fd ff;
3597 ff = (struct feat_fd){
3635 struct feat_fd ff;
3638 ff = (struct feat_fd){ .fd = fd };
3663 struct feat_fd ff;
3667 ff = (struct feat_fd){ .fd = fd};
4015 struct feat_fd fdd = {
4044 struct feat_fd ff = {
4302 struct feat_fd ff = { .fd = 0 };