def setUp(self):
        cpuinfo.CAN_CALL_CPUID_IN_SUBPROCESS = False
        helpers.backup_data_source(cpuinfo)
        helpers.monkey_patch_data_source(cpuinfo, MockDataSource)

        helpers.backup_cpuid(cpuinfo)
        helpers.monkey_patch_cpuid(
            cpuinfo,
            3693000000,
            [
                # get_max_extension_support
                0x8000001f,
                # get_cache
                0x2006140,
                # get_info
                0x800f82,
                # get_processor_brand
                0x20444d41,
                0x657a7952,
                0x2037206e,
                0x30303732,
                0x69452058,
                0x2d746867,
                0x65726f43,
                0x6f725020,
                0x73736563,
                0x2020726f,
                0x20202020,
                0x202020,
                # get_vendor_id
                0x68747541,
                0x444d4163,
                0x69746e65,
                # get_flags
                0x178bfbff,
                0x7ed8320b,
                0x209c01a9,
                0x0,
                0x20000000,
                0x35c233ff,
            ])
Ejemplo n.º 2
0
    def setUp(self):
        cpuinfo.CAN_CALL_CPUID_IN_SUBPROCESS = False
        helpers.backup_data_source(cpuinfo)
        helpers.monkey_patch_data_source(cpuinfo, MockDataSource)

        helpers.backup_cpuid(cpuinfo)
        helpers.monkey_patch_cpuid(
            cpuinfo,
            2930000000,
            [
                # max_extension_support
                0x80000008,
                # get_cache
                0x1006040,
                # get_info
                0x106e5,
                # get_processor_brand
                0x65746e49,
                0x2952286c,
                0x726f4320,
                0x4d542865,
                0x37692029,
                0x55504320,
                0x20202020,
                0x20202020,
                0x30373820,
                0x20402020,
                0x33392e32,
                0x7a4847,
                # get_vendor_id
                0x756e6547,
                0x6c65746e,
                0x49656e69,
                # get_flags
                0xbfebfbff,
                0x98e3fd,
                0x0,
                0x0,
                0x0,
                0x1,
            ])
Ejemplo n.º 3
0
    def setUp(self):
        cpuinfo.CAN_CALL_CPUID_IN_SUBPROCESS = False
        helpers.backup_data_source(cpuinfo)
        helpers.monkey_patch_data_source(cpuinfo, MockDataSource)

        helpers.backup_cpuid(cpuinfo)
        helpers.monkey_patch_cpuid(
            cpuinfo,
            2494000000,
            [
                # max_extension_support
                0x80000008,
                # get_cache
                0x1006040,
                # get_info
                0x40651,
                # get_processor_brand
                0x65746e49,
                0x2952286c,
                0x726f4320,
                0x4d542865,
                0x35692029,
                0x3033342d,
                0x43205530,
                0x40205550,
                0x392e3120,
                0x7a484730,
                0x0,
                0x0,
                # get_vendor_id
                0x756e6547,
                0x6c65746e,
                0x49656e69,
                # get_flags
                0xbfebfbff,
                0x7ffafbff,
                0x27ab,
                0x0,
                0x0,
                0x21,
            ])
	def setUp(self):
		cpuinfo.CAN_CALL_CPUID_IN_SUBPROCESS = False
		helpers.backup_data_source(cpuinfo)
		helpers.monkey_patch_data_source(cpuinfo, MockDataSource)

		helpers.backup_cpuid(cpuinfo)
		helpers.monkey_patch_cpuid(cpuinfo, 3693000000, [
			# get_max_extension_support
			0x8000001f,
			# get_cache
			0x2006140,
			# get_info
			0x800f82,
			# get_processor_brand
			0x20444d41, 0x657a7952, 0x2037206e,
			0x30303732, 0x69452058, 0x2d746867,
			0x65726f43, 0x6f725020, 0x73736563,
			0x2020726f, 0x20202020, 0x202020,
			# get_vendor_id
			0x68747541, 0x444d4163, 0x69746e65,
			# get_flags
			0x178bfbff, 0x7ed8320b, 0x209c01a9,
			0x0, 0x20000000, 0x35c233ff,
		])
Ejemplo n.º 5
0
	def setUp(self):
		cpuinfo.CAN_CALL_CPUID_IN_SUBPROCESS = False
		helpers.backup_data_source(cpuinfo)
		helpers.monkey_patch_data_source(cpuinfo, MockDataSource)

		helpers.backup_cpuid(cpuinfo)
		helpers.monkey_patch_cpuid(cpuinfo, 2494000000, [
			# max_extension_support
			0x80000008,
			# get_cache
			0x1006040,
			# get_info
			0x40651,
			# get_processor_brand
			0x65746e49, 0x2952286c, 0x726f4320,
			0x4d542865, 0x35692029, 0x3033342d,
			0x43205530, 0x40205550, 0x392e3120,
			0x7a484730, 0x0, 0x0,
			# get_vendor_id
			0x756e6547, 0x6c65746e, 0x49656e69,
			# get_flags
			0xbfebfbff, 0x7ffafbff, 0x27ab,
			0x0, 0x0, 0x21,
		])
Ejemplo n.º 6
0
	def setUp(self):
		cpuinfo.CAN_CALL_CPUID_IN_SUBPROCESS = False
		helpers.backup_data_source(cpuinfo)
		helpers.monkey_patch_data_source(cpuinfo, MockDataSource)

		helpers.backup_cpuid(cpuinfo)
		helpers.monkey_patch_cpuid(cpuinfo, 2930000000, [
			# max_extension_support
			0x80000008,
			# get_cache
			0x1006040,
			# get_info
			0x106e5,
			# get_processor_brand
			0x65746e49, 0x2952286c, 0x726f4320,
			0x4d542865, 0x37692029, 0x55504320,
			0x20202020, 0x20202020, 0x30373820,
			0x20402020, 0x33392e32, 0x7a4847,
			# get_vendor_id
			0x756e6547, 0x6c65746e, 0x49656e69,
			# get_flags
			0xbfebfbff, 0x98e3fd, 0x0,
			0x0, 0x0, 0x1,
		])