| /linux/Documentation/power/ |
| H A D | drivers-testing.rst | 7 1. Preparing the test system 10 Unfortunately, to effectively test the support for the system-wide suspend and 18 Of course, for this purpose the test system has to be known to suspend and 20 resolve all suspend/resume-related problems in the test system before you start 21 testing the new driver. Please see Documentation/power/basic-pm-debugging.rst 27 Once you have resolved the suspend/resume-related problems with your test system 28 without the new driver, you are ready to test it: 30 a) Build the driver as a module, load it and try the test modes of hibernation 31 (see: Documentation/power/basic-pm-debugging.rst, 1). 34 "platform" modes (see: Documentation/power/basic-pm-debugging.rst, 1). [all …]
|
| /linux/tools/testing/selftests/powerpc/vphn/ |
| H A D | test-vphn.c | 1 // SPDX-License-Identifier: GPL-2.0 21 static struct test { struct 41 "vphn: 1 x 16-bit value", 56 "vphn: 2 x 16-bit values", 72 "vphn: 3 x 16-bit values", 89 "vphn: 4 x 16-bit values", 107 /* Parsing the next 16-bit value out of the next 64-bi 25 expectedtest global() argument 366 test_one(struct test * test) test_one() argument 394 static struct test *test; test_vphn() local [all...] |
| /linux/tools/testing/selftests/net/ |
| H A D | reuseport_dualstack.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * This test creates these mixed AF_INET/AF_INET6 sockets and asserts the 42 addr4->sin_family = AF_INET; in build_rcv_fd() 43 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_fd() 44 addr4->sin_port = htons(PORT); in build_rcv_fd() 48 addr6->sin6_family = AF_INET6; in build_rcv_fd() 49 addr6->sin6_add in build_rcv_fd() 128 static void test(int *rcv_fds, int count, int proto) test() function [all...] |
| H A D | fib_nexthops.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # veth1 <---|---> veth2 | 8 # | veth5 <--|--> veth6 172.16.101.1 9 # veth3 <---|---> veth4 | 2001:db8:101::1 13 # This test is for checking IPv4 and IPv6 FIB behavior with nexthop 19 # Kselftest framework requirement - SKIP code is 4. 22 # all tests in this script. Can be overridden with -t option 75 if [ ${rc} -eq ${expected} ]; then 76 printf "TEST: %-60s [ OK ]\n" "${msg}" 79 if [[ $rc -eq $ksft_skip ]]; then [all …]
|
| /linux/kernel/events/ |
| H A D | hw_breakpoint_test.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * KUnit test for hw_breakpoint constraints accounting logic. 8 #include <kunit/test.h> 15 #define TEST_REQUIRES_BP_SLOTS(test, slots) \ argument 18 kunit_skip((test), "Requires breakpoint slots: %d > %d", slots, \ 23 #define TEST_EXPECT_NOSPC(expr) KUNIT_EXPECT_EQ(test, -ENOSPC, PTR_ERR(expr)) 65 static void fill_one_bp_slot(struct kunit *test, int *id, int cpu, struct task_struct *tsk) in fill_one_bp_slot() argument 69 KUNIT_ASSERT_NOT_NULL(test, bp); in fill_one_bp_slot() 70 KUNIT_ASSERT_FALSE(test, IS_ERR(bp)); in fill_one_bp_slot() 71 KUNIT_ASSERT_NULL(test, test_bps[*id]); in fill_one_bp_slot() [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | vfat.rst | 10 mount -t vfat /dev/fd0 /mnt 42 **-20**: If current process is in group of file's group ID, 45 **-2**: Other users can change timestamp. 69 There is also an option of doing UTF-8 translations 76 UTF-8 is the filesystem safe version of Unicode that 79 If 'uni_xlate' gets set, UTF-8 gets disabled. 125 **shortname=lower|win95|winnt|mixed** 135 **mixed**: emulate the Windows NT rule for display, 138 Default setting is `mixed`. 156 cases in presence of DST - time stamps in a different DST [all …]
|
| /linux/tools/testing/selftests/liveupdate/ |
| H A D | liveupdate.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * This test suite verifies the functionality and behavior of the 14 * - Device access: basic open/close, and enforcement of exclusive access. 15 * - Session management: creation of unique sessions, and duplicate name detection. 16 * - Resource preservation: successfully preserving individual and multiple memfds, 18 * - Complex multi-session scenarios involving mixed empt [all...] |
| /linux/include/uapi/linux/dvb/ |
| H A D | osd.h | 1 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */ 3 * osd.h - DEPRECATED On Screen Display API 18 /* All functions return -2 on "not open" */ 27 * returns 0 on success, -1 on DRAM allocation error, -2 on "already open" 57 * returns 0 on success, -1 on error 64 * R,G,B, and a opacity value: 0->transparent, 1..254->mix, 255->pixel 68 * Sets transparency of mixed pixel (0..15) 74 * returns 0 on success, -1 on error 77 /* returns color number of pixel <x>,<y>, or -1 */ 81 * returns 0 on success, -1 on clipping all pixel (no pixel drawn) [all …]
|
| /linux/tools/perf/util/ |
| H A D | setup.py | 9 # Check if CC has options, as is the case in yocto, where it uses CC="cc --sysroot..." 18 # mypy: disable-error-code="union-attr" 19 cc_is_clang = b"clang version" in Popen([cc, "-v"], stderr=PIPE).stderr.readline() 32 "-o", "/dev/null", 33 path.join(src_feature_tests, "test-hello.c") 42 vars[var] = sub("-spec [all...] |
| /linux/lib/ |
| H A D | percpu-refcount.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/percpu-refcount.h> 13 * don't try to detect the ref hitting 0 - which means that get/put can just 15 * particular cpu can (and will) wrap - this is fine, when we go to shutdown the 24 * the ref hitting 0 on every put - this would require global synchronization 37 #define PERCPU_COUNT_BIAS (1LU << (BITS_PER_LONG - 1)) 45 (ref->percpu_count_ptr & ~__PERCPU_REF_ATOMIC_DEAD); in percpu_count_ptr() 49 * percpu_ref_init - initialize a percpu refcount 60 * Note that @release must not sleep - it may potentially be called from RCU 71 ref->percpu_count_ptr = (unsigned long) in percpu_ref_init() [all …]
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-integrity.rst | 2 dm-integrity 5 The dm-integrity target emulates a block device that has additional 6 per-sector tags that can be used for storing integrity information. 9 writing the sector and the integrity tag must be atomic - i.e. in case of 12 To guarantee write atomicity, the dm-integrity target uses journal, it 16 The dm-integrity target can be used with the dm-crypt target - in this 17 situation the dm-crypt target creates the integrity data and passes them 18 to the dm-integrity target via bio_integrity_payload attached to the bio. 19 In this mode, the dm-crypt and dm-integrity targets provide authenticated 20 disk encryption - if the attacker modifies the encrypted device, an I/O [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_bpffs.c | 1 // SPDX-License-Identifier: GPL-2.0 22 return -1; in read_iter() 24 buf[sizeof(buf) - 1] = '\0'; in read_iter() 31 return -1; in read_iter() 113 /* Check that RENAME_EXCHANGE works for mixed file types. */ in fn() 132 err = -EINVAL; in fn() 155 if (CHECK(pid == -1, "clone", "clone failed %d", errno)) in test_test_bpffs() 160 if (CHECK(err == -1 && errno != ECHILD, "waitpid", "failed %d", errno)) in test_test_bpffs() 162 if (CHECK(WEXITSTATUS(status), "bpffs test ", "failed %d", WEXITSTATUS(status))) in test_test_bpffs()
|
| /linux/lib/crypto/tests/ |
| H A D | hash-test-template.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Test cases for hash functions, including a benchmark. This is included by 4 * KUnit test suites that want to use it. See sha512_kunit.c for an example. 8 #include <kunit/run-in-irq-context.h> 9 #include <kunit/test.h> 22 * which does not require cryptographically secure random numbers. A hard-coded 24 * algorithm used by the test vector generation script. This allows the input 25 * data in random test vectors to be concisely stored as just the seed. 29 random_seed = (random_seed * 25214903917 + 11) & ((1ULL << 48) - 1); in rand32() 77 * Allocate the test buffer using vmalloc() with a page-aligned length in hash_suite_init() [all …]
|
| /linux/lib/tests/ |
| H A D | ffs_kunit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * KUnit tests for ffs()-family functions 5 #include <kunit/test.h> 9 * Test data structures 13 int expected_ffs; /* ffs() result (1-based) */ 14 int expected_fls; /* fls() result (1-based) */ 20 int expected_fls64; /* fls64() result (1-based) */ 21 unsigned int expected_ffs64_0based; /* __ffs64() result (0-based) */ 26 * Basic edge cases - core functionality validation 29 /* Zero case - special handling */ [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_bounds.c | 1 // SPDX-License-Identifier: GPL-2.0 24 *(u64*)(r10 - 8) = r1; \ in bounds_map_value_variant_1() 26 r2 += -8; \ in bounds_map_value_variant_1() 34 r1 -= r3; \ in bounds_map_value_variant_1() 51 __msg_unpriv("R1 has unknown scalar with mixed signed bounds") 56 *(u64*)(r10 - 8) = r1; \ in bounds_map_value_variant_2() 58 r2 += -8; \ in bounds_map_value_variant_2() 66 r1 - in bounds_map_value_variant_2() [all...] |
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | devlink_rate_tc_bw.py | 2 # SPDX-License-Identifier: GPL-2.0 5 Devlink Rate TC Bandwidth Test Suite 8 This test suite verifies the functionality of devlink-rate traffic class (TC) 13 Test Environment: 14 --- [all...] |
| /linux/tools/memory-model/ |
| H A D | lock.cat | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * The lock-related events generated by herd7 are as follows: 16 * LKR Lock-Read: the read part of a spin_lock() or successful 17 * spin_trylock() read-modify-write event pair 18 * LKW Lock-Write: the write part of a spin_lock() or successful 21 * LF Lock-Fail: a failed spin_trylock() event 22 * RL Read-Locked: a spin_is_locked() event which returns True 23 * RU Read-Unlocked: a spin_is_locked() event which returns False 40 let ALL-LOCKS = LKR | LKW | UL | LF | RU | Srcu-lock | Srcu-unlock | Sync-srcu 41 flag ~empty [M \ IW \ ALL-LOCKS] ; loc ; [ALL-LOCKS] as mixed-lock-accesses [all …]
|
| /linux/drivers/firmware/efi/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 34 On systems that have mixed performance classes of memory EFI 42 resource, and set aside for direct-access (device-dax) by 45 device-dax kmem facility. Say N to have the kernel treat this 83 memory before executing it. For compatibility with non-EFI loaders, 129 bool "Add support for Quark capsules with non-standard headers" 143 of going through the efivar API, because it is not trying to test the 146 by the Firmware Test Suite (FWTS) for testing the UEFI runtime 204 firmware can't guarantee that the OS is IOMMU-aware, it will tear 233 See Documentation/admin-guide/acpi/ssdt-overlays.rst for more [all …]
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | stress_test.c | 1 // SPDX-License-Identifier: GPL-2.0 31 * Test rapid creation and destruction of user namespaces. 35 TEST(rapid_namespace_creation_destruction) in TEST() function 87 * Test creating many concurrent namespaces. 91 TEST(many_concurrent_namespaces) in TEST() function 210 * Test rapid namespace creation with different namespace types. 213 TEST(rapid_mixed_namespace_creation) in TEST() function 268 TH_LOG("After 50 rapid mixed namespace cycles: %zd active namespaces", ret_after); in TEST() 273 * Test nested namespace creation under stress. 276 TEST(nested_namespace_stress) in TEST() function [all …]
|
| /linux/net/vmw_vsock/ |
| H A D | vmci_transport_notify.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2013 VMware, Inc. All rights reserved. 15 #define PKT_FIELD(vsk, field_name) (vmci_trans(vsk)->notify.pkt.field_name) 40 PKT_FIELD(vsk, write_notify_window) -= PAGE_SIZE; in vmci_transport_notify_waiting_write() 48 notify_limit = vmci_trans(vsk)->consume_size - in vmci_transport_notify_waiting_write() 57 * retain compatibility between endpoints with mixed versions of this in vmci_transport_notify_waiting_write() 61 * flow control is enabled. Below the test is expressed in terms of in vmci_transport_notify_waiting_write() 62 * free space in the queue: if free_space > ConsumeSize - in vmci_transport_notify_waiting_write() 66 * free_space == ConsumeSize - bufferReady. in vmci_transport_notify_waiting_write() 68 retval = vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair) > in vmci_transport_notify_waiting_write() [all …]
|
| /linux/include/net/ |
| H A D | inet_hashtables.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 47 * Failing that, goto test 2. 48 * 2) If all sockets have sk->sk_reuse set, and none of them are in 50 * Failing that, goto test 3. 51 * 3) If all sockets are bound to a specific inet_sk(sk)->rcv_saddr local 56 * The interesting point, is test #2. This is what an FTP server does 59 * check of: (newsk->sk_reuse && (newsk->sk_state != TCP_LISTEN)) 60 * As long as all sockets added to a bind bucket pass this test, 64 * sk->sk_reuse set, we don't even have to walk the owners list at all, 72 * ports are created in O(1) time? I thought so. ;-) -DaveM [all …]
|
| /linux/Documentation/sound/cards/ |
| H A D | hdspm.rst | 2 Software Interface ALSA-DSP MADI Driver 5 (translated from German, so no good English ;-), 7 2004 - winfried ritsch 11 the Controls and startup-options are ALSA-Standard and only the 19 ------------------ 21 * number of channels -- depends on transmission mode 29 * Single Speed -- 1..64 channels 37 * Double Speed -- 1..32 channels 40 Note: Choosing the 56-channel mode for 41 transmission/receive-mode , only 28 are transmitted/received [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-stat.txt | 1 perf-stat(1) 5 ---- 6 perf-stat - Run a command and gather performance counter statistics 9 --- [all...] |
| /linux/include/uapi/linux/ |
| H A D | can.h | 1 /* SPDX-License-Identifier: ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) */ 9 * Copyright (c) 2002-2007 Volkswagen Group Electronic Research 69 * bit 0-28 : CAN identifier (11/29 bit) 83 * bit 0-28 : error class mask (see include/uapi/linux/can/error.h) 84 * bit 29-31 : set to zero 88 /* CAN payload length and DLC definitions according to ISO 11898-1 */ 93 /* CAN FD payload length and DLC definitions according to ISO 11898-7 */ 98 * CAN XL payload length and DLC definitions according to ISO 11898-1 108 * struct can_frame - Classical CAN frame structure (aka CAN 2.0B) 116 * 8 bytes but the DLC value (see ISO 11898-1) is greater then 8. [all …]
|
| /linux/security/apparmor/ |
| H A D | label.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 * code - will take a ref count on a label if it needs the label 29 * profiles - each profile is a label 30 * secids - a pinned secid will keep a refcount of the label it is 32 * objects - inode, files, sockets, ... 45 /* p->label will not updated any more as p is dead */ in free_proxy() 46 aa_put_label(rcu_dereference_protected(proxy->labe in free_proxy() [all...] |