Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/net/
Dpsock_tpacket.c185 static inline int __v1_rx_kernel_ready(struct tpacket_hdr *hdr) in __v1_rx_kernel_ready() argument
187 return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER); in __v1_rx_kernel_ready()
190 static inline void __v1_rx_user_ready(struct tpacket_hdr *hdr) in __v1_rx_user_ready() argument
192 hdr->tp_status = TP_STATUS_KERNEL; in __v1_rx_user_ready()
196 static inline int __v2_rx_kernel_ready(struct tpacket2_hdr *hdr) in __v2_rx_kernel_ready() argument
198 return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER); in __v2_rx_kernel_ready()
201 static inline void __v2_rx_user_ready(struct tpacket2_hdr *hdr) in __v2_rx_user_ready() argument
203 hdr->tp_status = TP_STATUS_KERNEL; in __v2_rx_user_ready()
292 static inline int __v1_tx_kernel_ready(struct tpacket_hdr *hdr) in __v1_tx_kernel_ready() argument
294 return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING)); in __v1_tx_kernel_ready()
[all …]
/tools/net/
Dbpf_dbg.c923 struct pcap_pkthdr *hdr = pcap_curr_pkt(); in pcap_next_pkt() local
925 if (pcap_ptr_va_curr + sizeof(*hdr) - in pcap_next_pkt()
928 if (hdr->caplen == 0 || hdr->len == 0 || hdr->caplen > hdr->len) in pcap_next_pkt()
930 if (pcap_ptr_va_curr + sizeof(*hdr) + hdr->caplen - in pcap_next_pkt()
934 pcap_ptr_va_curr += (sizeof(*hdr) + hdr->caplen); in pcap_next_pkt()
945 struct pcap_filehdr *hdr; in try_load_pcap() local
979 hdr = (void *) pcap_ptr_va_start; in try_load_pcap()
980 if (hdr->magic != TCPDUMP_MAGIC) { in try_load_pcap()
1092 struct pcap_pkthdr *hdr; in cmd_step() local
1107 hdr = pcap_curr_pkt(); in cmd_step()
[all …]
/tools/perf/util/
Dunwind-libunwind.c245 struct eh_frame_hdr hdr; in unwind_spec_ehframe() local
246 u8 *enc = (u8 *) &hdr.enc; in unwind_spec_ehframe()
247 u8 *end = (u8 *) &hdr.data; in unwind_spec_ehframe()
251 (u8 *) &hdr, sizeof(hdr)); in unwind_spec_ehframe()
252 if (r != sizeof(hdr)) in unwind_spec_ehframe()
256 dw_read_encoded_value(enc, end, hdr.eh_frame_ptr_enc); in unwind_spec_ehframe()
258 *fde_count = dw_read_encoded_value(enc, end, hdr.fde_count_enc); in unwind_spec_ehframe()
260 *table_data = (enc - (u8 *) &hdr) + offset; in unwind_spec_ehframe()
Dsession.h51 void perf_event_header__bswap(struct perf_event_header *hdr);
Dsession.c373 struct perf_event_header *hdr = &event->header; in perf_event__all64_swap() local
374 mem_bswap_64(hdr + 1, event->header.size - sizeof(*hdr)); in perf_event__all64_swap()
1314 void perf_event_header__bswap(struct perf_event_header *hdr) in perf_event_header__bswap() argument
1316 hdr->type = bswap_32(hdr->type); in perf_event_header__bswap()
1317 hdr->misc = bswap_16(hdr->misc); in perf_event_header__bswap()
1318 hdr->size = bswap_16(hdr->size); in perf_event_header__bswap()
/tools/lguest/
Dlguest.c502 if (memcmp(&boot.hdr.header, "HdrS", 4) != 0) in load_bzimage()
506 lseek(fd, (boot.hdr.setup_sects+1) * 512, SEEK_SET); in load_bzimage()
513 return boot.hdr.code32_start; in load_bzimage()
523 Elf32_Ehdr hdr; in load_kernel() local
526 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) in load_kernel()
530 if (memcmp(hdr.e_ident, ELFMAG, SELFMAG) == 0) in load_kernel()
531 return map_elf(fd, &hdr); in load_kernel()
3328 boot->hdr.ramdisk_image = mem - initrd_size; in main()
3329 boot->hdr.ramdisk_size = initrd_size; in main()
3331 boot->hdr.type_of_loader = 0xFF; in main()
[all …]