/linux/Documentation/ABI/testing/ |
H A D | sysfs-devices-mapping | 6 each dieX file (where X is die number) holds "Segment:Root Bus" 9 For example, on 4-die Xeon platform with up to 6 IIO stacks per 10 die and, therefore, 6 IIO PMON blocks per die, the mapping of 13 $ ls /sys/devices/uncore_iio_0/die* 14 -r--r--r-- /sys/devices/uncore_iio_0/die0 15 -r--r--r-- /sys/devices/uncore_iio_0/die1 16 -r--r--r-- /sys/devices/uncore_iio_0/die2 17 -r--r--r-- /sys/devices/uncore_iio_0/die3 19 $ tail /sys/devices/uncore_iio_0/die* 31 IIO PMU 0 on die 0 belongs to PCI RP on bus 0x00, domain 0x0000 [all …]
|
/linux/drivers/soc/hisilicon/ |
H A D | kunpeng_hccs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * The Huawei Cache Coherence System (HCCS) is a multi-chip interconnection 10 * - Retrieve the following information about each port: 11 * - port type 12 * - lane mode 13 * - enable 14 * - current lane mode 15 * - link finite state machine 16 * - lane mask 17 * - CRC error count [all …]
|
/linux/scripts/ |
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; 28 close(FD) || 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); [all …]
|
/linux/tools/perf/util/ |
H A D | dwarf-aux.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * dwarf-aux.h : libdw auxiliary interfaces 25 /* Walk on functions at given address */ 32 /* Get the lowest PC in DIE (including range list) */ 35 /* Ensure that this DIE is a subprogram and definition (not declaration) */ 38 /* Ensure that this DIE is an instance of a subprogram */ 47 /* Get callsite line number of inline-function instance */ 53 /* Get declared file name of a DIE */ 56 /* Get type die */ 59 /* Get a type die, but skip qualifiers */ [all …]
|
/linux/tools/perf/tests/ |
H A D | topology.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #define TEMPL "/tmp/perf-test-XXXXXX" 26 return -1; in get_temp() 44 session->evlist = evlist__new_default(); in session_write_header() 45 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header() 47 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header() 48 perf_header__set_feat(&session->heade in session_write_header() [all...] |
/linux/tools/testing/selftests/mount/ |
H A D | nosymfollow-test.c | 1 // SPDX-License-Identifier: GPL-2.0 30 static void die(char *fmt, ...) in die() function 50 die("vsnprintf failed: %s\n", strerror(errno)); in vmaybe_write_file() 53 die("vsnprintf output truncated\n"); in vmaybe_write_file() 59 die("open of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file() 65 die("short write to %s\n", filename); in vmaybe_write_file() 67 die("write to %s failed: %s\n", in vmaybe_write_file() 73 die("close of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file() 100 die("unshare(CLONE_NEWUSER) failed: %s\n", strerror(errno)); in create_and_enter_ns() 107 die("setgid(0) failed %s\n", strerror(errno)); in create_and_enter_ns() [all …]
|
H A D | unprivileged-remount-test.c | 1 // SPDX-License-Identifier: GPL-2.0 48 static void die(char *fmt, ...) in die() function 66 die("vsnprintf failed: %s\n", in vmaybe_write_file() 70 die("vsnprintf output truncated\n"); in vmaybe_write_file() 77 die("open of %s failed: %s\n", in vmaybe_write_file() 83 die("short write to %s\n", filename); in vmaybe_write_file() 85 die("write to %s failed: %s\n", in vmaybe_write_file() 90 die("close of %s failed: %s\n", in vmaybe_write_file() 123 die("statvfs of %s failed: %s\n", in read_mnt_flags() 129 die("Unrecognized mount flags\n"); in read_mnt_flags() [all …]
|
/linux/arch/sparc/boot/ |
H A D | piggyback.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Simple utility to make a single-image install kernel with initial ramdisk 7 Pete Zaitcev <zaitcev@yahoo.com> endian fixes for cross-compiles, 2000. 25 * Note: run this on an a.out kernel (use elftoaout for it), 33 /* align to power-of-two size */ 57 static void die(const char *str) in die() function 110 die(filename); in get_start_end() 131 * When we search do so in steps of 4 as HdrS is on a 4-byte aligned 132 * address (it is on same alignment as sparc instructions) 142 die("lseek"); in get_hdrs_offset() [all …]
|
/linux/Documentation/admin-guide/pm/ |
H A D | intel-speed-select.rst | 1 .. SPDX-License-Identifier: GPL-2.0 14 - https://www.intel.com/content/www/us/en/architecture-and-technology/speed-select-technology-artic… 15 - https://builders.intel.com/docs/networkbuilders/intel-speed-select-technology-base-frequency-enha… 19 dynamically without pre-configuring via BIOS setup options. This dynamic 29 intel-speed-select configuration tool 32 Most Linux distribution packages may include the "intel-speed-select" tool. If not, 38 # cd tools/power/x86/intel-speed-select/ 43 ------------ 47 # intel-speed-select --help 49 The top-level help describes arguments and features. Notice that there is a [all …]
|
H A D | intel_uncore_frequency_scaling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 :Copyright: |copy| 2022-2023 Intel Corporation 13 ------------ 16 on the workload characteristics. To optimize the total power and improve overall 30 --------------- 35 There is one directory for each package and die combination as the scope of 36 uncore scaling control is per die in multiple die/package SoCs or per 37 package for single die per package SoCs. The name represents the 39 die 0. 45 This is a read-only attribute. If users adjust max_freq_khz, [all …]
|
/linux/tools/perf/pmu-events/arch/x86/snowridgex/ |
H A D | uncore-io.json | 13 … reading from DRAM : Number of DWs (4 bytes) the card requests of the main die. Includes all re… 29 …rd writing to DRAM : Number of DWs (4 bytes) the card requests of the main die. Includes all re… 145 "BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0-7", 152 "PublicDescription": "PCIe Completion Buffer Inserts of completions with data : Part 0-7", 253 "BriefDescription": "PCIe Completion Buffer Occupancy of completions with data : Part 0-7", 260 "PublicDescription": "PCIe Completion Buffer Occupancy : Part 0-7", 265 "BriefDescription": "PCIe Completion Buffer Occupancy of completions with data : Part 0-7", 271 "PublicDescription": "PCIe Completion Buffer Occupancy : Part 0-7", 372 … bytes) requested by the main die. Includes all requests initiated by the main die, including rea… 385 … bytes) requested by the main die. Includes all requests initiated by the main die, including rea… [all …]
|
/linux/kernel/locking/ |
H A D | ww_mutex.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 w = list_first_entry(&lock->wait_list, struct mutex_waiter, list); in __ww_waiter_first() 14 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_first() 24 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_next() 34 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_prev() 45 w = list_last_entry(&lock->wait_list, struct mutex_waiter, list); in __ww_waiter_last() 46 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_last() 55 struct list_head *p = &lock->wait_list; in __ww_waiter_add() 57 p = &pos->list; in __ww_waiter_add() 70 return atomic_long_read(&lock->owner) & MUTEX_FLAG_WAITERS; in __ww_mutex_has_waiters() [all …]
|
/linux/tools/perf/pmu-events/arch/x86/icelakex/ |
H A D | uncore-io.json | 114 "BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0-7", 121 "PublicDescription": "PCIe Completion Buffer Inserts of completions with data : Part 0-7", 222 "BriefDescription": "PCIe Completion Buffer Occupancy of completions with data : Part 0-7", 229 "PublicDescription": "PCIe Completion Buffer Occupancy : Part 0-7", 234 "BriefDescription": "PCIe Completion Buffer Occupancy of completions with data : Part 0-7", 240 "PublicDescription": "PCIe Completion Buffer Occupancy : Part 0-7", 341 … bytes) requested by the main die. Includes all requests initiated by the main die, including rea… 354 … bytes) requested by the main die. Includes all requests initiated by the main die, including rea… 367 …e : Number of DWs (4 bytes) requested by the main die. Includes all requests initiated by the mai… 380 …e : Number of DWs (4 bytes) requested by the main die. Includes all requests initiated by the mai… [all …]
|
/linux/tools/testing/selftests/net/af_unix/ |
H A D | test_unix_oob.c |
|
/linux/tools/perf/pmu-events/arch/x86/skylakex/ |
H A D | uncore-io.json | 13 …s every read request for 4 bytes of data made by IIO Part0 to a unit on the main die (generally me… 29 …s every write request of 4 bytes of data made by IIO Part0 to a unit on the main die (generally me… 44 "BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0-3", 147 "BriefDescription": "PCIe Completion Buffer occupancy of completions with data: Part 0-3", 205 …"PublicDescription": "Number of double word (4 bytes) requests initiated by the main die to the at… 218 …"PublicDescription": "Number of double word (4 bytes) requests initiated by the main die to the at… 231 …"PublicDescription": "Number of double word (4 bytes) requests initiated by the main die to the at… 244 …"PublicDescription": "Number of double word (4 bytes) requests initiated by the main die to the at… 257 …er of double word (4 bytes) requests initiated by the main die to the attached device.; VTd - Type… 270 …er of double word (4 bytes) requests initiated by the main die to the attached device.; VTd - Type… [all …]
|
/linux/tools/perf/pmu-events/arch/x86/cascadelakex/ |
H A D | uncore-io.json | 13 …s every read request for 4 bytes of data made by IIO Part0 to a unit on the main die (generally me… 29 …s every write request of 4 bytes of data made by IIO Part0 to a unit on the main die (generally me… 44 "BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0-3", 147 "BriefDescription": "PCIe Completion Buffer occupancy of completions with data: Part 0-3", 205 …"PublicDescription": "Number of double word (4 bytes) requests initiated by the main die to the at… 218 …"PublicDescription": "Number of double word (4 bytes) requests initiated by the main die to the at… 231 …"PublicDescription": "Number of double word (4 bytes) requests initiated by the main die to the at… 244 …"PublicDescription": "Number of double word (4 bytes) requests initiated by the main die to the at… 257 …er of double word (4 bytes) requests initiated by the main die to the attached device.; VTd - Type… 270 …er of double word (4 bytes) requests initiated by the main die to the attached device.; VTd - Type… [all …]
|
/linux/arch/arm/mach-zynq/ |
H A D | slcr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2011-2013 Xilinx Inc. 33 * zynq_slcr_write - Write to a register in SLCR block 38 * Return: a negative value on error, 0 on success 46 * zynq_slcr_read - Read a register in SLCR block 51 * Return: a negative value on error, 0 on success 59 * zynq_slcr_unlock - Unlock SLCR registers 61 * Return: a negative value on error, 0 on success 71 * zynq_slcr_get_device_id - Read device code id 87 * zynq_slcr_system_restart - Restart the entire system. [all …]
|
/linux/tools/testing/selftests/livepatch/ |
H A D | functions.sh | 2 # SPDX-License-Identifier: GPL-2.0 15 # Kselftest framework requirement - SKIP code is 4 18 # log(msg) - write message to kernel log 19 # msg - insightful words 24 # skip(msg) - testing can't proceed 25 # msg - explanation 34 uid=$(id -u) 35 if [ $uid -ne 0 ]; then 43 if [ -z "$KDIR" ]; then 44 KDIR="/lib/modules/$(uname -r)/build" [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | nand_micron.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 15 * corrected by on-die ECC and should be rewritten. 20 * On chips with 8-bit ECC and additional bit can be used to distinguish 24 * ----- ----- ----- ----------- 27 * 0 1 0 4 - 6 errors corrected, recommend rewrite 29 * 1 0 0 1 - 3 errors corrected 31 * 1 1 0 7 - 8 errors corrected, recommend rewrite 77 * Configure chip properties from Micron vendor-specific ONFI table 81 struct nand_parameters *p = &chip->parameters; in micron_nand_onfi_init() [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | fq_band_pktlimit.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # 2. send 20 pkts on band A: verify that 10 are queued, 10 dropped 8 # 3. send 20 pkts on band A: verify that 0 are queued, 20 dropped 9 # 4. send 20 pkts on band B: verify that 10 are queued, 10 dropped 15 die() { function 21 if [[ $# -eq 0 ]]; then 28 ip -6 addr add fdaa::1/128 dev dummy0 29 ip -6 route add fdaa::/64 dev dummy0 34 ./cmsg_sender -6 -p u -d "${DELAY}" -n 20 fdaa::2 8000 35 OUT1="$(tc -s qdisc show dev dummy0 | grep '^\ Sent')" [all …]
|
/linux/tools/perf/pmu-events/arch/x86/sapphirerapids/ |
H A D | uncore-io.json | 182 "BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0-7", 190 "PublicDescription": "PCIe Completion Buffer Inserts of completions with data : Part 0-7", 414 "BriefDescription": "Read request for 4 bytes made by the CPU to IIO Part0-7", 433 "PublicDescription": "Data requested by the CPU : Core reading from Card's MMIO space : Number of DWs (4 bytes) requested by the main die. Includes all requests initiated by the main die, including reads and writes. : x16 card plugged in to stack, Or x8 card plugged in to Lane 0/1, Or x4 card is plugged in to slot 0", 445 "PublicDescription": "Data requested by the CPU : Core reading from Card's MMIO space : Number of DWs (4 bytes) requested by the main die. Includes all requests initiated by the main die, including reads and writes. : x4 card is plugged in to slot 1", 457 "PublicDescription": "Data requested by the CPU : Core reading from Card's MMIO space : Number of DWs (4 bytes) requested by the main die. Includes all requests initiated by the main die, including reads and writes. : x8 card plugged in to Lane 2/3, Or x4 card is plugged in to slot 1", 469 "PublicDescription": "Data requested by the CPU : Core reading from Card's MMIO space : Number of DWs (4 bytes) requested by the main die [all...] |
/linux/tools/perf/pmu-events/arch/x86/emeraldrapids/ |
H A D | uncore-io.json | 102 "BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0-7", 110 "PublicDescription": "PCIe Completion Buffer Inserts of completions with data : Part 0-7", 334 "BriefDescription": "Read request for 4 bytes made by the CPU to IIO Part0-7", 353 "PublicDescription": "Data requested by the CPU : Core reading from Card's MMIO space : Number of DWs (4 bytes) requested by the main die. Includes all requests initiated by the main die, including reads and writes. : x16 card plugged in to stack, Or x8 card plugged in to Lane 0/1, Or x4 card is plugged in to slot 0", 365 "PublicDescription": "Data requested by the CPU : Core reading from Card's MMIO space : Number of DWs (4 bytes) requested by the main die. Includes all requests initiated by the main die, including reads and writes. : x4 card is plugged in to slot 1", 377 "PublicDescription": "Data requested by the CPU : Core reading from Card's MMIO space : Number of DWs (4 bytes) requested by the main die. Includes all requests initiated by the main die, including reads and writes. : x8 card plugged in to Lane 2/3, Or x4 card is plugged in to slot 1", 389 "PublicDescription": "Data requested by the CPU : Core reading from Card's MMIO space : Number of DWs (4 bytes) requested by the main die [all...] |
/linux/include/linux/ |
H A D | ww_mutex.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * Wait/Die implementation: 35 #define ww_mutex_base_is_locked(b) rt_mutex_base_is_locked(&(b)->rtmutex) 98 * ww_mutex_init - initialize the w/w mutex 111 ww_mutex_base_init(&lock->base, ww_class->mutex_name, &ww_class->mutex_key); in ww_mutex_init() 112 lock->ctx = NULL; in ww_mutex_init() 114 lock->ww_class = ww_class; in ww_mutex_init() 119 * ww_acquire_init - initialize a w/w acquire context 125 * Context-based w/w mutex acquiring can be done in any order whatsoever within 127 * wait/die logic. [all …]
|
/linux/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 1 // SPDX-License-Identifier: GPL-2.0 22 * - requries libcap-dev to be installed on test system 23 * - requires securityfs to me mounted at /sys/kernel/security, e.g.: 24 * mount -n -t securityfs -o nodev,noexec,nosuid securityfs /sys/kernel/security 25 * - needs CONFIG_SECURITYFS and CONFIG_SAFESETID to be enabled 43 static void die(char *fmt, ...) in die() function 118 die("couldn't open file\n"); in ensure_user_exists() 120 die("couldn't fseek\n"); in ensure_user_exists() 130 die("putpwent failed\n"); in ensure_user_exists() 132 die("fclose failed\n"); in ensure_user_exists() [all …]
|
/linux/Documentation/locking/ |
H A D | ww-mutex-design.rst | 2 Wound/Wait Deadlock-Proof Mutex Design 5 Please read mutex-design.rst first, as it applies to wait/wound mutexes too. 7 Motivation for WW-Mutexes 8 ------------------------- 12 domains (for example VRAM vs system memory), and so on. And with 15 become ready. If you think about this in terms of waiting on a buffer 22 buffer(s) into VRAM before the GPU operates on the buffer(s), which 37 and the deadlock handling approach is called Wait-Die. The name is based on 41 and dies. Hence Wait-Die. 42 There is also another algorithm called Wound-Wait: [all …]
|