| /linux/tools/testing/selftests/mm/ |
| H A D | va_high_addr_switch.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 # This is a test for mmap behavior with 5-level paging. This script wraps the 10 # Kselftest framework requirement - SKIP code is 4. 14 skip() function 22 local config="/proc/config.gz" 23 [[ -f "${config}" ]] || config="/boot/config-$(uname -r)" 24 [[ -f "${config}" ]] || skip "Cannot find kernel config in /proc or /boot" 26 # gzip -dcfq automatically handles both compressed and plaintext input. 27 # See man 1 gzip under '-f'. 28 local pg_table_levels=$(gzip -dcfq "${config}" | grep PGTABLE_LEVELS | cut -d'=' -f 2) [all …]
|
| /linux/tools/testing/ktest/examples/include/ |
| H A D | min-config.conf | 3 # (A .config file that is the minimum for a machine to boot, or 8 # .config by only setting the configs in your MIN_CONFIG. The closer 10 # boot your machine, the closer the config you test with will be 11 # to the users config that had the failure. 16 # In this example, the final config will reside in 17 # ${CONFIG_DIR}/config-new-min and ${CONFIG_DIR}/config-new-min-net. 26 # This is because the second test config is a subset of the first). 28 # The ${CONFIG_DIR}/config-skip (and -net) will hold the configs 30 # The config-new-min holds configs that ktest.pl could not test 31 # directly because another config that was needed to boot the box [all …]
|
| /linux/tools/testing/ktest/ |
| H A D | sample.conf | 2 # Config file for ktest.pl 7 # the name of your config file as the first argument of ktest.pl. 34 # You can skip a test by adding SKIP (before or after the ITERATE 37 # TEST_START SKIP 39 # TEST_START SKIP ITERATE 10 41 # TEST_START ITERATE 10 SKIP 43 # The SKIP label causes the options and the test itself to be ignored. 44 # This is useful to set up several different tests in one config file, and 54 # MIN_CONFIG = /home/test/config-test1 57 # MIN_CONFIG = /home/test/config-default [all …]
|
| H A D | ktest.pl | 1 #!/usr/bin/perl -w 2 # SPDX-License-Identifier: GPL-2.0-only 4 # Copyright 2010 - Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. 69 "GRUB_REBOOT" => "grub2-reboot", 70 "GRUB_BLS_GET" => "grubby --info=ALL", 78 "LOCALVERSION" => "-test", 81 "TARGET_IMAGE" => "/boot/vmlinuz-test", 252 # set when creating a new config 260 # in a .config file. The MIN_CONFIG and ADD_CONFIG configs. 263 # do not force reboots on config problems [all …]
|
| /linux/tools/testing/selftests/net/rds/ |
| H A D | run.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 set -e 5 set -u 13 if test -f "$build_include"; then 26 kconfig="$ksrc_dir/.config" 41 GCC_VER=$(gcc -dumpfullversion) 42 GCOV_VER=$($GCOV_CMD -v | grep gcov | awk '{print $3}'| awk 'BEGIN {FS="-"}{print $1}') 45 GCOV_CMD=gcov-$(gcc -dumpversion) 55 GCOV_VER=$($GCOV_CMD -v | grep gcov | awk '{print $3}'| \ 56 awk 'BEGIN {FS="-"}{print $1}') [all …]
|
| /linux/lib/ |
| H A D | Kconfig.kcsan | 1 # SPDX-License-Identifier: GPL-2.0-only 3 config HAVE_ARCH_KCSAN 6 config HAVE_KCSAN_COMPILER 7 def_bool (CC_IS_CLANG && $(cc-option,-fsanitize=thread -mllvm -tsa [all...] |
| /linux/tools/perf/util/ |
| H A D | stat.c | 1 // SPDX-License-Identifier: GPL-2.0 24 stats->n++; in update_stats() 25 delta = val - stats->mean; in update_stats() 26 stats->mean += delta / stats->n; in update_stats() 27 stats->M2 += delta*(val - stats->mean); in update_stats() 29 if (val > stats->max) in update_stats() 30 stats->max = val; in update_stats() 32 if (val < stats->min) in update_stats() 33 stats->min = val; in update_stats() 38 return stats->mean; in avg_stats() [all …]
|
| /linux/scripts/ |
| H A D | leaking_addresses.pl | 2 # SPDX-License-Identifier: GPL-2.0-only 7 # - Scans dmesg output. 8 # - Walks directory tree and parses each file (for each directory in @DIRS). 10 # Use --debug to output path before parsing, this is useful to find files that 29 use Getopt::Long qw(:config no_auto_abbrev); 30 use Config; 42 # Kernel addresses vary by architecture. We can only auto-detect the following 43 # architectures (using `uname -m`). (flag --32-bit overrides auto-detection.) 57 my $opt_32bit = 0; # Scan 32-bit kernel. 58 my $page_offset_32bit = 0; # Page offset for 32-bit kernel. [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_bpftool_build.sh | 2 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 5 -h|--help) 6 echo -e "$0 [-j <n>]" 7 echo -e "\tTest the different ways of building bpftool." 8 echo -e "" 9 echo -e "\tOptions:" 10 echo -e "\t\t-j <n>:\tPass -j flag to 'make'." 19 SCRIPT_REL_PATH=$(realpath --relative-to=$PWD $0) 23 if [ ! -e tools/bpf/bpftool/Makefile ]; then 24 echo -e "skip: bpftool files not found!\n" [all …]
|
| /linux/tools/testing/selftests/kho/ |
| H A D | vmtest.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 set -ue 6 CROSS_COMPILE="${CROSS_COMPILE:-""}" 11 tmp_dir=$(mktemp -d /tmp/kho-test.XXXXXXXX) 19 $0 [-d build_dir] [-j jobs] [-t target_arch] [-h] 21 -d) path to the kernel build directory 22 -j) number of jobs for compilation, similar to -j in make 23 -t) run test for target_arch, requires CROSS_COMPILE set 25 -h) display this help 30 rm -fr "$tmp_dir" [all …]
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | README.rst | 1 .. SPDX-License-Identifier: GPL-2.0 17 (for example) can be run under ``virtme-ng`` like the core networking selftests. 33 and a real device. SW-only tests should instead be placed in net/ or 34 drivers/net/netdevsim, HW-only tests in drivers/net/hw. 39 The variables can be set in the environment or by creating a net.config 46 $ cat tools/testing/selftests/drivers/net/net.config 69 Test framework has built-in support for ``netns`` and ``ssh`` channels. 86 for netns - name of the "remote" namespace 87 for ssh - name/address of the remote host 94 # make -C tools/testing/selftests/ TARGETS="drivers/net drivers/net/hw" [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | test_ingress_egress_chaining.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # Kselftest framework requirement - SKIP code is 4. 10 if [ "$(id -u)" -ne 0 ];then 11 echo "SKIP: Need root privileges" 17 modinfo $mod &>/dev/null || { echo "SKIP: Need act_mirred module"; exit $ksft_skip; } 34 killall -q -9 udpgso_bench_rx 41 function config() { function 54 echo "Add tc filter ingress->egress forwarding $veth1 <-> $veth2" 62 echo "Add tc filter egress->ingress forwarding $peer1 -> $veth1, bypassing the veth pipe" 70 ./udpgso_bench_rx -t & [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" 15 skip() { function 17 echo "GPIO $MODULE test SKIP" 26 if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then 30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line` 33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then 86 test -d $LINE_DIR || mkdir $LINE_DIR 128 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` num-lines || \ [all …]
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-config.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 /************************* Config Specific Defines ************************/ 9 /* PKO queues per port for interface 0 (ports 0-15) */ 11 /* PKO queues per port for interface 1 (ports 16-31) */ 17 /* PKO queues per port for PCI (ports 32-35) */ 19 /* PKO queues per port for Loop devices (ports 36-39) */ 81 * available FAU address that is not allocated in cvmx-config.h. This 90 * the use of 8-byte aligned addresses, so proper alignment needs to 95 /* First location available after cvmx-config.h allocated region. */ 102 * SKIP details. [all …]
|
| /linux/drivers/net/ethernet/renesas/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 6 config NET_VENDOR_RENESAS 13 kernel: saying N will just cause the configurator to skip all 19 config SH_ETH 29 config RAVB 42 config RENESAS_ETHER_SWITCH 53 config RENESAS_GEN4_PTP 54 tristate "Renesas R-Car Gen4 gPTP support" if COMPILE_TEST 60 Renesas R-Car Gen4 gPTP device driver. 62 config RTSN [all …]
|
| /linux/drivers/pinctrl/mvebu/ |
| H A D | pinctrl-mvebu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 24 #include "pinctrl-mvebu.h" 59 unsigned int pid, unsigned long *config) in mvebu_mmio_mpp_ctrl_get() argument 64 *config = (readl(data->base + off) >> shift) & MVEBU_MPP_MASK; in mvebu_mmio_mpp_ctrl_get() 70 unsigned int pid, unsigned long config) in mvebu_mmio_mpp_ctrl_set() argument 76 reg = readl(data->base + off) & ~(MVEBU_MPP_MASK << shift); in mvebu_mmio_mpp_ctrl_set() 77 writel(reg | (config << shift), data->base + off); in mvebu_mmio_mpp_ctrl_set() 86 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_pid() 87 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid() [all …]
|
| /linux/Documentation/PCI/endpoint/ |
| H A D | pci-test-howto.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 This document is a guide to help users use pci-epf-test function driver 17 --------------------------- 26 # ls /sys/kernel/config/pci_ep/controllers 31 ------------------------- 35 # ls /sys/bus/pci-epf/drivers 40 # ls /sys/kernel/config/pci_ep/functions 44 Creating pci-epf-test Device 45 ---------------------------- 48 pci-epf-test device, the following commands can be used:: [all …]
|
| /linux/drivers/clk/qcom/ |
| H A D | clk-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/clk-provider.h> 17 #include "clk-pll.h" 31 ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_enable() 35 /* Skip if already enabled or in FSM mode */ in clk_pll_enable() 40 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_BYPASSNL, in clk_pll_enable() 47 * de-asserting the reset. Delay 10us just to be safe. in clk_pll_enable() 51 /* De-assert active-low PLL reset. */ in clk_pll_enable() 52 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_RESET_N, in clk_pll_enable() 61 return regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL, in clk_pll_enable() [all …]
|
| /linux/drivers/net/ethernet/xilinx/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 config NET_VENDOR_XILINX 13 kernel: saying N will just cause the configurator to skip all 19 config XILINX_EMACLITE 26 config XILINX_AXI_EMAC 36 config XILINX_LL_TEMAC 37 tristate "Xilinx LL TEMAC (LocalLink Tri-mode Ethernet MAC) driver"
|
| /linux/drivers/net/wireless/rsi/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 config WLAN_VENDOR_RSI 9 kernel: saying N will just cause the configurator to skip all the 15 config RSI_91X 23 config RSI_DEBUGFS 31 config RSI_SDIO 39 config RSI_USB 47 config RSI_COEX
|
| /linux/arch/x86/events/intel/ |
| H A D | bts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2013-2014, Intel Corporation. 86 int cpu = event->cpu; in bts_buffer_setup_aux() 87 int node = (cpu == -1) ? cpu : cpu_to_node(cpu); in bts_buffer_setup_aux() 109 bb->nr_pages = nr_pages; in bts_buffer_setup_aux() 110 bb->nr_bufs = nr_buf; in bts_buffer_setup_aux() 111 bb->snapshot = overwrite; in bts_buffer_setup_aux() 112 bb->data_pages = pages; in bts_buffer_setup_aux() 113 bb->real_size = size - size % BTS_RECORD_SIZE; in bts_buffer_setup_aux() 115 for (pg = 0, nr_buf = 0, offset = 0, pad = 0; nr_buf < bb->nr_bufs; nr_buf++) { in bts_buffer_setup_aux() [all …]
|
| /linux/drivers/net/ethernet/qlogic/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 config NET_VENDOR_QLOGIC 14 kernel: saying N will just cause the configurator to skip all 20 config QLA3XXX 29 config QLCNIC 37 config QLCNIC_SRIOV 38 bool "QLOGIC QLCNIC 83XX family SR-IOV Support" 47 config QLCNIC_DCB 58 config QLCNIC_HWMON 69 config NETXEN_NIC [all …]
|
| /linux/drivers/net/ethernet/micrel/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 config NET_VENDOR_MICREL 14 kernel: saying N will just cause the configurator to skip all 20 config KS8842 24 This platform driver is for KSZ8841(1-port) / KS8842(2-port) 28 config KS8851 40 config KS8851_MLL 53 config KSZ884X_PCI
|
| /linux/drivers/net/ethernet/i825xx/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 config NET_VENDOR_I825XX 14 kernel: saying N will just cause the configurator to skip all 20 config ARM_ETHER1 27 config BVME6000_NET 36 config LASI_82596 41 found in Hewlett-Packard PA-RISC machines with 10Mbit ethernet. 43 config MVME16x_NET 52 config SNI_82596 56 Say Y here to support the on-board Intel 82596 ethernet controller [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-config.txt | 1 perf-config(1) 5 ---- 6 perf-config - Get and set variables in a configuration file. 9 -------- 11 'perf config' [<file-option>] [section.name[=value] ...] 13 'perf config' [<file-option>] -l | --list 16 ----------- 20 ------- 22 -l:: 23 --list:: [all …]
|