| /linux/tools/testing/selftests/ftrace/test.d/trigger/ |
| H A D | trigger-hist.tc | 2 # SPDX-License-Identifier: GPL-2.0 3 # description: event trigger - test histogram trigger 46 grep '{ call_site: \[[0-9a-f][0-9a-f]*\] [_a-zA-Z][_a-zA-Z]* *}' events/kmem/kmalloc/hist > /dev/nu… 51 echo "Test histogram with sym-offset modifier" 53 echo 'hist:keys=call_site.sym-offset' > events/kmem/kmalloc/trigger 55 grep '{ call_site: \[[0-9a-f][0-9a-f]*\] [_a-zA-Z][_a-zA-Z]*+0x[0-9a-f][0-9a-f]*' events/kmem/kmall… 56 fail "sym-offset modifier on kmalloc call_site did not work" 66 while [ $# -gt 1 ]; do 67 [ $1 -gt $2 ] && return 1 72 check_inc `grep -o "child_pid:[[:space:]]*[[:digit:]]*" \ [all …]
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | fp-ptrace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 #include "fp-ptrace.h" 118 u64 a = swab64(x); in arm64_cpu_to_le128() local 121 return ((__uint128_t)a << 64) | b; in arm64_cpu_to_le128() 205 if (config->svcr_in & SVCR_SM) in vl_in() 206 vl = config->sme_vl_in; in vl_in() 208 vl = config->sve_vl_in; in vl_in() 217 if (config->svcr_expected & SVCR_SM) in vl_expected() 218 vl = config->sme_vl_expected; in vl_expected() 220 vl = config->sve_vl_expected; in vl_expected() [all …]
|
| /linux/arch/arm64/include/uapi/asm/ |
| H A D | sigcontext.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * You should have received a copy of the GNU General Public License 25 * Signal context structure - contains all info to do with the state 53 * New records that can exceed this space need to be opt-in for userspace, so 63 * and be 16-byte aligned. The last structure must be a dummy one with the 67 * be meaningful in ASCII to aid manual parsing, ZA doesn't follow this 85 * Note: similarly to all other integer fields, each V-register is stored in an 86 * endianness-dependent format, with the byte at offset i from the start of the 87 * in-memory representation of the register value containing [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | entry-fpsimd.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 17 * x0 - pointer to struct fpsimd_state 27 * x0 - pointer to struct fpsimd_state 39 * x0 - pointer to buffer for state 40 * x1 - pointer to storage for FPSR 41 * x2 - Save FFR if non-zero 51 * x0 - pointer to buffer for state 52 * x1 - pointer to storage for FPSR 53 * x2 - Restore FFR if non-zero 71 * Zero all SVE registers but the first 128-bits of each vector [all …]
|
| H A D | process.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 1996-2000 Russell King - Converted to ARM. 84 * to execute e.g. a RAM-based pin loop is not sufficient. This allows the 107 * Power-off simply requires that the secondary CPUs stop performing any 122 * provide a HW restart implementation, to ensure that all CPUs reset at once. 124 * doesn't have to co-ordinate with other CPUs to ensure they aren't still 125 * executing pre-reset code, and using RAM that the primary CPU's code wishes 126 * to use. Implementing such co-ordination would be essentially impossible. 145 * Whoops - the architecture was unable to reboot. in machine_restart() 147 printk("Reboot failed -- System halted\n"); in machine_restart() [all …]
|
| /linux/Documentation/arch/arm64/ |
| H A D | sme.rst | 14 model. To aid understanding, a minimal description of relevant programmer's 15 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/scripts/ |
| H A D | profile2linkerlist.pl | 2 # SPDX-License-Identifier: GPL-2.0 5 # Takes a (sorted) output of readprofile and turns it into a list suitable for 9 # readprofile | sort -rn | perl profile2linkerlist.pl > functionlist 16 $_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
|
| H A D | markup_oops.pl | 2 # SPDX-License-Identifier: GPL-2.0-only 22 '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 | extract-sys-certs.pl | 2 # SPDX-License-Identifier: GPL-2.0 9 die "Format: $0 [-s <systemmap-file>] <vmlinux-file> <keyring-file>\n" 11 $#ARGV == 3 && $ARGV[0] ne "-s"); 26 open FD, "objdump -h $vmlinux |" || die $vmlinux; 34 …if ($line =~ /\s*([0-9]+)\s+(\S+)\s+([0-9a-f]+)\s+([0-9a-f]+)\s+([0-9a-f]+)\s+([0-9a-f]+)\s+2[*][*… 38 my $len = Math::BigInt->new("0x" . $3); 39 my $vma = Math::BigInt->new("0x" . $4); 40 my $lma = Math::BigInt->new("0x" . $5); 41 my $foff = Math::BigInt->new("0x" . $6); 55 # from a vmlinuz file with extract-vmlinux then the symbol table will be empty. [all …]
|
| H A D | checkpatch.pl | 2 # SPDX-License-Identifier: GPL-2.0 7 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com> 8 # (c) 2010-2018 Joe Perches <joe@perches.com> 69 my $docsfile = "$D/../Documentation/dev-tools/checkpatch.rst"; 72 my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE 74 my $git_command ='export LANGUAGE=en_US.UTF-8; git'; 88 -q, --quiet quiet 89 -v, --verbose verbose mode 90 --no-tree run without a kernel tree 91 --no-signoff do not check for 'Signed-off-by' line [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/scripts/kconfig/ |
| H A D | merge_config.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # 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...] |
| /linux/tools/perf/util/ |
| 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-F]+ 80 ident [_a-zA [all...] |
| /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 …]
|
| /linux/arch/x86/tools/ |
| H A D | gen-insn-attr-x86.awk | 1 #!/bin/awk -f 2 # SPDX-License-Identifier: GPL-2.0 3 # gen-insn-attr-x86.awk: Instruction attribute table generator 6 # Usage: awk -f gen-insn-attr-x86.awk x86-opcode-map.txt > inat-tables.c 11 return "Your awk has a printf-format problem." 21 eid = -1 # escape id 22 gid = -1 # group id 23 aid = -1 # AVX id 24 xopid = -1 # XOP id 38 print "/* x86 opcode map generated from x86-opcode-map.txt */" [all …]
|
| /linux/tools/arch/x86/tools/ |
| H A D | gen-insn-attr-x86.awk | 1 #!/bin/awk -f 2 # SPDX-License-Identifier: GPL-2.0 3 # gen-insn-attr-x86.awk: Instruction attribute table generator 6 # Usage: awk -f gen-insn-attr-x86.awk x86-opcode-map.txt > inat-tables.c 11 return "Your awk has a printf-format problem." 21 eid = -1 # escape id 22 gid = -1 # group id 23 aid = -1 # AVX id 24 xopid = -1 # XOP id 38 print "/* x86 opcode map generated from x86-opcode-map.txt */" [all …]
|
| /linux/tools/bootconfig/scripts/ |
| H A D | ftrace2bconf.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 5 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/lib/ |
| H A D | build_OID_registry | 1 #!/usr/bin/perl -w 2 # SPDX-License-Identifier: GPL-2.0-or-later 4 # Build a static ASN.1 Object Identified (OID) registry 17 print STDERR "Format: ", $0, " <in-h-file> <out-c-file>\n"; 29 if (m!\s+OID_([a-zA-z][a-zA-Z0-9_]+),\s+/[*]\s+([012][.0-9]*)\s+[*]/!) { 76 # Emit the look-up-by-OID index table 109 for (; $tmp > 0; $tmp--) { 119 # Create a hash value for each OID 155 my @octets_a = @{$encoded_oids[$a]}; 158 return $hash_values[$a] <=> $hash_values[$b] [all …]
|
| /linux/arch/x86/boot/ |
| H A D | Makefile | 14 # Set it to -DSVGA_MODE=NORMAL_VGA if you just want the EGA/VGA mode. 17 SVGA_MODE := -DSVGA_MODE=NORMAL_VGA 21 subdir- := compressed 23 setup-y += a20.o bioscall.o cmdline.o copy.o cpu.o cpuflags.o cpucheck.o 24 setup-y += early_serial_console.o edd.o header.o main.o memory.o 25 setup-y += pm.o pmjump.o printf.o regs.o string.o tty.o video.o 26 setup-y += video-mode.o version.o 27 setup-$(CONFIG_X86_APM_BOOT) += apm.o 29 # The link order of the video-*.o modules can matter. In particular, 30 # video-vga.o *must* be listed first, followed by video-vesa.o. [all …]
|
| /linux/Documentation/netlink/ |
| H A D | netlink-raw.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 12 name-cap: 14 pattern: ^[0-9a-zA-Z-]+$ 18 len-or-define: 20 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 25 description: Specification of a raw netlink protocol [all …]
|
| H A D | genetlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
| /linux/drivers/isdn/hardware/mISDN/ |
| H A D | hfcpci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * hfcpci.c low level driver for CCD's hfc-pci based cards 8 * type approval valid for HFC-S PCI A based card 10 * Copyright 1999 by Werner Cornelius (werner@isdn-development.de) 24 * A value of 128 will use controller's interrupt. Other values will 28 * If kernel uses a frequency of 1000 Hz, steps of 8 samples are possible. 52 MODULE_DESCRIPTION("mISDN driver for CCD's hfc-pci based cards"); 104 /* marker saving last b-fifo frame count */ 143 hc->hw.int_m2 |= HFCPCI_IRQ_ENABLE; in enable_hwirq() 144 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in enable_hwirq() [all …]
|
| /linux/drivers/nvme/target/ |
| H A D | zns.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * NVMe ZNS-ZBD command implementation. 21 * Zone Append Size Limit (zasl) is expressed as a power of 2 value in nvmet_zasl() 24 return ilog2(zone_append_sects >> (NVMET_MPSMIN_SHIFT - 9)); in nvmet_zasl() 27 static int validate_conv_zones_cb(struct blk_zone *z, in validate_conv_zones_cb() argument 30 if (z->type == BLK_ZONE_TYPE_CONVENTIONAL) in validate_conv_zones_cb() 31 return -EOPNOTSUPP; in validate_conv_zones_cb() 37 u8 zasl = nvmet_zasl(bdev_max_zone_append_sectors(ns->bdev)); in nvmet_bdev_zns_enable() 38 struct gendisk *bd_disk = ns->bdev->bd_disk; in nvmet_bdev_zns_enable() 41 if (ns->subsys->zasl) { in nvmet_bdev_zns_enable() [all …]
|
| /linux/Documentation/trace/postprocess/ |
| H A D | trace-pagealloc-postprocess.pl | 2 # This is a POC (proof of concept or piece of crap, take your pick) for reading the 4 # to extract some high-level information on what is going on. The accuracy of the parser 7 # Example usage: trace-pagealloc-postprocess.pl < /sys/kernel/tracing/trace_pipe 9 # --prepend-parent Report on the parent proc and PID 10 # --read-procstat If the trace lacks process info, get it from /proc 11 # --ignore-pid Aggregate processes of the same name together 31 # High-level events extrapolated from tracepoints 52 if ($current_time - 2 > $sigint_received) { 53 print "SIGINT received, report pending. Hit ctrl-c again to exit\n"; 74 'ignore-pid' => \$opt_ignorepid, [all …]
|
| /linux/tools/testing/selftests/arm64/abi/ |
| H A D | hwcap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 38 * added so we may not fault if running on a kernel which doesn't know 248 /* SMSTART ZA */ in sme2_sigill() 263 /* BFCLAMP { Z0.H - Z1.H }, Z0.H, Z0.H */ in sme2p1_sigill() 275 /* UXTB Z0.D, P0/Z, Z0.D */ in sme2p2_sigill() 335 /* BFADD ZA.H[W0, 0], {Z0.H-Z1.H} */ in smeb16b16_sigill() 347 /* FADD ZA.H[W0, 0], { Z0.H-Z1.H } */ in smef16f16_sigill() 359 /* FDOT ZA.H[W0, 0], Z0.B-Z1.B, Z0.B-Z1.B */ in smef8f16_sigill() 371 /* FDOT ZA.S[W0, 0], { Z0.B-Z1.B }, Z0.B[0] */ in smef8f32_sigill() 383 /* LUTI4 { Z0.B-Z3.B }, ZT0, { Z0-Z1 } */ in smelutv2_sigill() [all …]
|