Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 120) sorted by relevance

12345

/tools/power/x86/intel-speed-select/
Disst-display.c78 static void format_and_print_txt(FILE *outf, int level, char *header, in format_and_print_txt() argument
96 if (header && value) { in format_and_print_txt()
98 fprintf(outf, "%s:%s\n", header, value); in format_and_print_txt()
99 } else if (header) { in format_and_print_txt()
101 fprintf(outf, "%s\n", header); in format_and_print_txt()
106 static void format_and_print(FILE *outf, int level, char *header, char *value) in format_and_print() argument
113 format_and_print_txt(outf, level, header, value); in format_and_print()
118 if (header) in format_and_print()
137 fprintf(outf, "%s\"%s\": ", delimiters, header); in format_and_print()
147 if (i == level && header) in format_and_print()
[all …]
/tools/perf/lib/include/perf/
Devent.h12 struct perf_event_header header; member
21 struct perf_event_header header; member
36 struct perf_event_header header; member
42 struct perf_event_header header; member
49 struct perf_event_header header; member
56 struct perf_event_header header; member
62 struct perf_event_header header; member
70 struct perf_event_header header; member
79 struct perf_event_header header; member
90 struct perf_event_header header; member
[all …]
/tools/perf/tests/
Dtopology.c46 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header()
47 perf_header__set_feat(&session->header, HEADER_NRCPUS); in session_write_header()
48 perf_header__set_feat(&session->header, HEADER_ARCH); in session_write_header()
50 session->header.data_size += DATA_SIZE; in session_write_header()
91 if (!session->header.env.cpu) in check_cpu_topology()
94 for (i = 0; i < session->header.env.nr_cpus_avail; i++) { in check_cpu_topology()
98 session->header.env.cpu[i].core_id, in check_cpu_topology()
99 session->header.env.cpu[i].socket_id); in check_cpu_topology()
104 (session->header.env.cpu[map->map[i]].core_id == (cpu_map__get_core(map, i, NULL) & 0xffff))); in check_cpu_topology()
107 (session->header.env.cpu[map->map[i]].socket_id == cpu_map__get_socket(map, i, NULL))); in check_cpu_topology()
Dparse-no-sample-id-all.c16 if (event->header.type == PERF_RECORD_HEADER_ATTR) { in process_event()
24 if (event->header.type >= PERF_RECORD_USER_TYPE_START) in process_event()
53 struct perf_event_header header; member
75 .header = { in test__parse_no_sample_id_all()
82 .header = { in test__parse_no_sample_id_all()
89 .header = { in test__parse_no_sample_id_all()
/tools/perf/util/
Djitdump.c135 struct jitheader header; in jit_open() local
145 bsz = hmax(sizeof(header), sizeof(*prefix)); in jit_open()
156 ret = fread(buf, sizeof(header), 1, jd->in); in jit_open()
160 memcpy(&header, buf, sizeof(header)); in jit_open()
162 if (header.magic != JITHEADER_MAGIC) { in jit_open()
163 if (header.magic != JITHEADER_MAGIC_SW) in jit_open()
169 header.version = bswap_32(header.version); in jit_open()
170 header.total_size = bswap_32(header.total_size); in jit_open()
171 header.pid = bswap_32(header.pid); in jit_open()
172 header.elf_mach = bswap_32(header.elf_mach); in jit_open()
[all …]
Dheader.c75 void perf_header__set_feat(struct perf_header *header, int feat) in perf_header__set_feat() argument
77 set_bit(feat, header->adds_features); in perf_header__set_feat()
80 void perf_header__clear_feat(struct perf_header *header, int feat) in perf_header__clear_feat() argument
82 clear_bit(feat, header->adds_features); in perf_header__clear_feat()
85 bool perf_header__has_feat(const struct perf_header *header, int feat) in perf_header__has_feat() argument
87 return test_bit(feat, header->adds_features); in perf_header__has_feat()
311 session = container_of(ff->ph, struct perf_session, header); in write_build_id()
884 session = container_of(ff->ph, struct perf_session, header); in write_auxtrace()
905 session = container_of(ff->ph, struct perf_session, header); in write_dir_format()
1526 session = container_of(ff->ph, struct perf_session, header); in print_dir_format()
[all …]
Dsynthetic-events.c60 .cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK, in perf_tool__process_synth_event()
162 event->comm.header.type = PERF_RECORD_COMM; in perf_event__prepare_comm()
167 event->comm.header.size = (sizeof(event->comm) - in perf_event__prepare_comm()
231 event->namespaces.header.type = PERF_RECORD_NAMESPACES; in perf_event__synthesize_namespaces()
233 event->namespaces.header.size = (sizeof(event->namespaces) + in perf_event__synthesize_namespaces()
265 event->fork.header.type = PERF_RECORD_FORK; in perf_event__synthesize_fork()
266 event->fork.header.misc = PERF_RECORD_MISC_FORK_EXEC; in perf_event__synthesize_fork()
268 event->fork.header.size = (sizeof(event->fork) + machine->id_hdr_size); in perf_event__synthesize_fork()
307 event->header.type = PERF_RECORD_MMAP2; in perf_event__synthesize_mmap_events()
353 event->header.misc = PERF_RECORD_MISC_USER; in perf_event__synthesize_mmap_events()
[all …]
Dheader.h82 int perf_file_header__read(struct perf_file_header *header,
124 void perf_header__set_feat(struct perf_header *header, int feat);
125 void perf_header__clear_feat(struct perf_header *header, int feat);
126 bool perf_header__has_feat(const struct perf_header *header, int feat);
130 int perf_header__process_sections(struct perf_header *header, int fd,
Dsession.c45 size_t mmap_len, decomp_len = session->header.env.comp_mmap_len; in perf_session__process_compressed_event()
71 src_size = event->pack.header.size - sizeof(struct perf_record_compressed); in perf_session__process_compressed_event()
116 if (perf_header__has_feat(&session->header, HEADER_STAT)) in perf_session__open()
203 perf_env__init(&session->header.env); in perf_session__new()
297 perf_env__exit(&session->header.env); in perf_session__delete()
536 void *end = (void *) event + event->header.size; in swap_sample_id_all()
546 struct perf_event_header *hdr = &event->header; in perf_event__all64_swap()
547 mem_bswap_64(hdr + 1, event->header.size - sizeof(*hdr)); in perf_event__all64_swap()
647 if (event->header.type == PERF_RECORD_SWITCH_CPU_WIDE) { in perf_event__switch_swap()
773 size = event->header.size; in perf_event__hdr_attr_swap()
[all …]
/tools/testing/nvdimm/test/
Dnfit.c1815 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup()
1816 spa->header.length = sizeof(*spa); in nfit_test0_setup()
1821 offset += spa->header.length; in nfit_test0_setup()
1829 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup()
1830 spa->header.length = sizeof(*spa); in nfit_test0_setup()
1835 offset += spa->header.length; in nfit_test0_setup()
1839 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup()
1840 spa->header.length = sizeof(*spa); in nfit_test0_setup()
1845 offset += spa->header.length; in nfit_test0_setup()
1849 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup()
[all …]
/tools/bpf/bpftool/
Dmap_perf_ring.c41 struct perf_event_header header; member
48 struct perf_event_header header; member
70 header); in print_bpf_output()
73 header); in print_bpf_output()
80 jsonw_uint(json_wtr, e->header.type); in print_bpf_output()
85 if (e->header.type == PERF_RECORD_SAMPLE) { in print_bpf_output()
90 } else if (e->header.type == PERF_RECORD_LOST) { in print_bpf_output()
101 if (e->header.type == PERF_RECORD_SAMPLE) { in print_bpf_output()
107 } else if (e->header.type == PERF_RECORD_LOST) { in print_bpf_output()
111 e->header.type, e->header.size); in print_bpf_output()
/tools/perf/arch/x86/
DMakefile14 header := $(out)/syscalls_64.c macro
21 $(header): $(sys)/syscall_64.tbl $(systbl)
25 $(call QUIET_CLEAN, x86) $(RM) $(header)
27 archheaders: $(header)
/tools/perf/arch/arm64/
DMakefile13 header := $(out)/syscalls.c macro
22 $(header): $(sysdef) $(systbl)
26 $(call QUIET_CLEAN, arm64) $(RM) $(header)
28 archheaders: $(header)
/tools/perf/arch/s390/
DMakefile14 header := $(out)/syscalls_64.c macro
23 $(header): $(sysdef) $(systbl)
30 $(call QUIET_CLEAN, s390) $(RM) $(header)
32 archheaders: $(header)
/tools/perf/jvmti/
Djvmti_agent.c249 struct jitheader header; in jvmti_open() local
265 memset(&header, 0, sizeof(header)); in jvmti_open()
305 if (get_e_machine(&header)) { in jvmti_open()
310 header.magic = JITHEADER_MAGIC; in jvmti_open()
311 header.version = JITHEADER_VERSION; in jvmti_open()
312 header.total_size = sizeof(header); in jvmti_open()
313 header.pid = getpid(); in jvmti_open()
315 header.timestamp = perf_get_timestamp(); in jvmti_open()
318 header.flags |= JITDUMP_FLAGS_ARCH_TIMESTAMP; in jvmti_open()
320 if (!fwrite(&header, sizeof(header), 1, fp)) { in jvmti_open()
/tools/perf/trace/beauty/
Darch_errno_names.sh21 local header
23 header="$toolsdir/arch/$arch/include/uapi/asm/errno.h"
24 if test -r "$header"; then
25 echo "$header"
/tools/perf/arch/x86/util/
Devent.c47 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_extra_kmaps()
54 event->header.misc = PERF_RECORD_MISC_KERNEL; in perf_event__synthesize_extra_kmaps()
56 event->header.misc = PERF_RECORD_MISC_GUEST_KERNEL; in perf_event__synthesize_extra_kmaps()
58 event->mmap.header.size = size; in perf_event__synthesize_extra_kmaps()
/tools/testing/selftests/net/
Dpsock_snd.c76 static int build_vnet_header(void *header) in build_vnet_header() argument
78 struct virtio_net_hdr *vh = header; in build_vnet_header()
101 static int build_eth_header(void *header) in build_eth_header() argument
103 struct ethhdr *eth = header; in build_eth_header()
106 uint16_t *tag = header + ETH_HLEN; in build_eth_header()
117 static int build_ipv4_header(void *header, int payload_len) in build_ipv4_header() argument
119 struct iphdr *iph = header; in build_ipv4_header()
134 static int build_udp_header(void *header, int payload_len) in build_udp_header() argument
137 struct udphdr *udph = header; in build_udp_header()
145 udph->check = build_ip_csum(header - (2 * alen), alen, in build_udp_header()
Dtxring_overwrite.c124 struct tpacket_hdr *header = slot; in send_pkt() local
127 while (header->tp_status != TP_STATUS_AVAILABLE) in send_pkt()
132 header->tp_len = cfg_frame_size; in send_pkt()
133 header->tp_status = TP_STATUS_SEND_REQUEST; in send_pkt()
/tools/perf/Documentation/
Dperf.data-file-format.txt21 uint64_t size; /* size of the header */
37 The header contains three such pointers: for attributes, data and event types.
48 respective perf_file_section points to the data of the additional header and
76 The header consists of an sequence of build_id_event. The size of each record
77 is defined by header.size (see perf_event.h). Each event defines a ELF build id
82 struct perf_event_header header;
85 char filename[header.size - offsetof(struct build_id_event, filename)];
137 Another description of the perf_event_attrs, more detailed than header.attrs
319 $ perf report --header-only -I
398 to only do a partial sort using the FINISHED_ROUND event header (see
[all …]
Djitdump-specification.txt27 …accesses, i.e., append only mode. The file starts with a fixed size file header describing the ver…
29 The header is followed by a series of records, each starting with a fixed size header describing th…
34 III/ Jitdump file header format
36 Each jitdump file starts with a fixed size header containing the following fields in order:
41 * uint32_t total_size: size in bytes of file header
51 IV/ Record header
53 The file header is immediately followed by records. Each record starts with a fixed size header des…
55 The record header is specified in order as follows:
57 * uint32_t total_size: the size in bytes of the record including the header.
67 The payload of the record must immediately follow the record header without padding.
[all …]
/tools/usb/
Dffs-test.c110 struct usb_functionfs_descs_head_v2 header; member
127 .header = {
232 const struct usb_functionfs_descs_head_v2 header; in descs_to_legacy() member
238 if (le32_to_cpu(in->header.magic) != in descs_to_legacy()
241 length = le32_to_cpu(in->header.length); in descs_to_legacy()
242 if (length <= sizeof in->header) in descs_to_legacy()
244 length -= sizeof in->header; in descs_to_legacy()
245 flags = le32_to_cpu(in->header.flags); in descs_to_legacy()
289 struct usb_functionfs_descs_head header; in descs_to_legacy() member
294 length = sizeof out->header + (descs_end - descs_start); in descs_to_legacy()
[all …]
/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c701 (u8)((gbl_xsdt->header.length - in osl_list_bios_tables()
710 (u8)((gbl_rsdt->header.length - in osl_list_bios_tables()
802 if ((gbl_fadt->header.length >= in osl_get_bios_table()
809 if ((gbl_fadt->header.length >= in osl_get_bios_table()
820 if ((gbl_fadt->header.length >= in osl_get_bios_table()
827 if ((gbl_fadt->header.length >= in osl_get_bios_table()
891 (u8)((gbl_xsdt->header.length - in osl_get_bios_table()
901 (u8)((gbl_rsdt->header.length - in osl_get_bios_table()
1203 struct acpi_table_header header; in osl_read_table_from_file() local
1221 count = fread(&header, 1, sizeof(struct acpi_table_header), table_file); in osl_read_table_from_file()
[all …]
/tools/perf/
Dbuiltin-c2c.c272 event->header.type); in process_sample_event()
395 struct c2c_header header; member
458 text = dim->header.line[line].text; in c2c_header()
463 text = dim->header.line[line].text; in c2c_header()
469 *span = dim->header.line[line].span; in c2c_header()
1277 .header = HEADER_SPAN("--- Cacheline ----", "Address", 2),
1285 .header = HEADER_LOW("Node"),
1293 .header = HEADER_LOW("PA cnt"),
1303 .header = HEADER_SPAN("--- Data address -", "Offset", 2),
1311 .header = HEADER_LOW("Node"),
[all …]
/tools/lib/traceevent/Documentation/
Dlibtraceevent-parse_head.txt6 tep_parse_header_page - Parses the data stored in the header page.
19 The _tep_parse_header_page()_ function parses the header page data from _buf_,
24 Some old kernels do not have header page info, in this case the
46 /* Failed to parse the header page */

12345