Lines Matching refs:do_write
133 int do_write(struct feat_fd *ff, const void *buf, size_t size) in do_write() function
146 ret = do_write(ff, &size, sizeof(size)); in do_write_bitmap()
151 ret = do_write(ff, p + i, sizeof(*p)); in do_write_bitmap()
164 int err = do_write(ff, bf, count); in write_padded()
167 err = do_write(ff, zero_buf, count_aligned - count); in write_padded()
185 ret = do_write(ff, &len, sizeof(len)); in do_write_string()
483 ret = do_write(ff, &nrc, sizeof(nrc)); in write_nrcpus()
487 return do_write(ff, &nra, sizeof(nra)); in write_nrcpus()
502 ret = do_write(ff, &nre, sizeof(nre)); in write_event_desc()
510 ret = do_write(ff, &sz, sizeof(sz)); in write_event_desc()
515 ret = do_write(ff, &evsel->core.attr, sz); in write_event_desc()
526 ret = do_write(ff, &nri, sizeof(nri)); in write_event_desc()
539 ret = do_write(ff, evsel->core.id, evsel->core.ids * sizeof(u64)); in write_event_desc()
558 ret = do_write(ff, &n, sizeof(n)); in write_cmdline()
586 ret = do_write(ff, &tp->package_cpus_lists, sizeof(tp->package_cpus_lists)); in write_cpu_topology()
595 ret = do_write(ff, &tp->core_cpus_lists, sizeof(tp->core_cpus_lists)); in write_cpu_topology()
610 ret = do_write(ff, &perf_env.cpu[j].core_id, in write_cpu_topology()
614 ret = do_write(ff, &perf_env.cpu[j].socket_id, in write_cpu_topology()
623 ret = do_write(ff, &tp->die_cpus_lists, sizeof(tp->die_cpus_lists)); in write_cpu_topology()
634 ret = do_write(ff, &perf_env.cpu[j].die_id, in write_cpu_topology()
668 ret = do_write(ff, &mem, sizeof(mem)); in write_total_mem()
687 ret = do_write(ff, &tp->nr, sizeof(u32)); in write_numa_topology()
694 ret = do_write(ff, &n->node, sizeof(u32)); in write_numa_topology()
698 ret = do_write(ff, &n->mem_total, sizeof(u64)); in write_numa_topology()
702 ret = do_write(ff, &n->mem_free, sizeof(u64)); in write_numa_topology()
747 ret = do_write(ff, &pmu_num, sizeof(pmu_num)); in write_pmu_mappings()
755 ret = do_write(ff, &pmu->type, sizeof(pmu->type)); in write_pmu_mappings()
786 ret = do_write(ff, &nr_groups, sizeof(nr_groups)); in write_group_desc()
800 ret = do_write(ff, &leader_idx, sizeof(leader_idx)); in write_group_desc()
804 ret = do_write(ff, &nr_members, sizeof(nr_members)); in write_group_desc()
899 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid()
913 ret = do_write(ff, &data32, sizeof(data32)); in write_clock_data()
920 ret = do_write(ff, &data32, sizeof(data32)); in write_clock_data()
927 ret = do_write(ff, data64, sizeof(*data64)); in write_clock_data()
934 return do_write(ff, data64, sizeof(*data64)); in write_clock_data()
948 ret = do_write(ff, &tp->nr, sizeof(u32)); in write_hybrid_topology()
983 return do_write(ff, &data->dir.version, sizeof(data->dir.version)); in write_dir_format()
1048 ret = do_write(ff, &env->bpf_progs.infos_cnt, in write_bpf_prog_info()
1066 ret = do_write(ff, node->info_linear, len); in write_bpf_prog_info()
1090 ret = do_write(ff, &env->bpf_progs.btfs_cnt, in write_bpf_btf()
1103 ret = do_write(ff, &node->id, in write_bpf_btf()
1260 ret = do_write(ff, &version, sizeof(u32)); in write_cache()
1264 ret = do_write(ff, &cnt, sizeof(u32)); in write_cache()
1272 ret = do_write(ff, &c->v, sizeof(u32)); \ in write_cache()
1310 ret = do_write(ff, &evlist->first_sample_time, in write_sample_time()
1315 return do_write(ff, &evlist->last_sample_time, in write_sample_time()
1457 ret = do_write(ff, &version, sizeof(version)); in write_mem_topology()
1461 ret = do_write(ff, &bsize, sizeof(bsize)); in write_mem_topology()
1465 ret = do_write(ff, &nr, sizeof(nr)); in write_mem_topology()
1473 ret = do_write(ff, &n->v, sizeof(n->v)); \ in write_mem_topology()
1496 ret = do_write(ff, &(ff->ph->env.comp_ver), sizeof(ff->ph->env.comp_ver)); in write_compressed()
1500 ret = do_write(ff, &(ff->ph->env.comp_type), sizeof(ff->ph->env.comp_type)); in write_compressed()
1504 ret = do_write(ff, &(ff->ph->env.comp_level), sizeof(ff->ph->env.comp_level)); in write_compressed()
1508 ret = do_write(ff, &(ff->ph->env.comp_ratio), sizeof(ff->ph->env.comp_ratio)); in write_compressed()
1512 return do_write(ff, &(ff->ph->env.comp_mmap_len), sizeof(ff->ph->env.comp_mmap_len)); in write_compressed()
1521 ret = do_write(ff, &pmu->nr_caps, sizeof(pmu->nr_caps)); in __write_pmu_caps()
1574 ret = do_write(ff, &nr_pmu, sizeof(nr_pmu)); in write_pmu_caps()
3491 return do_write(h->ff, buf, sz); in feat_writer_cb()
3582 err = do_write(&ff, feat_sec, sec_size); in perf_header__adds_write()
3602 err = do_write(&ff, &f_header, sizeof(f_header)); in perf_header__write_pipe()
3629 err = do_write(&ff, evsel->core.id, evsel->core.ids * sizeof(u64)); in perf_session__do_write_header()
3654 err = do_write(&ff, &f_attr, sizeof(f_attr)); in perf_session__do_write_header()
3689 err = do_write(&ff, &f_header, sizeof(f_header)); in perf_session__do_write_header()
4019 if (repipe && do_write(&ff, header, sizeof(*header)) < 0) in perf_file_header__read_pipe()