Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 15 of 15) sorted by relevance

/tools/perf/util/
Dbpf-event.c98 u32 data_size; in perf_env__fetch_btf() local
101 data = btf__get_raw_data(btf, &data_size); in perf_env__fetch_btf()
103 node = malloc(data_size + sizeof(struct btf_node)); in perf_env__fetch_btf()
108 node->data_size = data_size; in perf_env__fetch_btf()
109 memcpy(node->data, data, data_size); in perf_env__fetch_btf()
466 node->data_size); in __bpf_event__print_bpf_prog_info()
Dbpf-event.h29 u32 data_size; member
Dheader.h89 u64 data_size; member
Dsession.c2063 u64 data_size; member
2072 u64 data_size = rd->data_size; in reader__process_events() local
2084 ui_progress__init_size(prog, data_size, "Processing events..."); in reader__process_events()
2086 data_size += rd->data_offset; in reader__process_events()
2089 if (mmap_size > data_size) { in reader__process_events()
2090 mmap_size = data_size; in reader__process_events()
2164 if (file_pos < data_size) in reader__process_events()
2182 .data_size = session->header.data_size, in __perf_session__process_events()
2193 if (rd.data_size == 0) in __perf_session__process_events()
2196 ui_progress__init_size(&prog, rd.data_size, "Processing events..."); in __perf_session__process_events()
Dheader.c988 sizeof(u32) * 2 + node->data_size); in write_bpf_btf()
2763 u32 id, data_size; in process_bpf_btf() local
2767 if (do_read_u32(ff, &data_size)) in process_bpf_btf()
2770 node = malloc(sizeof(struct btf_node) + data_size); in process_bpf_btf()
2775 node->data_size = data_size; in process_bpf_btf()
2777 if (__do_read(ff, node->data, data_size)) in process_bpf_btf()
2930 fprintf(fp, "# data size : %" PRIu64 "\n", header->data_size); in perf_header__fprintf_info()
3091 header->feat_offset = header->data_offset + header->data_size; in perf_session__write_header()
3109 .size = header->data_size, in perf_session__write_header()
3122 lseek(fd, header->data_offset + header->data_size, SEEK_SET); in perf_session__write_header()
[all …]
Dannotate.c1783 node->data_size); in symbol__disassemble_bpf()
/tools/testing/selftests/bpf/progs/
Dxdping_kern.c49 static __always_inline __u16 ipv4_csum(void *data_start, int data_size) in ipv4_csum() argument
53 sum = bpf_csum_diff(0, 0, data_start, data_size, 0); in ipv4_csum()
/tools/lib/bpf/
Dbtf.c35 __u32 data_size; member
77 if (btf->data_size < sizeof(struct btf_header)) { in btf_parse_hdr()
97 meta_left = btf->data_size - sizeof(*hdr); in btf_parse_hdr()
104 pr_debug("Invalid BTF total size:%u\n", btf->data_size); in btf_parse_hdr()
346 btf->data_size = size; in btf__new()
594 btf->fd = bpf_load_btf(btf->data, btf->data_size, in btf__load()
616 *size = btf->data_size; in btf__get_raw_data()
792 if (btf_ext->data + btf_ext->data_size < info + ext_sec->len) { in btf_ext_setup_info()
899 static int btf_ext_parse_hdr(__u8 *data, __u32 data_size) in btf_ext_parse_hdr() argument
903 if (data_size < offsetofend(struct btf_ext_header, hdr_len) || in btf_ext_parse_hdr()
[all …]
Dlibbpf_internal.h100 __u32 data_size; member
/tools/perf/tests/
Dtopology.c50 session->header.data_size += DATA_SIZE; in session_write_header()
/tools/include/uapi/linux/
Dperf_event.h616 __u64 data_size; /* data buffer size */ member
/tools/perf/
Dbuiltin-inject.c736 session->header.data_size = inject->bytes_written; in __cmd_inject()
Dbuiltin-record.c1073 rec->session->header.data_size += rec->bytes_written; in record__finish_output()
1138 rec->session->header.data_size = 0; in record__switch_output()
Dbuiltin-stat.c1999 perf_stat.session->header.data_size += perf_stat.bytes_written; in cmd_stat()
/tools/perf/Documentation/
Dperf.data-file-format.txt359 u32 data_size;