Home
last modified time | relevance | path

Searched refs:BUILD_BUG_ON (Results 1 – 23 of 23) sorted by relevance

/tools/libs/guest/
A Dxg_sr_common.c146 BUILD_BUG_ON(sizeof(struct xc_sr_ihdr) != 24); in build_assertions()
147 BUILD_BUG_ON(sizeof(struct xc_sr_dhdr) != 16); in build_assertions()
148 BUILD_BUG_ON(sizeof(struct xc_sr_rhdr) != 8); in build_assertions()
150 BUILD_BUG_ON(sizeof(struct xc_sr_rec_page_data_header) != 8); in build_assertions()
151 BUILD_BUG_ON(sizeof(struct xc_sr_rec_x86_pv_info) != 8); in build_assertions()
152 BUILD_BUG_ON(sizeof(struct xc_sr_rec_x86_pv_p2m_frames) != 8); in build_assertions()
153 BUILD_BUG_ON(sizeof(struct xc_sr_rec_x86_pv_vcpu_hdr) != 8); in build_assertions()
154 BUILD_BUG_ON(sizeof(struct xc_sr_rec_x86_tsc_info) != 24); in build_assertions()
155 BUILD_BUG_ON(sizeof(struct xc_sr_rec_hvm_params_entry) != 16); in build_assertions()
156 BUILD_BUG_ON(sizeof(struct xc_sr_rec_hvm_params) != 8); in build_assertions()
A Dxg_core_arm.c91 BUILD_BUG_ON(GUEST_GNTTAB_SIZE < XC_PAGE_SIZE); in xc_core_arch_get_scratch_gpfn()
A Dxg_dom_arm.c56 BUILD_BUG_ON(NR_MAGIC_PAGES > GUEST_MAGIC_SIZE >> XC_PAGE_SHIFT); in alloc_magic_pages()
A Dxg_dom_bzimageloader.c361 BUILD_BUG_ON(sizeof(lzo_uint) != sizeof(size_t)); in xc_try_lzo1x_decode()
A Dxg_dom_x86.c1835 BUILD_BUG_ON(XEN_HVM_MEMMAP_TYPE_RAM != E820_RAM); in bootlate_hvm()
1836 BUILD_BUG_ON(XEN_HVM_MEMMAP_TYPE_ACPI != E820_ACPI); in bootlate_hvm()
/tools/libs/gnttab/
A Dlinux.c247 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
251 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
255 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
259 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
263 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
268 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
272 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
276 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
280 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
284 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy()
[all …]
/tools/misc/
A Dxen-diag.c113 BUILD_BUG_ON(EXIT_SUCCESS != 0); in main()
114 BUILD_BUG_ON(EXIT_FAILURE != 1); in main()
115 BUILD_BUG_ON(EXIT_TIMEOUT != 2); in main()
A Dxen-livepatch.c631 BUILD_BUG_ON(EXIT_SUCCESS != 0); in main()
632 BUILD_BUG_ON(EXIT_FAILURE != 1); in main()
633 BUILD_BUG_ON(EXIT_TIMEOUT != 2); in main()
A Dxen-cpuid.c78 BUILD_BUG_ON(ARRAY_SIZE(leaf_info) != FEATURESET_NR_ENTRIES); in decode_featureset()
79 BUILD_BUG_ON(ARRAY_SIZE(feature_names) != FEATURESET_NR_ENTRIES * 32); in decode_featureset()
/tools/include/xen-tools/
A Dcommon-macros.h13 #ifndef BUILD_BUG_ON
15 #define BUILD_BUG_ON(p) ({ _Static_assert(!(p), "!(" #p ")"); }) macro
17 #define BUILD_BUG_ON(p) ((void)sizeof(char[1 - 2 * !!(p)])) macro
/tools/libs/light/
A Dlibxl_arm_acpi.c193 BUILD_BUG_ON(sizeof(ACPI_OEM_ID) != sizeof(rsdp->oem_id)); in make_acpi_rsdp()
209 BUILD_BUG_ON(sizeof(ACPI_OEM_ID) != sizeof(h->oem_id)); in make_acpi_header()
211 BUILD_BUG_ON(sizeof(ACPI_OEM_TABLE_ID) != sizeof(h->oem_table_id)); in make_acpi_header()
214 BUILD_BUG_ON(sizeof(ACPI_ASL_COMPILER_ID) != sizeof(h->asl_compiler_id)); in make_acpi_header()
A Dlibxl_psr.c323 BUILD_BUG_ON(sizeof(libxl_psr_type) != sizeof(xc_psr_type)); in libxl__psr_type_to_libxc_psr_type()
A Dlibxl_cpuid.c355 BUILD_BUG_ON(ARRAY_SIZE(feature_to_policy) != FEATURESET_NR_ENTRIES); in libxl_cpuid_parse_config()
/tools/firmware/hvmloader/
A Dpci.c124 BUILD_BUG_ON((typeof(*pci_devfn_decode_type))PCI_COMMAND_IO != in pci_setup()
126 BUILD_BUG_ON((typeof(*pci_devfn_decode_type))PCI_COMMAND_MEMORY != in pci_setup()
128 BUILD_BUG_ON((typeof(*pci_devfn_decode_type))PCI_COMMAND_MASTER != in pci_setup()
A Drombios.c134 BUILD_BUG_ON(sizeof(rombios) > 0x100000 - ROMBIOS_PHYSICAL_ADDRESS); in rombios_load()
A Dtests.c288 BUILD_BUG_ON(SCRATCH_PHYSICAL_ADDRESS > HVMLOADER_PHYSICAL_ADDRESS); in perform_tests()
A Dsmbios.c270 BUILD_BUG_ON(sizeof(xen_domain_handle_t) != 16); in hvm_write_smbios_tables()
/tools/ocaml/libs/mmap/
A Dxenmmap_stubs.c64 BUILD_BUG_ON((sizeof(struct mmap_interface) % sizeof(value)) != 0); in stub_mmap_init()
/tools/libs/ctrl/
A Dxc_pm.c278 BUILD_BUG_ON(sizeof(user_para->u) != sizeof(sys_para->u)); in xc_get_cpufreq_para()
281 BUILD_BUG_ON(offsetof(typeof(user_para->u), fld) != \ in xc_get_cpufreq_para()
/tools/libfsimage/xfs/
A Dfsys_xfs.c479 BUILD_BUG_ON(XFS_SB_BLOCKLOG_MIN < SECTOR_BITS); in xfs_mount()
/tools/ocaml/libs/xc/
A Dxenctrl_stubs.c258 BUILD_BUG_ON(sizeof(cfg) != 68); in stub_xc_domain_create()
1108 BUILD_BUG_ON((sizeof(struct mmap_interface) % sizeof(value)) != 0); in stub_map_foreign_range()
/tools/xenstored/
A Ddomain.c1890 BUILD_BUG_ON(sizeof(c->domain->unique_id) != sizeof(uint64_t)); in dump_state_connections()
A Dcore.c841 BUILD_BUG_ON(XENSTORE_PAYLOAD_MAX >= (typeof(hdr->datalen))(-1)); in write_node_raw()

Completed in 88 milliseconds