Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 64) sorted by relevance

123

/misc/debug_tools/acrn_crashlog/usercrash/
A Dcrash_dump.c125 memset(format, 0, sizeof(format)); in get_backtrace()
127 flen = snprintf(format, sizeof(format), "-p %d", pid); in get_backtrace()
129 flen = snprintf(format, sizeof(format), "%s %s", comm, in get_backtrace()
171 memset(format, 0, sizeof(format)); in save_proc_info()
172 ret = snprintf(format, sizeof(format), path, pid); in save_proc_info()
203 memset(format, 0, sizeof(format)); in get_openfiles()
204 ret = snprintf(format, sizeof(format), path, pid); in get_openfiles()
279 memset(format, 0, sizeof(format)); in get_key_value()
280 ret = snprintf(format, sizeof(format), path, pid); in get_key_value()
326 memset(format, 0, sizeof(format)); in crash_dump()
[all …]
/misc/config_tools/hv_config/
A Dboard_defconfig.py62 print("CONFIG_HV_RAM_START={}".format(hv_info.mem.hv_ram_start), file=config)
63 print("CONFIG_STACK_SIZE={}".format(hv_info.mem.stack_size), file=config)
72 print("CONFIG_SERIAL_PIO_BASE={}".format(serial_value), file=config)
80 print('CONFIG_SERIAL_PCI_BDF={}'.format(hex(value)), file=config)
84 print('CONFIG_SERIAL_MMIO_BASE={}'.format(serial_value), file=config)
88 print("CONFIG_{}=y".format(hv_info.features.scheduler), file=config)
89 print("CONFIG_RELOC={}".format(hv_info.features.reloc), file=config)
90 print("CONFIG_MULTIBOOT2={}".format(hv_info.features.multiboot2), file=config)
117 print("CONFIG_MAX_MSIX_TABLE_NUM={}".format(max_msix_table_num), file=config)
138 print("{}".format(DESC), file=config)
[all …]
/misc/config_tools/board_inspector/legacy/
A Dacpi.py155 print("\t#define RESET_REGISTER_SPACE_ID {0}".format(
199 print("\t{0}".format("<PM_INFO>"), file=config)
255 print("\t{0}\n".format("</PM_INFO>"), file=config)
616 print("{0}".format("\t<S3_INFO>"), file=config)
618 print("{0}".format("\t</S3_INFO>\n"), file=config)
620 print("{0}".format("\t<S5_INFO>"), file=config)
624 print("{0}".format("\t<DRHD_INFO>"), file=config)
628 print("{0}".format("\t<CPU_BRAND>"), file=config)
632 print("{0}".format("\t<CX_INFO>"), file=config)
636 print("{0}".format("\t<PX_INFO>"), file=config)
[all …]
A Dmisc.py38 cmd = 'stty -F /dev/ttyS{}'.format(s_inc)
39 res = external_tools.run('{}'.format(cmd))
48 ttys_n = "/dev/ttyS{}".format(s_inc)
86 type_path = '{}{}/io_type'.format(TTY_PATH, ttys_n)
89 irq_path = '{}{}/irq'.format(TTY_PATH, ttys_n)
94 base_path = '{}{}/port'.format(TTY_PATH, ttys_n)
155 print("{}".format(irq), file=config)
157 print("{}, ".format(irq), end="", file=config)
177 print("\t{}".format(line), file=config)
220 print("\t{}".format(processor_id), end="", file=config)
[all …]
A Dparser_lib.py32 print("\033[1;33m{}\033[0m".format(msg))
34 print("\033[1;33m{}\033[0m".format(msg), end="")
45 print("\033[1;31m{0}\033[0m".format(msg))
101 print("\t<{0}>".format(desc), file=config)
104 print("\t\t</{0}>".format(desc), file=config)
138 print("\t{}".format(line.strip()), file=config)
140 print("\t</{0}>".format(desc), file=config)
A Dboard_parser.py44 if os.path.exists(os.path.join(cpu_dirs, "{}/msr".format(cpu_num))):
64 logging.critical("{}".format(err_msg))
69 logging.critical("Missing CPU MSR file at {}/{}/msr".format(cpu_dirs, cpu_num))
101 print('<acrn-config board="{}">'.format(ARGS.board_name), file=f)
A Ddmar.py362 print("\t#define DRHD_COUNT {0}U".format(drhd_cnt), file=config)
363 …print("\t#define DRHD_MAX_DEVSCOPE_COUNT {0}U".format(max(dmar_dev_list.dev_scope_cnt_list)), file…
368 print("\t#define DRHD"+str(drhd_hw_i)+"_DEV_CNT {0}U".format(
370 print("\t#define DRHD"+str(drhd_hw_i)+"_SEGMENT {0}U".format(
372 print("\t#define DRHD"+str(drhd_hw_i)+"_FLAGS {0}U".format(
374 print("\t#define DRHD"+str(drhd_hw_i)+"_REG_BASE 0x{:0>2X}UL".format(
377 print("\t#define DRHD"+str(drhd_hw_i)+"_IGNORE {0}".format(
382 print("_TYPE {0}U".format(
387 print("_ID {0}U".format(
392 print("_BUS {0}U".format(hex(
[all …]
/misc/config_tools/library/
A Dhv_cfg_lib.py34 key = 'hv,{},{}'.format(prime_item, item)
51 key = 'hv,{},{}'.format(prime_item, item)
61 key = 'hv,{},{}'.format(prime_item, item)
69 key = 'hv,{},{}'.format(dbg_opt, rel_str)
94 key = "hv,{},{}".format(prime_item, item)
100 key = "hv,{},{}".format(prime_item, item)
107 key = 'hv,{},{}'.format(cap, cap_ir_entries)
115 key = 'hv,{},{}'.format(feat, feat_item)
123 key = 'hv,{},{}'.format(feat, feat_scheduler)
131 key = "hv,{},{}".format(branch_tag, range_key)
[all …]
A Dscenario_cfg_lib.py210 key = "vm:id={},{}".format(name_i, item)
227 key = "vm:id={},{}".format(order_i, item)
232 key = "vm:id={},{}".format(order_i, item)
248 key = "vm:id={},{}".format(sos_vm_ids[0], item)
322 key = "vm:id={},{}".format(vm_i, 'pcpu_id')
378 key = "vm:id={},{}".format(id_key, item)
401 key = "vm:id={},{}".format(id_key, item)
437 key = "vm:id={},{}".format(id_key, item)
852 key = "vm:id={}".format(vm_id)
961 .format(target_vm_id))
[all …]
A Dlaunch_cfg_lib.py58 print("usage= {} [h]".format(file_name), end="")
298 key = "user_vm:id={},{}".format(i_cnt, item)
323 key = "user_vm:id={},{}".format(i_cnt, item)
324 ERR_LIST[key] = "The {} is invalidate".format(item)
348 key = "user_vm:id={},{}".format(i_cnt, item)
467 'vmid:{} sriov {}'.format(vm_id, dev_type)
470 … ERR_LIST['vmid:{} sriov {}'.format(vm_id, dev_type)] = 'sriov {} bdf error'.format(dev_type)
645 key = 'user_vm:id={},console_vuart'.format(user_vmid)
648 "at the same time".format(user_vmid)
667 "in scenario setting.".format(vuart_id, user_vmid)
[all …]
/misc/config_tools/board_config/
A Dboard_c.py58 dev_scope_cnt_str = "DRHD{}_DEV_CNT".format(i_cnt)
109 print("\t\t.clos_mask = {},".format(cat_mask), file=config)
216 print("\t\t.cpu_mask = {0},".format(hex(cpu_mask)), file=config)
299 print("struct rdt_ins {}".format(rdt_ins_name), file=config)
310 print("struct rdt_ins {}".format(rdt_ins_name), file=config)
377 print("\t{0}".format(data_l.strip()), file=config)
404 print("\t{0},".format(cpu_brand.strip()), file=config)
427 print("\t\t.bits.b = {}U,".format(bus), file=config)
428 print("\t\t.bits.d = {}U,".format(dev), file=config)
429 print("\t\t.bits.f = {}U,".format(fun), file=config)
[all …]
A Dacpi_platform_h.py50 print("#undef {}".format(s_line.split()[1]), file=config)
51 print("{}".format(s_line.strip()), file=config)
58 print("#undef {}".format(s_line.split()[1]), file=config)
59 print("{}".format(s_line.strip()), file=config)
80 print("{}".format(s_line.strip()), file=config)
113 print("{}".format(s_line), file=config)
120 print("{}".format(s_line.strip()), file=config)
185 print("{}".format(vector.strip()), file=config)
247 print("{}".format(board_cfg_lib.HEADER_LICENSE), file=config)
249 print("{}".format(PLATFORM_HEADER), file=config)
[all …]
A Dboard_info_h.py24 print("#define MAX_VMSIX_ON_MSI_PDEVS_NUM\t{}U".format(bdf_list_len), file=config)
67 print("#define HI_MMIO_SIZE\t\t\t{}UL".format(hex(board_cfg_lib.HI_MMIO_OFFSET)), file=config)
76 print("{0}".format(board_cfg_lib.HEADER_LICENSE), file=config)
80 print("#define MAX_PCPU_NUM\t\t\t{}U".format(max_cpu_num), file=config)
87 …print("#define MAX_HIDDEN_PDEVS_NUM\t\t{}U".format(len(board_cfg_lib.KNOWN_HIDDEN_PDEVS_BOARD_DB[b…
102 print("#define P2SB_BAR_ADDR\t\t\t0x{:X}UL".format(hpa), file=config)
104 print("#define P2SB_BAR_ADDR_GPA\t\t0x{:X}UL".format(gpa), file=config)
A Dpci_devices_h.py30 print(" .pbdf.bits = {{.b = 0x{:02X}U, .d = 0x{:02X}U, .f = 0x{:02X}U}}".format(
40 print("{0}".format(board_cfg_lib.HEADER_LICENSE), file=config)
46 print("{0}".format(PCI_HEADER), file=config)
65 print("{0}".format(PCI_END_HEADER), file=config)
A Dvbar_base_h.py47 raise ValueError("value must be a str: {}".format(type(value)))
55 raise ValueError("not an mmio window: {!r}".format(value))
59 raise TypeError('overlaps() other must be an MmioWindow: {}'.format(type(other)))
115 print("/* TODO: add {} 64bit BAR support */".format(tmp_sub_name), file=config)
125 .format(bar_i, ptdev_mmio_str, bar_val), file=config)
128 .format(align, bar_i, ptdev_mmio_str, bar_val), file=config)
151 raise ValueError("Not enough bar region, last bar region is {}".format(idx))
210 " .vbar_base[0] = {:#x}UL, \\".format(free_bar0.start), file=config)
350 raise ValueError("allocate size cannot be {}".format(size))
352 raise ValueError("No mmio range is specified:{}".format(windowslist))
[all …]
A Dboard_cfg_gen.py48 … "hv.CAPACITIES.MAX_VM_NUM. Its current value is {}.".format(acrn_config_utilities.MAX_VM_NUM)
102 print("Board configurations for {} is generated successfully.".format(board))
104 print("Board configurations for {} is generated failed.".format(board))
128 acrn_config_utilities.print_red("{}: {}".format(err_k, err_v), err=True)
/misc/config_tools/board_inspector/inspectorlib/
A Dunpack.py39 … raise UnpackError("Unpackable.__init__: offset={} but len(data)={}".format(offset, data_size))
127 raise StructError("Internal error: Duplicate Struct field name {}".format(name))
130 fmt = "{:#x}".format
132 fmt = "{!r}".format
134 fmt = fmt.format
136 … raise StructError("Internal error: Expected a format string or callable, but got: {}".format(fmt))
144 …return "{}({})".format(self.__class__.__name__, ", ".join("{}={}".format(k, self.format_field(k)) …
162 return "({})".format(", ".join(fmt_one.format(i) for i in it))
169 return "{} ({})".format(fmt.format(value), table.get(value, default))
174 return "{} ({})".format(fmt.format(value), function(value))
[all …]
A Dcdata.py36 print("{}".format(cls.__name__))
56 return "{:#x}".format(val)
59 return "'{}'".format(val)
62 return "{}".format(val)
106 return "ofs={} ".format(a.offset)
118 return "bits[{}:{}]=".format(hi_bit, lo_bit)
120 return "bit[{}]=".format(lo_bit)
187 return "GUID({})".format(self.uuid)
190 return "{}".format(self.uuid)
199 return '{} ({})'.format(val, guid_str)
[all …]
A Dbitfields.py52 field = "[{0}]".format(msb)
54 field = "[{0}:{1}]".format(msb, lsb)
55 raise OverflowError("Value {value:#x} too big for bitfield {field}".format(**locals()))
/misc/config_tools/board_inspector/cpuparser/
A Dplatformbase.py75 heading = "CPU ID {:#x} -- ".format(self.cpu_id)
76 heading += "CPUID (EAX={:#x}".format(self.leaf)
78 heading += ", ECX={:#x}".format(self.subleaf)
87 return "[{}]".format(msb)
88 return "[{}:{}]".format(msb, lsb)
93 return "{:#x}".format(value)
103 s += " {}".format(inner)
178 heading += "MSR {:#x}".format(self.addr)
183 s += "MSR {:#x}".format(self.addr)
188 s += ' value={:#x}'.format(self.value)
[all …]
/misc/config_tools/acpi_gen/
A Dasl_gen.py46 … lines.append(re.sub(p_xsdt_addr, 'XSDT Address : {0:016X}'.format(ACPI_XSDT_ADDR), line))
133 … lines.append(re.sub(p_start_bus_num, 'Start Bus Number : {0:02X}'.format(0), line))
135 … lines.append(re.sub(p_end_bus_num, 'End Bus Number : {0:02X}'.format(0xff), line))
192 … re.sub(p_flags, '[0004] Flags (decoded below) : {0:08X}'.format(0x1),
226 … '[0001] Processor ID : {0:02X}'.format(0x0),
232 '[0001] Processor ID : {0:02X}'.format(0xFF),
245 lines.append(re.sub(p_ioapic_id, 'I/O Apic ID : {0:02X}'.format(0x01), line))
290 … '[0001] Length : {0:02X}'.format(0x8),
333 lines.append(re.sub(p_start_method, 'Start Method : {0:02X}'.format(0x7), line))
922 print('start to generate ACPI ASL code for VM{}'.format(vm_id))
[all …]
/misc/debug_tools/acrn_crashlog/data/
A Dcrashlogctl88 format=' %-10s %s\n'
92 printf "$format" "enable" "Enable the ACRN crashlog services"
93 printf "$format" "disable" "Disable the ACRN crashlog services"
94 printf "$format" "is-active" "Checks if ACRN crashlog is active"
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/
A DREADME.md56 // 按 schema format 映射默认widget组件,优先级高于 types
58 // format: color
61 // format: time
64 // format: date
67 // format: date-time
/misc/config_tools/board_inspector/extractors/
A D40-acpi-tables.py30 …apic_id\s+{},\s+version\s+\d+,\s+address\s+0x[0-9a-f]+,\s+GSI\s+(\d+)-(\d+)".format(apic_id), line)
60 add_child(cap, "start", "0x{:08x}".format(entry.base))
61 add_child(cap, "end", "0x{:08x}".format(entry.base + entry.size - 1))
100 start = "0x{:016x}".format(entry.address)
101 end = "0x{:016x}".format(entry.address + entry.size - 1)
120 add_child(ssram_node, "start", "0x{:08x}".format(entry.base))
121 add_child(ssram_node, "end", "0x{:08x}".format(entry.base + entry.size - 1))
132 start = "0x{:016x}".format(entry.address)
133 end = "0x{:016x}".format(entry.address + entry.size - 1)
A D30-memory.py16 start = "0x{:016x}".format(e820_entry.start)
17 end = "0x{:016x}".format(e820_entry.end)

Completed in 39 milliseconds

123