/openbmc/openbmc/meta-openembedded/contrib/ |
H A D | oe-stylize.py | 11 - add the others OpenEmbedded variables commonly used: 12 - parse command arguments and print usage on misuse 13 . prevent giving more than one .bb file in arguments 14 - write result to a file 15 - backup the original .bb file 16 - make a diff and ask confirmation for patching ? 17 - do not use startswith only: 19 - count rule breaks and displays them in the order frequence 30 # The standard set of variables often found in .bb files in the preferred order 213 varRegexp = r'^([a-zA-Z_0-9${}:-]*)([ \t]*)([+.:]?=[+.]?)([ \t]*)([^\t]+)' [all …]
|
/openbmc/openbmc/poky/scripts/contrib/ |
H A D | convert-srcuri.py | 7 # SPDX-License-Identifier: GPL-2.0-only 22 def matchline(line): argument 23 if "MIRROR" in line or ".*" in line or "GNOME_GIT" in line: 28 if "distro_alias.inc" in fn or "linux-yocto-custom.bb" in fn: 34 for line in old_file: 35 … if ("git://" in line or "gitsm://" in line) and "branch=" not in line and matchline(line): 36 if line.endswith('"\n'): 37 line = line.replace('"\n', ';branch=master"\n') 38 elif re.search('\s*\\\\$', line): 39 line = re.sub('\s*\\\\$', ';branch=master \\\\', line) [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/broadwell/ |
H A D | uncore-cache.json | 3 … "BriefDescription": "L3 Lookup any request that access cache and found line in E or S-state", 7 … "PublicDescription": "L3 Lookup any request that access cache and found line in E or S-state.", 12 "BriefDescription": "L3 Lookup any request that access cache and found line in I-state", 16 "PublicDescription": "L3 Lookup any request that access cache and found line in I-state.", 21 "BriefDescription": "L3 Lookup any request that access cache and found line in M-state", 25 "PublicDescription": "L3 Lookup any request that access cache and found line in M-state.", 30 "BriefDescription": "L3 Lookup any request that access cache and found line in MESI-state", 34 … "PublicDescription": "L3 Lookup any request that access cache and found line in MESI-state.", 39 … "BriefDescription": "L3 Lookup read request that access cache and found line in E or S-state", 43 … "PublicDescription": "L3 Lookup read request that access cache and found line in E or S-state.", [all …]
|
/openbmc/u-boot/tools/patman/ |
H A D | patchstream.py | 1 # SPDX-License-Identifier: GPL-2.0+ 17 re_remove = re.compile('^BUG=|^TEST=|^BRANCH=|^Change-Id:|^Review URL:' 18 '|Reviewed-on:|Commit-\w*:') 20 # Lines which are allowed after a TEST= line 21 re_allowed_after_test = re.compile('^Signed-off-by:') 24 re_signoff = re.compile('^Signed-off-by: *(.*)') 27 re_cover = re.compile('^Cover-letter:') 30 re_cover_cc = re.compile('^Cover-letter-cc: *(.*)') 33 re_series_tag = re.compile('^Series-([a-z-]*): *(.*)') 36 re_commit_tag = re.compile('^Commit-([a-z-]*): *(.*)') [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/skylake/ |
H A D | uncore-cache.json | 3 … "BriefDescription": "L3 Lookup any request that access cache and found line in E or S-state", 7 … "PublicDescription": "L3 Lookup any request that access cache and found line in E or S-state.", 12 "BriefDescription": "L3 Lookup any request that access cache and found line in I-state", 16 "PublicDescription": "L3 Lookup any request that access cache and found line in I-state.", 21 "BriefDescription": "L3 Lookup any request that access cache and found line in M-state", 25 "PublicDescription": "L3 Lookup any request that access cache and found line in M-state.", 30 "BriefDescription": "L3 Lookup any request that access cache and found line in MESI-state", 34 … "PublicDescription": "L3 Lookup any request that access cache and found line in MESI-state.", 39 … "BriefDescription": "L3 Lookup read request that access cache and found line in E or S-state", 43 … "PublicDescription": "L3 Lookup read request that access cache and found line in E or S-state.", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/ivybridge/ |
H A D | uncore-cache.json | 3 … "BriefDescription": "L3 Lookup any request that access cache and found line in E or S-state.", 11 "BriefDescription": "L3 Lookup any request that access cache and found line in I-state.", 19 "BriefDescription": "L3 Lookup any request that access cache and found line in M-state.", 27 "BriefDescription": "L3 Lookup any request that access cache and found line in MESI-state.", 35 …Description": "L3 Lookup external snoop request that access cache and found line in E or S-state.", 43 …BriefDescription": "L3 Lookup external snoop request that access cache and found line in I-state.", 51 …BriefDescription": "L3 Lookup external snoop request that access cache and found line in M-state.", 59 …efDescription": "L3 Lookup external snoop request that access cache and found line in MESI-state.", 67 … "BriefDescription": "L3 Lookup read request that access cache and found line in E or S-state.", 75 "BriefDescription": "L3 Lookup read request that access cache and found line in I-state.", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/sandybridge/ |
H A D | uncore-cache.json | 3 … "BriefDescription": "L3 Lookup any request that access cache and found line in E or S-state.", 11 "BriefDescription": "L3 Lookup any request that access cache and found line in I-state.", 19 "BriefDescription": "L3 Lookup any request that access cache and found line in M-state.", 27 "BriefDescription": "L3 Lookup any request that access cache and found line in MESI-state.", 35 …Description": "L3 Lookup external snoop request that access cache and found line in E or S-state.", 43 …BriefDescription": "L3 Lookup external snoop request that access cache and found line in I-state.", 51 …BriefDescription": "L3 Lookup external snoop request that access cache and found line in M-state.", 59 …efDescription": "L3 Lookup external snoop request that access cache and found line in MESI-state.", 67 … "BriefDescription": "L3 Lookup read request that access cache and found line in E or S-state.", 75 "BriefDescription": "L3 Lookup read request that access cache and found line in I-state.", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/haswell/ |
H A D | uncore-cache.json | 3 … "BriefDescription": "L3 Lookup any request that access cache and found line in E or S-state.", 11 "BriefDescription": "L3 Lookup any request that access cache and found line in I-state.", 19 "BriefDescription": "L3 Lookup any request that access cache and found line in M-state.", 27 "BriefDescription": "L3 Lookup any request that access cache and found line in MESI-state.", 35 …Description": "L3 Lookup external snoop request that access cache and found line in E or S-state.", 43 …BriefDescription": "L3 Lookup external snoop request that access cache and found line in I-state.", 51 …BriefDescription": "L3 Lookup external snoop request that access cache and found line in M-state.", 59 …efDescription": "L3 Lookup external snoop request that access cache and found line in MESI-state.", 67 … "BriefDescription": "L3 Lookup read request that access cache and found line in E or S-state.", 75 "BriefDescription": "L3 Lookup read request that access cache and found line in I-state.", [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | overlayfs.py | 4 # SPDX-License-Identifier: MIT 12 def getline_qemu(out, line): argument 13 for l in out.split('\n'): 14 if line in l: 17 def getline(res, line): argument 18 return getline_qemu(res.output, line) 25 OVERLAYFS_MOUNT_POINT[mnt-overlay] = "/mnt/overlay" 32 Expected: Fail when either systemd or overlayfs are not in DISTRO_FEATURES 37 IMAGE_INSTALL:append = " overlayfs-user" 44 self.write_recipeinc('overlayfs-user', overlayfs_recipe_append) [all …]
|
/openbmc/u-boot/tools/ |
H A D | rkmux.py | 8 # pdftotext -layout /path/to/rockchip-3288-trm.pdf /tmp/asc 13 # It will create output suitable for putting in a header file, with SHIFT and 14 # MASK values for each bitfield in the register. 29 [x.strip() for x in cols]) 58 self.re_sel = re.compile("[1-9]'b([01]+): (.*)") 78 if field in ['reserved', 'reserve', 'write_enable', 'write_mask']: 81 field = field[:-4] 83 field = field[:-6] 85 field = field[:-5] 90 if ':' in regfield.bits: [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
H A D | nv10.c | 7 * "Software"), to deal in the Software without restriction, including 14 * next paragraph) shall be included in all copies or substantial 20 * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE 21 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 22 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 29 nv10_gpio_sense(struct nvkm_gpio *gpio, int line) in nv10_gpio_sense() argument 31 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_sense() 32 if (line < 2) { in nv10_gpio_sense() 33 line = line * 16; in nv10_gpio_sense() [all …]
|
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/files/ |
H A D | FileContent.pm | 39 # pattern $pattern is present in the file. This lets us completely redo 40 # a file, if it isn't the one we put in place on a previous run... 43 # so that it makes backups and only modifies files when we're not in "-v" 64 while (my $line = <BLANK_OLD>) { 66 push @lines,$line; 67 if ($line =~ $pattern) { 74 while ( my $line = shift @lines ) { 75 &B_print(*BLANK_NEW,$line); 94 # in the file matches $pattern. The $line_to_insert will be placed 95 # immediately after $line_to_follow, if it exists. If said line does not [all …]
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | copy_buildsystem.py | 4 # SPDX-License-Identifier: GPL-2.0-only 12 # e.g.: ".*-downloads closed-.*" 25 …cmd = "tar --exclude='.git' --exclude='__pycache__' --xattrs --xattrs-include='*' -cf - -C %s -p .… 26 | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, dest) 36 self.layerdirs = [os.path.abspath(pth) for pth in d.getVar('BBLAYERS').split()] 42 # Copy in all metadata layers + bitbake (as repositories) 50 # The bitbake build system uses the meta-skeleton layer as a layout 52 # Add the meta-skeleton layer to be included as part of the eSDK installation 53 layers.append(os.path.join(corebase, 'meta-skeleton')) 56 for layer_exclude in self.layers_exclude: [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/goldmontplus/ |
H A D | frontend.json | 35 …"BriefDescription": "References per ICache line. This event counts differently than Intel processo… 38 …in an ICache Line. The event strives to count on a cache line basis, so that multiple fetches to … 43 …"BriefDescription": "References per ICache line that are available in the ICache (hit). This event… 46 …in an ICache Line and that cache line is in the ICache (hit). The event strives to count on a cac… 51 …"BriefDescription": "References per ICache line that are not available in the ICache (miss). This … 54 …in an ICache Line and that cache line is not in the ICache (miss). The event strives to count on … 62 … read from the MSROM. The most common case that this counts is when a micro-coded instruction is …
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/goldmont/ |
H A D | frontend.json | 35 …"BriefDescription": "References per ICache line. This event counts differently than Intel processo… 38 …in an ICache Line. The event strives to count on a cache line basis, so that multiple fetches to … 43 …"BriefDescription": "References per ICache line that are available in the ICache (hit). This event… 46 …in an ICache Line and that cache line is in the ICache (hit). The event strives to count on a cac… 51 …"BriefDescription": "References per ICache line that are not available in the ICache (miss). This … 54 …in an ICache Line and that cache line is not in the ICache (miss). The event strives to count on … 62 … read from the MSROM. The most common case that this counts is when a micro-coded instruction is …
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | dev-sliced-vbi.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 10 VBI stands for Vertical Blanking Interval, a gap in the sequence of 15 Sliced VBI devices use hardware to demodulate data transmitted in the 17 :ref:`raw VBI interface <raw-vbi>`. The data is passed as short 18 packets of fixed size, covering one scan line each. The number of 36 respectively, in the ``capabilities`` field of struct 51 .. _sliced-vbi-format-negotitation: 63 services it can identify on a given line are limited. For example on PAL 64 line 16 the hardware may be able to look for a VPS or Teletext signal, 81 hardware must be told which VBI service to expect on each scan line. Not [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | dynamic-debug-howto.rst | 9 debug-print code to obtain additional kernel information. 16 * a Catalog of all *prdbgs* in your kernel. 22 - source filename 23 - function name 24 - line number (including ranges of line numbers) 25 - module name 26 - format string 27 - class name (as known/declared by each module) 32 You can view the currently configured behaviour in the *prdbg* catalog:: 34 :#> head -n7 /proc/dynamic_debug/control [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | chan_kern.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) 27 return -ENODEV; in not_configged_open() 40 return -EIO; in not_configged_read() 47 return -EIO; in not_configged_write() 54 return -EIO; in not_configged_console_write() 62 return -ENODEV; in not_configged_window_size() 88 if (chan->opened) in open_one_chan() 91 if (chan->ops->open == NULL) in open_one_chan() 93 else fd = (*chan->ops->open)(chan->input, chan->output, chan->primary, in open_one_chan() [all …]
|
/openbmc/linux/scripts/ |
H A D | show_delta | 2 # SPDX-License-Identifier: GPL-2.0-only 20 the kernel command line option "time" is specified. When run with no 22 each printk line and the next. When run with the '-b' option, all times 23 are relative to a single (base) point in time. 26 -h Show this usage help. 27 -b <base> Specify a base for time references. 29 If it is a string, the first message line 31 line) is used as the time reference. 34 $ show_delta -b NET4 timefile 36 will show times relative to the line in the kernel output [all …]
|
/openbmc/openbmc-build-scripts/config/gitlint/ |
H A D | block_comment.py | 8 name = "body-max-line-length-with-exceptions" 11 options_spec = [IntOption("line-length", 80, "Max line length")] 12 line_length_violation_message = """Line exceeds max length ({0}>{1}). 14 1. Put logs or shell script in a quoted section with triple quotes (''') 16 2. Put a long link at the bottom in a footnote. 18 Line that was too long: 20 tabs_violation_message = "Line contains hard tab characters (\\t)" 24 for line in commit.message.body: 25 # allow a quoted string to be over the line limit 27 line.startswith("'''") [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | opkg-query-helper.py | 9 # SPDX-License-Identifier: GPL-2.0-only 21 for arg in sys.argv[1:]: 22 if arg == '-a': 24 elif arg == '-f': 26 elif arg == '-v': 36 for line in fileinput.input(args): 37 line = line.rstrip() variable 38 if ': ' in line: 39 if line.startswith("Package:"): 40 pkg = line.split(": ")[1] [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 3 * <linux/gpio.h> - userspace ABI for the GPIO character devices 21 * Must be a multiple of 8 to ensure 32/64-bit alignment of structs. 26 * struct gpiochip_info - Information about a certain GPIO chip 41 * Must be no greater than 64, as bitmaps are restricted here to 64-bits 42 * for simplicity, and a multiple of 2 to ensure 32/64-bit alignment of 48 * The maximum number of configuration attributes associated with a line 54 * enum gpio_v2_line_flag - &struct gpio_v2_line_attribute.flags values 55 * @GPIO_V2_LINE_FLAG_USED: line is not available for request 56 * @GPIO_V2_LINE_FLAG_ACTIVE_LOW: line active state is physical low [all …]
|
/openbmc/qemu/scripts/qapi/ |
H A D | parser.py | 1 # -*- coding: utf-8 -*- 6 # Copyright (c) 2013-2019 Red Hat Inc. 11 # Marc-André Lureau <marcandre.lureau@redhat.com> 15 # See the COPYING file in the top-level directory. 38 # pylint: disable=cyclic-import 39 # TODO: Remove cycle. [schema -> expr -> parser -> schema] 48 # pylint: disable=too-few-public-methods 62 for ch in parser.src[parser.line_pos:parser.pos]: 74 Parse a JSON-esque schema file and process directives. See 75 qapi-code-gen.rst section "Schema Syntax" for the exact syntax. [all …]
|
/openbmc/bmcweb/scripts/ |
H A D | replace_logs.py | 7 This script is intended to aid in the replacement of bmcweb log lines from 12 It is intended to be a 99% correct tool, and in some cases, some amount of 16 ptrs need to be wrapped in logPtr(). This script tries to do the common 20 in the args section 22 arguments that were previously build by in-line operator+ construction of 23 strings (for example "foo" + bar), need to be formatted in the arguments 26 After the script has been run, remember to reformat with clang-format 35 ["git", "-C", os.path.join(SCRIPT_DIR, ".."), "grep", "-l", "BMCWEB_LOG_"] 40 for filename in filenames: 46 # Normalize all the log statements to a single line [all …]
|
/openbmc/linux/tools/testing/kunit/ |
H A D | kunit_parser.py | 1 # SPDX-License-Identifier: GPL-2.0 4 # results with reader-friendly format. Stores and returns test results in a 25 results within a test log are stored in a main Test object as 29 status : TestStatus - status of the test 30 name : str - name of the test 31 expected_count : int - expected number of subtests (0 if single 33 subtests : List[Test] - list of subtests 34 log : List[str] - log of KTAP lines that correspond to the test 35 counts : TestCounts - counts of the test statuses and errors of 39 def __init__(self) -> None: [all …]
|