| /openbmc/qemu/target/hexagon/ |
| H A D | gen_printinsn.py | 4 ## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. 43 opswithequal_re = "[-+^&|!<>=]?=" 45 assignment_re = "[-+^&|]?=" 48 # assignment, spaces will be added around it, unless it's enclosed within 49 # parentheses, or spaces are already present. 63 pc -= 1 68 # match is also an assignment operator, add spaces around it if 82 if am and len(am.group(0)) == me - ms: 83 # Don't add spaces if they are already there. 84 if ms > 0 and s[ms - 1] != " ": [all …]
|
| /openbmc/openbmc-test-automation/lib/ |
| H A D | var_funcs.py | 40 The print-out of the resulting var dictionary is: 249 key = re.sub(r" ", "_", key) 288 headers[0][0]: content-length 291 headers[1][0]: x-xss-protection 301 [content-length]: 559 302 [x-xss-protection]: 1; mode=block 304 Another example containing a sub-list (see process_indent description below): 313 …Note that the 2 qualifications for containing a sub-list are met: 1) 'Additional Device Support' h… 328 …process_indent This indicates that indented sub-dictionaries and sub-lists are to… 329 … processed as such. An entry may have a sub-dict or sub-list if 1) It has [all …]
|
| H A D | gen_misc.py | 86 - It will print an "Issuing: shutil.rmtree" message. 94 print_string = re.sub( 97 gp.qprintn(re.sub(r", quiet[ ]?=.*", ")", print_string)) 106 - It will print an "Issuing: os.chdir" message. 213 "Programmer error - The mod_name passed to" 263 "Programmer error - The mod_name passed to" 312 # Make the property names case-sensitive. 332 … any that begin with 0 or more spaces followed by the pound sign ("#"). 408 return re.sub("'", "'\\''", buffer) 421 # Spaces [all …]
|
| H A D | gen_print.py | 47 os.path.normpath(re.sub("/" + pgm_name, "", pgm_file_path)) + os.path.sep 160 Return the number of spaces at the beginning of the line. 163 return len(line) - len(line.lstrip(" ")) 186 … with the given example, if arg_num is -2 the 2nd parm to the left of the 187 … "=" ("rc" in this case) should be returned. If arg_num is -1, the 1st 189 … If arg_num is less than -2, an entire dictionary is returned. The keys 190 to the dictionary for this example would be -2 and -1. 235 'Programmer error - Variable "stack_frame_ix" has an' 268 "Programmer error - The caller has asked for" 296 line_ix = cur_line_no - source_line_num - 1 [all …]
|
| H A D | utils.py | 66 # The user has not set bmc_power_policy_method via a -v parm so we will 98 Using old style functions, callers might call like this with a hard- 129 [local_time]: Fri 2017-11-03 152756 UTC 131 [universal_time]: Fri 2017-11-03 152756 UTC 133 [rtc_time]: Fri 2016-05-20 163403 143 # Local time: Fri 2017-11-03 15:27:56 UTC 144 # Universal time: Fri 2017-11-03 15:27:56 UTC 145 # RTC time: Fri 2016-05-20 16:34:03 185 [1k-blocks]: 247120 192 [1k-blocks]: 247120 [all …]
|
| /openbmc/u-boot/scripts/ |
| H A D | kernel-doc | 2 # SPDX-License-Identifier: GPL-2.0 10 ## Copyright (C) 2005-2012 Randy Dunlap ## 19 # 18/01/2001 - Cleanups 22 # -- huggie@earth.li 24 # 27/06/2001 - Allowed whitespace after initial "/**" and 26 # -- Christian Kreibich <ck@whoop.org> 29 # - add perldoc documentation 30 # - Look more closely at some of the scarier bits :) 32 # 26/05/2001 - Support for separate source and object trees. 36 # 23/09/2001 - Added support for typedefs, structs, enums and unions [all …]
|
| H A D | cleanpatch | 1 #!/usr/bin/perl -w 3 # Clean a patch file -- or directory of patch files -- of stealth whitespace. 13 # Clean up space-tab sequences, either by removing spaces or 15 sub clean_space_tabs($) 29 my $ntab = ($npos >> 3) - ($pos >> 3); 54 sub strwidth($) { 83 if ($a =~ /^-/) { 84 if ($a eq '-width' || $a eq '-w') { 87 print STDERR "Usage: $name [-width #] files...\n"; 98 if (! -f $f) { [all …]
|
| H A D | checkpatch.pl | 5 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com> 63 sub help { 71 -q, --quiet quiet 72 --no-tree run without a kernel tree 73 --no-signoff do not check for 'Signed-off-by' line 74 --patch treat FILE as patchfile (default) 75 --emacs emacs compile window format 76 --terse one line per report 77 --showfile emit diffed file position, not input file position 78 -g, --git treat FILE as a single commit or git revision range [all …]
|
| H A D | get_maintainer.pl | 9 # perl scripts/get_maintainer.pl [OPTIONS] -f <file> 40 my $email_git_since = "1-year-ago"; 41 my $email_hg_since = "-365"; 89 push(@signature_tags, "Signed-off-by:"); 90 push(@signature_tags, "Reviewed-by:"); 91 push(@signature_tags, "Acked-by:"); 95 # rfc822 email address - preloaded methods go here. 97 my $rfc822_char = '[\\000-\\377]'; 99 # VCS command support: class-like functions and strings 105 "available" => '(which("git") ne "") && (-e ".git")', [all …]
|
| /openbmc/qemu/scripts/ |
| H A D | kernel-doc | 2 # SPDX-License-Identifier: GPL-2.0-only 10 ## Copyright (C) 2005-2012 Randy Dunlap ## 19 # 18/01/2001 - Cleanups 22 # -- huggie@earth.li 24 # 27/06/2001 - Allowed whitespace after initial "/**" and 26 # -- Christian Kreibich <ck@whoop.org> 29 # - add perldoc documentation 30 # - Look more closely at some of the scarier bits :) 32 # 26/05/2001 - Support for separate source and object trees. 36 # 23/09/2001 - Added support for typedefs, structs, enums and unions [all …]
|
| H A D | checkpatch.pl | 5 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com> 42 sub help { 49 $P [OPTION]... [GIT-REV-LIST] 54 -q, --quiet quiet 55 --no-tree run without a qemu tree 56 --no-signoff do not check for 'Signed-off-by' line 57 --patch treat FILE as patchfile 58 --branch treat args as GIT revision list 59 --emacs emacs compile window format 60 --terse one line per report [all …]
|
| H A D | get_maintainer.pl | 9 # perl scripts/get_maintainer.pl [OPTIONS] -f <file> 36 my $email_git_since = "1-year-ago"; 37 my $email_hg_since = "-365"; 68 push(@signature_tags, "Signed-off-by:"); 69 push(@signature_tags, "Reviewed-by:"); 70 push(@signature_tags, "Acked-by:"); 74 # rfc822 email address - preloaded methods go here. 76 my $rfc822_char = '[\\000-\\377]'; 78 # VCS command support: class-like functions and strings 84 "available" => '(which("git") ne "") && (-e ".git")', [all …]
|
| /openbmc/qemu/scripts/qapi/ |
| H A D | common.py | 5 # Copyright (c) 2013-2018 Red Hat Inc. 12 # See the COPYING file in the top-level directory. 30 def camel_to_upper(value: str) -> str: 36 ENUMName -> ENUM_NAME 37 EnumName1 -> ENUM_NAME1 38 ENUM_NAME -> ENUM_NAME 39 ENUM_NAME1 -> ENUM_NAME1 40 ENUM_Name2 -> ENUM_NAME2 41 ENUM24_Name -> ENUM24_NAME 54 if len(ret) > 2 and ret[-2].isalnum(): [all …]
|
| /openbmc/phosphor-user-manager/ |
| H A D | json_serializer.hpp | 4 #include <phosphor-logging/elog-errors.hpp> 5 #include <phosphor-logging/elog.hpp> 6 #include <phosphor-logging/lg2.hpp> 25 return std::views::split('/') | std::views::transform([](auto&& sub) { in stringSplitter() argument 26 return std::string(sub.begin(), sub.end()); in stringSplitter() 97 file << jsonData.dump(4); // Pretty print with 4 spaces in store()
|
| /openbmc/qemu/include/hw/i386/ |
| H A D | intel_iommu.h | 2 * QEMU emulation of an Intel IOMMU (VT-d) 25 #include "hw/i386/x86-iommu.h" 26 #include "qemu/iova-tree.h" 29 #define TYPE_INTEL_IOMMU_DEVICE "intel-iommu" 32 #define TYPE_INTEL_IOMMU_MEMORY_REGION "intel-iommu-iommu-memory-region" 49 #define VTD_HAW_MASK(aw) ((1ULL << (aw)) - 1) 67 /* Context-Entry */ 137 * registered drivers (e.g. vfio-pci) on either: 140 * VFIO_IOMMU_MAP_DMA, -EEXIST will trigger), or, 144 * That accuracy is not required for UNMAP-only notifiers, but it is a [all …]
|
| /openbmc/phosphor-mrw-tools/ |
| H A D | gen_led_groups.pl | 41 # These are generally front-fault-led and rear-fault-led 52 my $targetObj = Targets->new; 55 $targetObj->{debug} = 1; 60 $targetObj->{force} = 1; 63 $targetObj->loadXML($serverwizFile); 71 $invHash{$item->{TARGET}} = $item->{OBMC_NAME}; 84 foreach my $target (sort keys %{$targetObj->getAllTargets()}) 87 if($targetObj->isBadAttribute($target, "MRW_TYPE")) 92 # Return true if not populated -or- not present 93 if("LED" eq $targetObj->getMrwType($target)) [all …]
|
| /openbmc/openbmc-test-automation/ |
| H A D | CONTRIBUTING.md | 4 work-in-progress, feel free to propose changes. 8 - Reference 9 …ithub.com/openbmc/docs/blob/master/CONTRIBUTING.md#submitting-changes-via-gerrit-server-to-openbmc) 10 - Reference 11 …](https://github.com/openbmc/docs/blob/master/CONTRIBUTING.md#submitting-changes-via-gerrit-server) 15 - Reference 16 …t Messages](https://github.com/openbmc/docs/blob/master/CONTRIBUTING.md#formatting-commit-messages) 20 - [Redfish Coding Guidelines](docs/redfish_coding_guidelines.md) 24 - For this project, we will write Robot keyword definitions in either Robot or 29 …- [Quit Writing Ugly Robot Code](https://esalagea.wordpress.com/2014/11/24/robot-framework-quit-wr… [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 020 | 79 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G 127 'inject-error': [{ 137 # Filter out newlines and collapse spaces 138 backing=$(echo "$backing" | tr -d '\n' | tr -s ' ') 140 _make_test_img -b "$backing" -F $IMGFMT 142 # Just write anything so committing will not be a no-op 143 $QEMU_IO -c 'writev 0 64k' "$TEST_IMG" | _filter_qemu_io 150 echo 'Testing commit in sub-directory with relative filenames' 158 TEST_IMG="subdir/t.$IMGFMT.mid" _make_test_img -b "t.$IMGFMT.base" -F $IMGFMT 159 TEST_IMG="subdir/t.$IMGFMT" _make_test_img -b "t.$IMGFMT.mid" -F $IMGFMT [all …]
|
| /openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/files/ |
| H A D | ServiceAdmin.pm | 30 # Red Hat-created system called systemd for Fedora 15 and 16 (so far). 50 # &getGlobal('DIR', "rcd") -- directory where the rc_.d subdirs can be found 51 # &getGlobal('DIR', "initd") -- directory the rc_.d directories link to 56 # B_chkconfig_on("bastille-firewall") 63 sub B_chkconfig_on { 78 if (-x $filetolink) 89 # On SUSE, chkconfig-based rc scripts have been replaced with a whole different 96 if ( -e (&getGlobal('DIR', "initd") . "/$startup_script") ) { 121 # # chkconfig: - 10 90 123 if ($line =~ /^#\s*chkconfig:\s*([-\d]+)\s*(\d+)\s*(\d+)/ ) { [all …]
|
| /openbmc/openbmc/poky/documentation/ref-manual/ |
| H A D | structure.rst | 1 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK 15 ":ref:`dev-manual/start:locating yocto project source files`" 21 names that contain spaces. Be sure that the Source Directory you use 24 .. _structure-core: 26 Top-Level Core Components 29 This section describes the top-level components of the :term:`Source Directory`. 31 .. _structure-core-bitbake: 34 ------------ 45 environment setup script (i.e. :ref:`structure-core-script`) places 52 .. _structure-core-build: [all …]
|
| /openbmc/qemu/system/ |
| H A D | ioport.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 31 #include "system/address-spaces.h" 42 #define TYPE_MEMORY_REGION_PORTIO_LIST "memory-region-portio-list" 47 return -1ULL; in OBJECT_DECLARE_SIMPLE_TYPE() 131 piolist->ports = callbacks; in portio_list_init() 132 piolist->nr = 0; in portio_list_init() 133 piolist->regions = g_new0(MemoryRegion *, n); in portio_list_init() 134 piolist->address_space = NULL; in portio_list_init() 135 piolist->addr = 0; in portio_list_init() 136 piolist->opaque = opaque; in portio_list_init() [all …]
|
| /openbmc/qemu/docs/devel/ |
| H A D | decodetree.rst | 18 immediates, and sub-opcodes. 21 *formats*, each of which may be re-used to simplify further definitions. 33 For *unnamed_field*, the first number is the least-significant bit position 67 +---------------------------+---------------------------------------------+ 71 +---------------------------+---------------------------------------------+ 73 +---------------------------+---------------------------------------------+ 77 +---------------------------+---------------------------------------------+ 80 +---------------------------+---------------------------------------------+ 82 | !function=expand_sz_imm | extract(a->sz, 0, 3)) | 83 +---------------------------+---------------------------------------------+ [all …]
|
| H A D | multi-process.rst | 1 Multi-process QEMU 6 This is the design document for multi-process QEMU. It does not 31 ------------- 34 VM control point, where VMs can be created, migrated, re-configured, and 40 A multi-process QEMU 43 A multi-process QEMU involves separating QEMU services into separate 51 A QEMU control process would remain, but in multi-process mode, will 53 provide the user interface to hot-plug devices or live migrate the VM. 55 A first step in creating a multi-process QEMU is to separate IO services 62 ---------------------- [all …]
|
| /openbmc/openbmc-test-automation/gui/gui_test/settings_menu/ |
| H A D | test_date_and_time_sub_menu.robot | 3 Documentation Test OpenBMC GUI "Date and time" sub-menu of "Settings". 16 ${xpath_select_manual} //*[@data-test-id="dateTime-radio-configureManual"] 17 ${xpath_select_ntp} //*[@data-test-id="dateTime-radio-configureNTP"] 18 ${xpath_manual_date} //input[@data-test-id="dateTime-input-manualDate"] 19 ${xpath_manual_time} //input[@data-test-id="dateTime-input-manualTime"] 20 ${xpath_ntp_server1} //input[@data-test-id="dateTime-input-ntpServer1"] 21 ${xpath_ntp_server2} //input[@data-test-id="dateTime-input-ntpServer2"] 22 ${xpath_ntp_server3} //input[@data-test-id="dateTime-input-ntpServer3"] 23 ${xpath_select_save_settings} //button[@data-test-id="dateTime-button-saveSettings"] 100 ${redfish_date}= Convert Date ${redfish_date_time} result_format=%Y-%m-%d [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/ |
| H A D | data_smart.py | 15 # SPDX-License-Identifier: GPL-2.0-only 33 __setvar_regexp__ = re.compile(r'(?P<base>.*?)(?P<keyword>:append|:prepend|:remove)(:(?P<add>[^A-Z]… 34 __expand_var_regexp__ = re.compile(r"\${[a-zA-Z0-9\-_+./~:]+}") 37 __override_regexp__ = re.compile(r'[a-z0-9]+') 109 key = match.group()[2:-1] 124 code = match.group()[3:-1] 196 chain = "\nThe variable dependency chain for the failure is: " + " -> ".join(self.varlist) 231 spaces = " " * (level - 1) 232 o.write("# %s%s" % (spaces, self.filename)) 316 commentVal = re.sub('\n', '\n#', str(oval)) [all …]
|