| /linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ | 
| H A D | mq.json | 4 	    "name": "Add mq Qdisc to multi-queue device (4 queues)",18 	    "matchPattern": "qdisc [a-zA-Z0-9_]+ 0: parent 1:[1-4]",
 26 	    "name": "Add mq Qdisc to multi-queue device (256 queues)",
 40 	    "matchPattern": "qdisc [a-zA-Z0-9_]+ 0: parent 1:[1-9,a-f][0-9,a-f]{0,2}",
 63 	    "matchPattern": "qdisc [a-zA-Z0-9_]+ 0: parent 1:[1-4]",
 70 	    "id": "128a",
 85 	    "matchPattern": "qdisc [a-zA-Z0-9_]+ 0: parent 1:[1-4]",
 109 	    "matchPattern": "qdisc [a-zA-Z0-9_]+ 0: parent 1:[1-4]",
 117 	    "name": "Add mq Qdisc to single-queue device",
 131 	    "matchPattern": "qdisc [a-zA-Z0-9_]+ 0: parent 1:[1-4]",
 [all …]
 
 | 
| /linux/scripts/ | 
| H A D | markup_oops.pl | 2 # SPDX-License-Identifier: GPL-2.0-only22 	'cross-compile|c=s'	=> \$cross_compile,
 28 	my $kerver = `uname -r`;
 49 	if ($line =~ /EAX: ([0-9a-f]+) EBX: ([0-9a-f]+) ECX: ([0-9a-f]+) EDX: ([0-9a-f]+)/) {
 55 	if ($line =~ /ESI: ([0-9a-f]+) EDI: ([0-9a-f]+) EBP: ([0-9a-f]+) ESP: ([0-9a-f]+)/) {
 60 	if ($line =~ /RAX: ([0-9a-f]+) RBX: ([0-9a-f]+) RCX: ([0-9a-f]+)/) {
 65 	if ($line =~ /RDX: ([0-9a-f]+) RSI: ([0-9a-f]+) RDI: ([0-9a-f]+)/) {
 70 	if ($line =~ /RBP: ([0-9a-f]+) R08: ([0-9a-f]+) R09: ([0-9a-f]+)/) {
 74 	if ($line =~ /R10: ([0-9a-f]+) R11: ([0-9a-f]+) R12: ([0-9a-f]+)/) {
 79 	if ($line =~ /R13: ([0-9a-f]+) R14: ([0-9a-f]+) R15: ([0-9a-f]+)/) {
 [all …]
 
 | 
| H A D | headers_install.sh | 2 # SPDX-License-Identifier: GPL-2.04 if [ $# -ne 2 ]
 24 trap 'rm -f $OUTFILE $TMPFILE' EXIT
 26 # SPDX-License-Identifier with GPL variants must have "WITH Linux-syscall-note"
 27 if [ -
 [all...]
 | 
| H A D | bootgraph.pl | 2 # SPDX-License-Identifier: GPL-2.0-only13 # This script turns a dmesg output into a SVG graphic that shows which
 34 2) perl scripts/bootgraph.pl -h
 37 	-header	Insert kernel version and date
 70 	if ($line =~ /([0-9\.]+)\] calling  ([a-zA-Z0-9\_\.]+)\+/) {
 79 		if ($line =~ /\@ ([0-9]+)/) {
 85 	if ($line =~ /([0-9\.]+)\] async_waiting @ ([0-9]+)/) {
 106 	if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_\.]+)\+.*returned/) {
 113 	if ($line =~ /([0-9\.]+)\] async_continuing @ ([0-9]+)/) {
 141 	my $version = `uname -a`;
 [all …]
 
 | 
| /linux/scripts/dtc/ | 
| H A D | dt-extract-compatibles | 2 # SPDX-License-Identifier: GPL-2.0-only13 	# CPU_METHOD_OF_DECLARE does not have a compatible string
 43 	for m in re.finditer(r'\.of_match_table\s+=\s+(of_match_ptr\()?([a-zA-Z0-9_-]+)', data):
 50 	""" Find all compatibles in the last argument of a given function """
 52 	for m in re.finditer(rf'{func_name}\(([a-zA-Z0-9_>\(\)"\-]+,\s)*"([a-zA-Z0-9_,-]+)"\)', data):
 59 	with open(file, 'r', encoding='utf-8') as f:
 63 		# For a compatible in the DT to be matched to a driver it needs to show
 64 		# up in a driver's of_match_table
 80 	with open(file, 'r', encoding='utf-8') as f:
 84 	# match a driver, except for the _DRIVER ones.
 [all …]
 
 | 
| H A D | dtc-lexer.l | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */6 %option noyywrap nounput noinput never-interactive
 12 PROPNODECHAR	[a-zA-Z
 [all...]
 | 
| H A D | dt_to_config | 2 # SPDX-License-Identifier: GPL-2.0-only13 $VUFX = "160610a";
 19 # ----- constant
 [all...]
 | 
| /linux/tools/perf/util/ | 
| H A D | parse-events.l | 3 %option bison-bridge6 %option bison-locations
 14 #include "parse-events.h"
 15 #include "parse-events-bison.h"
 24 	return parse_events_get_column(scanner) - parse_events_get_leng(scanner);  in get_column()
 36 		struct parse_events_error *error = parse_state->error;  in value()
 45 	yylval->num = num;  in value()
 54 	yylval->str = strdup(text);  in str()
 64 	 * If a text tag specified on the command line  in quoted_str()
 72 	yylval->str = strndup(&text[1], strlen(text) - 2);  in quoted_str()
 [all …]
 
 | 
| H A D | bpf-filter.l | 9 #include "bpf-filter.h"10 #include "bpf-filter-bison.h"
 76 num_dec		[0-9]+
 77 num_hex		0[Xx][0-9a-fA-
 [all...]
 | 
| /linux/tools/testing/selftests/bpf/prog_tests/ | 
| H A D | stream.c | 1 // SPDX-License-Identifier: GPL-2.032 	prog_fd = bpf_program__fd(skel->progs.stream_syscall);
 38 	ret = -errno;
 39 	ASSERT_EQ(ret, -EINVAL, "bad prog_fd");
 42 	ret = -errno;
 43 	ASSERT_EQ(ret, -ENOENT, "bad stream id");
 46 	ret = -errno; in match_regex()
 47 	ASSERT_EQ(ret, -EFAUL in match_regex()
 [all...]
 | 
| /linux/usr/include/ | 
| H A D | headers_check.pl | 2 # SPDX-License-Identifier: GPL-2.04 # headers_check.pl execute a number of trivial consistency checks
 83 	if ($line =~ m/[^a-zA-Z0-9_]+CONFIG_([a-zA-Z0-9_]+)[^a-zA-Z0-9_]/) {
 91 	if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
 143 	if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
 158 	# strip single-line comments, as types may be referenced within them
 
 | 
| /linux/arch/riscv/kernel/compat_vdso/ | 
| H A D | gen_compat_vdso_offsets.sh | 2 # SPDX-License-Identifier: GPL-2.05 sed -n -e 's/^[0]\+\(0[0-9a-fA-F]*\) . \(__vdso_[a-zA-Z0-9_]*\)$/\#define compat\2_offset\t0x\1/p'
 
 | 
| /linux/arch/riscv/kernel/vdso/ | 
| H A D | gen_vdso_offsets.sh | 2 # SPDX-License-Identifier: GPL-2.05 sed -n -e 's/^[0]\+\(0[0-9a-fA-F]*\) . \(__vdso_[a-zA-Z0-9_]*\)$/\#define \2_offset\t0x\1/p'
 
 | 
| /linux/Documentation/arch/arm64/ | 
| H A D | sme.rst | 14 model.  To aid understanding, a minimal description of relevant programmer's15 model features for SME is included in Appendix A.
 19 -----------
 21 * PSTATE.SM, PSTATE.ZA, the streaming mode vector length, the ZA and (when
 26   instructions and registers, and the Linux-specific system interfaces
 31   the SME2 instructions and ZT0, and the Linux-specific system interfaces
 42 * There are a number of optional SME features, presence of these is reported
 58   cpu-feature-registers.txt for details.
 62   way of detecting support for these regsets is to connect to a target process
 63   first and then attempt a
 [all …]
 
 | 
| /linux/arch/loongarch/vdso/ | 
| H A D | gen_vdso_offsets.sh | 2 # SPDX-License-Identifier: GPL-2.05 # Derived from RISC-V and ARM64:
 8 # Match symbols in the DSO that look like VDSO_*; produce a header file
 12 LC_ALL=C sed -n -e 's/^00*/0/' -e \
 13 's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\#define vdso_offset_\2\t0x\1/p'
 
 | 
| /linux/arch/powerpc/kernel/vdso/ | 
| H A D | gen_vdso64_offsets.sh | 2 # SPDX-License-Identifier: GPL-2.05 # Match symbols in the DSO that look like VDSO_*; produce a header file
 8 # Doing this inside the Makefile will break the $(filter-out) function,
 9 # causing Kbuild to rebuild the vdso-offsets header file every time.
 15 sed -n -e 's/^00*/0/' -e \
 16 's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\#define vdso64_offset_\2\t0x\1/p'
 
 | 
| H A D | gen_vdso32_offsets.sh | 2 # SPDX-License-Identifier: GPL-2.05 # Match symbols in the DSO that look like VDSO_*; produce a header file
 8 # Doing this inside the Makefile will break the $(filter-out) function,
 9 # causing Kbuild to rebuild the vdso-offsets header file every time.
 15 sed -n -e 's/^00*/0/' -e \
 16 's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\#define vdso32_offset_\2\t0x\1/p'
 
 | 
| /linux/arch/arm64/kernel/vdso/ | 
| H A D | gen_vdso_offsets.sh | 2 # SPDX-License-Identifier: GPL-2.05 # Match symbols in the DSO that look like VDSO_*; produce a header file
 8 # Doing this inside the Makefile will break the $(filter-out) function,
 9 # causing Kbuild to rebuild the vdso-offsets header file every time.
 15 sed -n -e 's/^00*/0/' -e \
 16 's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\#define vdso_offset_\2 0x\1/p'
 
 | 
| /linux/scripts/kconfig/ | 
| H A D | merge_config.sh | 2 # SPDX-License-Identifier: GPL-2.04 #  merge_config.sh - Takes a list of config fragment values, and merges
 10 #  http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-tools/tree/tools/kconf_check
 11 #  http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-tools/tree/tools/generate_cfg
 13 #  Copyright (c) 2009-201
 [all...]
 | 
| H A D | streamline_config.pl | 2 # SPDX-License-Identifier: GPL-2.04 # Copyright 2005-2009 - Steven Rostedt
 11 #   If you have installed a Linux kernel from a distribution
 38 #    cd /usr/src/linux-2.6.10
 39 #    cp /boot/config-2.6.10-1-686-smp .config
 59 my $uname = `uname -r`;
 72 	    "file" => "/boot/config-$uname",
 76 	    "file" => "/boot/vmlinuz-$uname",
 77 	    "exec" => "scripts/extract-ikconfig",
 78 	    "test" => "scripts/extract-ikconfig",
 [all …]
 
 | 
| /linux/tools/testing/selftests/arm64/abi/ | 
| H A D | syscall-abi-asm.S | 1 // SPDX-License-Identifier: GPL-2.0-only7 // Load values from memory into registers, invoke a syscall and save the
 19 //	ZA:	za_in, za_out
 22 #include "syscall-abi.h"
 30  * LDR (vector to ZA array):
 31  *	LDR ZA[\nw, #\offset], [X\nxbase, #\offset, MUL VL]
 41  * STR (vector from ZA array):
 42  *	STR ZA[\nw, #\offset], [X\nxbase, #\offset, MUL VL]
 73 	// Store callee saved registers x19-x29 (80 bytes) plus x0 and x1
 74 	stp	x29, x30, [sp, #-112]!
 [all …]
 
 | 
| /linux/tools/bootconfig/scripts/ | 
| H A D | ftrace2bconf.sh | 2 # SPDX-License-Identifier: GPL-2.0-only5 	echo "Dump boot-time tracing bootconfig from ftrace"
 6 	echo "Usage: $0 [--debug] [ > BOOTCONFIG-FILE]"
 13 	"--debug")
 15 	-*)
 23 	set -x
 26 TRACEFS=`grep -m 1 -w tracefs /proc/mounts | cut -f 2 -d " "`
 27 if [ -z "$TRACEFS" ]; then
 28 	if ! grep -wq debugfs /proc/mounts; then
 32 	TRACEFS=`grep -m 1 -w debugfs /proc/mounts | cut -f 2 -d " "`/tracing
 [all …]
 
 | 
| /linux/tools/testing/selftests/rcutorture/bin/ | 
| H A D | kvm.sh | 2 # SPDX-License-Identifier: GPL-2.0+4 # Run a series of tests under KVM.  By default, this series is specified
 5 # by the relevant CFLIST file, but can be overridden by the --configs
 6 # command-line argument.
 17 T="`mktemp -d ${TMPDIR-/tmp}/kvm.sh.XXXXXX`"
 18 trap 'rm -rf $T' 0
 23 LANG=en_US.UTF-8; export LANG
 57 ds=`date +%Y.%m.%d-%H.%M.%S`
 58 jitter="-1"
 65 	echo "       --allcpus"
 [all …]
 
 | 
| /linux/tools/bpf/ | 
| H A D | bpf_exp.l | 11  * Steven McCanne and Van Jacobson. 1993. The BSD packet filter: a new12  * architecture for user-level packet capture. In Proceedings of the
 15  * CA, USA, 2-2.
 160 "a"		{ return 'a'; }
 166 ([0][x][a-fA-F0-9]+) {
 170 ([0][b][0-1]+)	{
 174 (([0])|([-+]?[1-9][0-9]*)) {
 178 ([0][0-7]+)	{
 182 [a-zA-Z_][a-zA-Z0-9_]+ {
 
 | 
| /linux/tools/memory-model/scripts/ | 
| H A D | parseargs.sh | 2 # SPDX-License-Identifier: GPL-2.0+8 # Include into other Linux kernel tools/memory-model scripts.
 19 	echo if test -z '"$'$1'"' > $T/s
 29 initparam LKMM_HERD_OPTIONS "-conf linux-kernel.cfg"
 39 	echo "      --destdir path (place for .litmus.out, default by .litmus)"
 40 	echo "      --herdopts -conf linux-kernel.cfg ..."
 41 	echo "      --hw AArch64"
 42 	echo "      --jobs N (number of jobs, default one per CPU)"
 43 	echo "      --procs N (litmus tests with at most this many processes)"
 44 	echo "      --timeout N (herd7 timeout (e.g., 10s, 1m, 2hr, 1d, '')"
 [all …]
 
 |