/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 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: 42 self.name = '' [all …]
|
H A D | kunit_config.py | 1 # SPDX-License-Identifier: GPL-2.0 18 name: str 21 def __str__(self) -> str: 23 return f'# CONFIG_{self.name} is not set' 24 return f'CONFIG_{self.name}={self.value}' 34 def __init__(self) -> None: 37 def __eq__(self, other: Any) -> bool: 42 def __repr__(self) -> str: 45 def as_entries(self) -> Iterable[KconfigEntry]: 46 for name, value in self._entries.items(): [all …]
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-lenovo-hr855xg2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-present Lenovo 8 /dts-v1/; 10 #include "aspeed-g5.dtsi" 11 #include <dt-bindings/gpio/aspeed-gpio.h> 15 compatible = "lenovo,hr855xg2-bmc", "aspeed,ast2500"; 29 stdout-path = &uart5; 38 reserved-memory { 39 #address-cells = <1>; 40 #size-cells = <1>; [all …]
|
H A D | aspeed-bmc-opp-palmetto.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 4 #include "aspeed-g4.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 9 compatible = "tyan,palmetto-bmc", "aspeed,ast2400"; 12 stdout-path = &uart5; 20 reserved-memory { 21 #address-cells = <1>; 22 #size-cells = <1>; 26 no-map; [all …]
|
H A D | aspeed-bmc-lenovo-hr630.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-present Lenovo 8 /dts-v1/; 10 #include "aspeed-g5.dtsi" 11 #include <dt-bindings/gpio/aspeed-gpio.h> 15 compatible = "lenovo,hr630-bmc", "aspeed,ast2500"; 29 stdout-path = &uart5; 38 reserved-memory { 39 #address-cells = <1>; 40 #size-cells = <1>; [all …]
|
/linux/usr/ |
H A D | gen_init_cpio.c | 1 // SPDX-License-Identifier: GPL-2.0 35 int (*handler)(const char *line); 38 static void push_string(const char *name) in push_string() argument 40 unsigned int name_len = strlen(name) + 1; in push_string() 42 fputs(name, stdout); in push_string() 55 static void push_rest(const char *name) in push_rest() argument 57 unsigned int name_len = strlen(name) + 1; in push_rest() 60 fputs(name, stdout); in push_rest() 81 const char name[] = "TRAILER!!!"; in cpio_trailer() local 97 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_gen_wa_oob.c | 1 // SPDX-License-Identifier: MIT 14 "// SPDX-License-Identifier: MIT\n" \ 33 fprintf(f, "usage: %s <input-rule-file> <generated-c-source-file> <generated-c-header-file>\n", in print_usage() 37 static void print_parse_error(const char *err_msg, const char *line, in print_parse_error() argument 41 err_msg, lineno, line); in print_parse_error() 44 static char *strip(char *line, size_t linelen) in strip() argument 46 while (isspace(*(line + linelen))) in strip() 47 linelen--; in strip() 49 line[linelen - 1] = '\0'; in strip() 51 return line + strspn(line, " \f\n\r\t\v"); in strip() [all …]
|
/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 19 * The maximum size of name and label arrays. 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 27 * @name: the Linux kernel name of this GPIO chip 28 * @label: a functional name for this GPIO chip, such as a product 33 char name[GPIO_MAX_NAME_SIZE]; member 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 [all …]
|
/linux/tools/testing/selftests/gpio/ |
H A D | gpio-sim.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 CONFIGFS_DIR="/sys/kernel/config/gpio-sim" 7 MODULE="gpio-sim" 26 if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then 30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line` 32 for LINE in $LINES; do 33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then 34 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \ 38 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE || \ 39 fail "Unable to remove the line" [all …]
|
/linux/Documentation/arch/arm/samsung/ |
H A D | clksrc-change-registers.awk | 1 #!/usr/bin/awk -f 3 # Copyright 2010 Ben Dooks <ben-linux@fluff.org> 8 # ./clksrc-change-registers.awk arch/arm/plat-s5pc1xx/include/plat/regs-clock.h < src > dst 14 return substr(s, eqat+2, (comat-eqat)-2) 19 return substr(b, 2, length(b)-2) 69 while (getline line < ARGV[1] > 0) { 70 if (line ~ /\#define.*_MASK/ && 71 !(line ~ /USB_SIG_MASK/)) { 72 splitdefine(line, fields) 73 name = fields[0] [all …]
|
/linux/Documentation/admin-guide/gpio/ |
H A D | gpio-sim.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 6 The configfs GPIO Simulator (gpio-sim) provides a way to create simulated GPIO 12 ------------------------ 14 The gpio-sim module registers a configfs subsystem called ``'gpio-sim'``. For 21 **Group:** ``/config/gpio-sim`` 23 This is the top directory of the gpio-sim configfs tree. 25 **Group:** ``/config/gpio-sim/gpio-device`` 27 **Attribute:** ``/config/gpio-sim/gpio-device/dev_name`` 29 **Attribute:** ``/config/gpio-sim/gpio-device/live`` 32 attribute is read-only and allows the user-space to read the platform device [all …]
|
/linux/scripts/ |
H A D | decode_stacktrace.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 #set -x 8 echo " $0 -r <release>" 10 echo " $0 -h" 14 if type llvm-cxxfilt >/dev/null 2>&1 ; then 15 cppfilt=llvm-cxxfilt 18 cppfilt_opts=-i 22 if [[ -z ${LLVM:-} ]]; then 23 UTIL_PREFIX=${CROSS_COMPILE:-} 25 UTIL_PREFIX=llvm- [all …]
|
H A D | get_maintainer.pl | 2 # SPDX-License-Identifier: GPL-2.0 11 # perl scripts/get_maintainer.pl [OPTIONS] -f <file> 23 use open qw(:std :encoding(UTF-8)); 44 my $email_git_since = "1-year-ago"; 45 my $email_hg_since = "-365"; 86 push(@penguin_chief, "Linus Torvalds:torvalds\@linux-foundation.org"); 87 #Andrew wants in on most everything - 2009/01/14 88 #push(@penguin_chief, "Andrew Morton:akpm\@linux-foundation.org"); 104 push(@signature_tags, "Signed-off-by:"); 105 push(@signature_tags, "Reviewed-by:"); [all …]
|
/linux/Documentation/sphinx/ |
H A D | maintainers_include.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8; mode: python -*- 7 maintainers-include 10 Implementation of the ``maintainers-include`` reST-directive. 15 The ``maintainers-include`` reST-directive performs extensive parsing 32 app.add_directive("maintainers-include", MaintainersInclude) 40 u"""MaintainersInclude (``maintainers-include``) directive""" 44 """Parse all the MAINTAINERS lines into ReST for human-readability""" 55 # Field letter to field name mapping. 63 for line in open(path): [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-sim.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 74 guard(mutex)(&chip->lock); in gpio_sim_apply_pull() 76 if (test_bit(offset, chip->request_map) && in gpio_sim_apply_pull() 77 test_bit(offset, chip->direction_map)) { in gpio_sim_apply_pull() 78 if (value == !!test_bit(offset, chip->value_map)) in gpio_sim_apply_pull() 82 * This is fine - it just means, nobody is listening in gpio_sim_apply_pull() 83 * for interrupts on this line, otherwise in gpio_sim_apply_pull() 87 irq = irq_find_mapping(chip->irq_sim, offset); in gpio_sim_apply_pull() 103 /* Change the value unless we're actively driving the line. */ in gpio_sim_apply_pull() 104 if (!test_bit(offset, chip->request_map) || in gpio_sim_apply_pull() [all …]
|
/linux/tools/usb/usbip/libsrc/ |
H A D | names.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * names.c -- USB name database manipulation routines 8 * - names_deinit() is added. 28 char name[1]; member 34 char name[1]; member 40 char name[1]; member 46 char name[1]; member 52 char name[1]; member 58 char name[1]; member 73 return num & (HASHSZ-1); in hashnum() [all …]
|
/linux/tools/perf/Documentation/ |
H A D | perf-probe.txt | 1 perf-probe(1) 4 NAME 5 ---- 6 perf-probe - Define new dynamic tracepoints 9 -------- 11 'perf probe' [options] --add='PROBE' [...] 15 'perf probe' [options] --del='[GROUP:]EVENT' [...] 17 'perf probe' --list[=[GROUP:]EVENT] 19 'perf probe' [options] --line='LINE' 21 'perf probe' [options] --vars='PROBEPOINT' [all …]
|
/linux/samples/cgroup/ |
H A D | memcg_event_listener.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * memcg_event_listener.c - Simple listener of memcg memory.events 27 (length) -= sizeof(*(event)) + (event)->len; \ 54 printf("\tlow: %ld\n", counters->low); in print_memcg_counters() 55 printf("\thigh: %ld\n", counters->high); in print_memcg_counters() 56 printf("\tmax: %ld\n", counters->max); in print_memcg_counters() 57 printf("\toom: %ld\n", counters->oom); in print_memcg_counters() 58 printf("\toom_kill: %ld\n", counters->oom_kill); in print_memcg_counters() 59 printf("\toom_group_kill: %ld\n", counters->oom_group_kill); in print_memcg_counters() 62 static int get_memcg_counter(char *line, const char *name, long *counter) in get_memcg_counter() argument [all …]
|
/linux/Documentation/admin-guide/ |
H A D | dynamic-debug-howto.rst | 9 debug-print code to obtain additional kernel information. 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) 29 NOTE: To actually get the debug-print output on the console, you may 32 Documentation/admin-guide/kernel-parameters.rst. 39 :#> head -n7 /proc/dynamic_debug/control [all …]
|
/linux/arch/um/drivers/ |
H A D | line.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 22 struct line *line = chan->line; in line_interrupt() local 24 if (line) in line_interrupt() 25 chan_interrupt(line, irq); in line_interrupt() 31 * Returns the free space inside the ring buffer of this line. 33 * Should be called while holding line->lock (this does not modify data). 35 static unsigned int write_room(struct line *line) in write_room() argument 39 if (line->buffer == NULL) in write_room() 40 return LINE_BUFSIZE - 1; in write_room() [all …]
|
/linux/Documentation/firmware-guide/acpi/ |
H A D | gpio-properties.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 With _DSD we can now query GPIOs using a name instead of an integer 19 Name (_HID, ...) 21 Name (_CRS, ResourceTemplate () 29 Name (_DSD, Package () 31 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 34 Package () { "reset-gpios", Package () { ^BTH, 1, 1, 0 } }, 35 Package () { "shutdown-gpios", Package () { ^BTH, 0, 0, 0 } }, 42 Package () { "name", Package () { ref, index, pin, active_low }} 61 In our Bluetooth example the "reset-gpios" refers to the second GpioIo() [all …]
|
/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0 11 char *name; member 25 size_t cmp = max(len, strlen(ns->header_name)); in lookup_type() 27 if (!strncmp(ns->header_name, type, cmp)) in lookup_type() 29 ns = ns->next; in lookup_type() 47 ret->header_name = strndup(type, len); in lookup_get() 48 if (ret->header_name == NULL) in lookup_get() 50 ret->next = ns; in lookup_get() 51 ret->counters_nr = 0; in lookup_get() 52 ret->counters = NULL; in lookup_get() [all …]
|
/linux/scripts/kconfig/ |
H A D | conf.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 47 static char line[PATH_MAX]; variable 72 p = str + l - 1; in strip() 74 *p-- = 0; in strip() 118 * randomize_choice_values - randomize choice block 134 struct symbol *sym = menu->sym; in randomize_choice_values() 144 struct symbol *sym = menu->sym; in randomize_choice_values() 147 x--; in randomize_choice_values() 150 sym->def[S_DEF_USER].tri = yes; in randomize_choice_values() [all …]
|
/linux/arch/powerpc/crypto/ |
H A D | ppc-xlate.pl | 2 # SPDX-License-Identifier: GPL-2.0 18 my $name = shift; 19 my $global = \$GLOBALS{$name}; 22 $name =~ s|^[\.\_]||; 25 /aix/ && do { $name = ".$name"; 28 /osx/ && do { $name = "_$name"; 32 && do { $ret = "_GLOBAL($name)"; 37 $ret = ".globl $name\nalign 5\n$name:" if (!$ret); 38 $$global = $name; 51 $arch = ($flavour=~/64/) ? "ppc970-64" : "ppc970" if ($arch eq "any"); [all …]
|
/linux/tools/perf/util/ |
H A D | disasm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <subcmd/run-command.h> 15 #include "annotate-data.h" 16 #include "build-id.h" 21 #include "dwarf-regs.h" 33 /* These can be referred from the arch-dependent code */ 50 static int disasm_line__parse(char *line, const char **namep, char **rawp); 52 static char *expand_tabs(char *line, char **storage, size_t *storage_len); 56 regcomp(&file_lineno, "^/[^:]+:([0-9]+)", REG_EXTENDED); in symbol__init_regexpr() 64 if (arch->nr_instructions_allocated == 0 && arch->instructions) in arch__grow_instructions() [all …]
|