/tools/testing/nvdimm/test/ |
D | nfit.c | 508 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup() 509 spa->header.length = sizeof(*spa); in nfit_test0_setup() 521 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup() 522 spa->header.length = sizeof(*spa); in nfit_test0_setup() 530 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup() 531 spa->header.length = sizeof(*spa); in nfit_test0_setup() 539 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup() 540 spa->header.length = sizeof(*spa); in nfit_test0_setup() 548 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS; in nfit_test0_setup() 549 spa->header.length = sizeof(*spa); in nfit_test0_setup() [all …]
|
/tools/perf/tests/ |
D | topology.c | 43 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header() 44 perf_header__set_feat(&session->header, HEADER_NRCPUS); in session_write_header() 45 perf_header__set_feat(&session->header, HEADER_ARCH); in session_write_header() 47 session->header.data_size += DATA_SIZE; in session_write_header() 69 for (i = 0; i < session->header.env.nr_cpus_online; i++) { in check_cpu_topology() 71 session->header.env.cpu[i].core_id, in check_cpu_topology() 72 session->header.env.cpu[i].socket_id); in check_cpu_topology() 77 (session->header.env.cpu[map->map[i]].core_id == (cpu_map__get_core(map, i, NULL) & 0xffff))); in check_cpu_topology() 80 (session->header.env.cpu[map->map[i]].socket_id == cpu_map__get_socket(map, i, NULL))); in check_cpu_topology()
|
D | parse-no-sample-id-all.c | 16 if (event->header.type == PERF_RECORD_HEADER_ATTR) { in process_event() 24 if (event->header.type >= PERF_RECORD_USER_TYPE_START) in process_event() 76 .header = { in test__parse_no_sample_id_all() 85 .header = { in test__parse_no_sample_id_all() 93 .header = { in test__parse_no_sample_id_all()
|
D | code-reading.c | 310 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in process_sample_event() 320 if (event->header.type == PERF_RECORD_SAMPLE) in process_event() 323 if (event->header.type == PERF_RECORD_THROTTLE || in process_event() 324 event->header.type == PERF_RECORD_UNTHROTTLE) in process_event() 327 if (event->header.type < PERF_RECORD_MAX) { in process_event() 333 event->header.type); in process_event()
|
D | mmap-basic.c | 105 if (event->header.type != PERF_RECORD_SAMPLE) { in test__basic_mmap() 107 perf_event__name(event->header.type)); in test__basic_mmap()
|
/tools/perf/util/ |
D | header.c | 47 void perf_header__set_feat(struct perf_header *header, int feat) in perf_header__set_feat() argument 49 set_bit(feat, header->adds_features); in perf_header__set_feat() 52 void perf_header__clear_feat(struct perf_header *header, int feat) in perf_header__clear_feat() argument 54 clear_bit(feat, header->adds_features); in perf_header__clear_feat() 57 bool perf_header__has_feat(const struct perf_header *header, int feat) in perf_header__has_feat() argument 59 return test_bit(feat, header->adds_features); in perf_header__has_feat() 151 session = container_of(h, struct perf_session, header); in write_build_id() 863 session = container_of(h, struct perf_session, header); in write_auxtrace() 1206 session = container_of(ph, struct perf_session, header); in print_group_desc() 1238 cpumode = bev->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in __event_process_build_id() [all …]
|
D | event.h | 13 struct perf_event_header header; member 22 struct perf_event_header header; member 37 struct perf_event_header header; member 43 struct perf_event_header header; member 50 struct perf_event_header header; member 56 struct perf_event_header header; member 64 struct perf_event_header header; member 73 struct perf_event_header header; member 90 struct perf_event_header header; member 212 struct perf_event_header header; member [all …]
|
D | header.h | 66 int perf_file_header__read(struct perf_file_header *header, 88 void perf_header__set_feat(struct perf_header *header, int feat); 89 void perf_header__clear_feat(struct perf_header *header, int feat); 90 bool perf_header__has_feat(const struct perf_header *header, int feat); 94 int perf_header__process_sections(struct perf_header *header, int fd,
|
D | session.c | 191 perf_env__exit(&session->header.env); in perf_session__delete() 363 void *end = (void *) event + event->header.size; in swap_sample_id_all() 373 struct perf_event_header *hdr = &event->header; in perf_event__all64_swap() 374 mem_bswap_64(hdr + 1, event->header.size - sizeof(*hdr)); in perf_event__all64_swap() 474 if (event->header.type == PERF_RECORD_SWITCH_CPU_WIDE) { in perf_event__switch_swap() 578 size = event->header.size; in perf_event__hdr_attr_swap() 603 size = event->header.size; in perf_event__auxtrace_info_swap() 863 if (event->header.type != PERF_RECORD_SAMPLE && in perf_evlist__print_tstamp() 913 file_offset, event->header.size, event->header.type); in dump_event() 921 event->header.size, perf_event__name(event->header.type)); in dump_event() [all …]
|
D | event.c | 158 event->comm.header.type = PERF_RECORD_COMM; in perf_event__prepare_comm() 163 event->comm.header.size = (sizeof(event->comm) - in perf_event__prepare_comm() 209 event->fork.header.type = PERF_RECORD_FORK; in perf_event__synthesize_fork() 211 event->fork.header.size = (sizeof(event->fork) + machine->id_hdr_size); in perf_event__synthesize_fork() 249 event->header.type = PERF_RECORD_MMAP2; in perf_event__synthesize_mmap_events() 295 event->header.misc = PERF_RECORD_MISC_USER; in perf_event__synthesize_mmap_events() 297 event->header.misc = PERF_RECORD_MISC_GUEST_USER; in perf_event__synthesize_mmap_events() 318 event->header.misc |= PERF_RECORD_MISC_MMAP_DATA; in perf_event__synthesize_mmap_events() 323 event->header.misc |= PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT; in perf_event__synthesize_mmap_events() 332 event->mmap2.header.size = (sizeof(event->mmap2) - in perf_event__synthesize_mmap_events() [all …]
|
D | debug.c | 124 event->header.size); in trace_event() 126 for (i = 0; i < event->header.size; i++) { in trace_event() 134 if (((i & 15) == 15) || i == event->header.size-1) { in trace_event()
|
/tools/usb/ |
D | ffs-test.c | 123 struct usb_functionfs_descs_head_v2 header; member 132 .header = { 197 const struct usb_functionfs_descs_head_v2 header; in descs_to_legacy() member 203 if (le32_to_cpu(in->header.magic) != in descs_to_legacy() 206 length = le32_to_cpu(in->header.length); in descs_to_legacy() 207 if (length <= sizeof in->header) in descs_to_legacy() 209 length -= sizeof in->header; in descs_to_legacy() 210 flags = le32_to_cpu(in->header.flags); in descs_to_legacy() 254 struct usb_functionfs_descs_head header; in descs_to_legacy() member 259 length = sizeof out->header + (descs_end - descs_start); in descs_to_legacy() [all …]
|
/tools/power/acpi/os_specific/service_layers/ |
D | oslinuxtbl.c | 735 (u8)((gbl_xsdt->header.length - in osl_list_bios_tables() 744 (u8)((gbl_rsdt->header.length - in osl_list_bios_tables() 833 if ((gbl_fadt->header.length >= MIN_FADT_FOR_XDSDT) && in osl_get_bios_table() 838 if ((gbl_fadt->header.length >= MIN_FADT_FOR_DSDT) in osl_get_bios_table() 844 if ((gbl_fadt->header.length >= MIN_FADT_FOR_XFACS) && in osl_get_bios_table() 849 if ((gbl_fadt->header.length >= MIN_FADT_FOR_FACS) in osl_get_bios_table() 887 (u8)((gbl_xsdt->header.length - in osl_get_bios_table() 897 (u8)((gbl_rsdt->header.length - in osl_get_bios_table() 1197 struct acpi_table_header header; in osl_read_table_from_file() local 1215 count = fread(&header, 1, sizeof(struct acpi_table_header), table_file); in osl_read_table_from_file() [all …]
|
/tools/perf/ |
D | builtin-inject.c | 64 return output_bytes(inject, event, event->header.size); in perf_event__repipe_synth() 145 ret = output_bytes(inject, event, event->header.size); in perf_event__repipe_auxtrace() 152 event->header.size + event->auxtrace.size); in perf_event__repipe_auxtrace() 361 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in perf_event__inject_buildid() 366 event->header.type); in perf_event__inject_buildid() 428 ent = malloc(event->header.size + sizeof(struct event_entry)); in perf_inject__sched_switch() 436 memcpy(&ent->event, event, event->header.size); in perf_inject__sched_switch() 582 output_data_offset = session->header.data_offset; in __cmd_inject() 630 perf_header__set_feat(&session->header, in __cmd_inject() 643 perf_header__clear_feat(&session->header, in __cmd_inject() [all …]
|
D | builtin-report.c | 54 bool header; member 156 event->header.type); in process_sample_event() 226 perf_header__has_feat(&session->header, HEADER_AUXTRACE) && in report__setup_sample_type() 442 &session->header.env); in report__browse_hists() 693 OPT_BOOLEAN(0, "header", &report.header, "Show data header."), in cmd_report() 850 has_br_stack = perf_header__has_feat(&session->header, in cmd_report() 894 if (report.header || report.header_only || report.show_threads) in cmd_report() 902 if (report.header || report.header_only) { in cmd_report() 940 if (symbol__init(&session->header.env) < 0) in cmd_report()
|
D | builtin-diff.c | 40 char *header; member 335 event->header.type); in diff__process_sample_event() 739 zfree(&fmt->header); in data__free() 1052 BUG_ON(!dfmt->header); in hpp__header() 1053 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header() 1072 const char *header = NULL; in init_header() local 1076 header = columns[dfmt->idx].name; in init_header() 1080 BUG_ON(!header); in init_header() 1083 scnprintf(buf, MAX_HEADER_NAME, "%s/%d", header, d->idx); in init_header() 1085 #define NAME (data__files_cnt > 2 ? buf : header) in init_header() [all …]
|
D | builtin-record.c | 73 return record__write(rec, event, event->header.size); in process_synthesized_event() 175 record__write(rec, event, event->header.size); in record__process_auxtrace() 442 perf_header__set_feat(&session->header, feat); in record__init_features() 445 perf_header__clear_feat(&session->header, HEADER_BUILD_ID); in record__init_features() 448 perf_header__clear_feat(&session->header, HEADER_TRACING_DATA); in record__init_features() 451 perf_header__clear_feat(&session->header, HEADER_BRANCH_STACK); in record__init_features() 454 perf_header__clear_feat(&session->header, HEADER_AUXTRACE); in record__init_features() 537 perf_header__clear_feat(&session->header, HEADER_GROUP_DESC); in __cmd_record() 550 && !perf_header__has_feat(&session->header, HEADER_BUILD_ID)) { in __cmd_record() 752 rec->session->header.data_size += rec->bytes_written; in __cmd_record()
|
/tools/perf/arch/s390/util/ |
D | Build | 1 libperf-y += header.o
|
/tools/perf/arch/powerpc/util/ |
D | Build | 1 libperf-y += header.o
|
/tools/perf/Documentation/ |
D | asciidoc.conf | 71 [header] 72 template::[header-declarations]
|
/tools/usb/ffs-aio-example/simple/device_app/ |
D | aio_simple.c | 55 struct usb_functionfs_descs_head_v2 header; member 64 .header = { 121 struct usb_functionfs_strings_head header; member 127 .header = {
|
/tools/perf/ui/browsers/ |
D | Build | 5 libperf-y += header.o
|
/tools/usb/ffs-aio-example/multibuff/device_app/ |
D | aio_multibuff.c | 57 struct usb_functionfs_descs_head_v2 header; member 66 .header = { 123 struct usb_functionfs_strings_head header; member 129 .header = {
|
/tools/perf/arch/x86/util/ |
D | Build | 1 libperf-y += header.o
|
/tools/testing/selftests/net/ |
D | psock_fanout.c | 178 struct tpacket2_hdr *header = ring; in sock_fanout_read_ring() local 181 while (count < RING_NUM_FRAMES && header->tp_status & TP_STATUS_USER) { in sock_fanout_read_ring() 183 header = ring + (count * getpagesize()); in sock_fanout_read_ring()
|