/linux/Documentation/admin-guide/mm/ |
H A D | userfaultfd.rst | 8 Userfaults allow the implementation of on-demand paging from userland 38 Vmas are not suitable for page- (or hugepage) granular fault tracking 48 is a corner case that would currently return ``-EBUSY``). 54 ---------------------- 63 - Any user can always create a userfaultfd which traps userspace page faults 67 - In order to also trap kernel page faults for the address space, either the 84 -------------------------- 101 - The ``UFFD_FEATURE_EVENT_*`` flags indicate that various other events 103 detail below in the `Non-cooperative userfaultfd`_ section. 105 - ``UFFD_FEATURE_MISSING_HUGETLBFS`` and ``UFFD_FEATURE_MISSING_SHMEM`` [all …]
|
/linux/include/linux/ |
H A D | livepatch.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * livepatch.h - Kernel Live Patching Core 21 #define KLP_TRANSITION_IDLE -1 26 * struct klp_func - function structure for live patching 83 * struct klp_callbacks - pre/post live-(un)patch callback structure 88 * @post_unpatch_enabled: flag indicating if post-unpatch callback 91 * All callbacks are optional. Only the pre-patch callback, if provided, 93 * patch for any reason, including a non-zero error status returned from 94 * the pre-patch callback, no further callbacks will be executed. 105 * struct klp_object - kernel object structure for live patching [all …]
|
/linux/arch/arm64/include/uapi/asm/ |
H A D | sigcontext.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 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 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 89 * bits [(7 + 8 * i) : (8 * i)] of the register on little-endian hosts; or 90 * bits [(127 - 8 * i) : (120 - 8 * i)] on big-endian hosts. 126 * 16-byte aligned address immediately after the terminating null [all …]
|
/linux/drivers/gpu/drm/xlnx/ |
H A D | zynqmp_disp.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017 - 2020 Xilinx, Inc. 8 * - Hyun Woo Kwon <hyun.kwon@xilinx.com> 9 * - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 19 #include <linux/dma-mapping.h> 21 #include <linux/media-bus-format.h> 34 * -------- 39 * +------------------------------------------------------------+ 40 * +--------+ | +----------------+ +-----------+ | 41 * | DPDMA | --->| | --> | Video | Video +-------------+ | [all …]
|
/linux/Documentation/bpf/ |
H A D | bpf_prog_run.rst | 1 .. SPDX-License-Identifier: GPL-2.0 16 -------- 20 can be used to unit test BPF programs against user-supplied context objects, and 28 - ``BPF_PROG_TYPE_SOCKET_FILTER`` 29 - ``BPF_PROG_TYPE_SCHED_CLS`` 30 - ``BPF_PROG_TYPE_SCHED_ACT`` 31 - ``BPF_PROG_TYPE_XDP`` 32 - ``BPF_PROG_TYPE_SK_LOOKUP`` 33 - ``BPF_PROG_TYPE_CGROUP_SKB`` 34 - ``BPF_PROG_TYPE_LWT_IN`` [all …]
|
H A D | map_cgroup_storage.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 8 The ``BPF_MAP_TYPE_CGROUP_STORAGE`` map type represents a local fix-sized 15 table, which performs a hash table lookups, and requires user to track live 127 per-CPU variant will have different memory regions for each CPU for each 128 storage. The non-per-CPU will have the same memory region for each storage. 130 Prior to Linux 5.9, the lifetime of a storage is precisely per-attachment, and 136 There is a one-to-one association between the map of each type (per-CPU and 137 non-per-CPU) and the BPF program during load verification time. As a result, 154 (per-CPU and non-per-CPU). A BPF program cannot use more than one
|
/linux/Documentation/networking/device_drivers/ethernet/amd/ |
H A D | pds_vfio_pci.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 2 .. note: can be edited and viewed with /usr/bin/formiko-vim 14 The ``pds-vfio-pci`` module is a PCI driver that supports Live Migration 20 The pds-vfio-pci device is enabled via multiple configuration steps and 21 depends on the ``pds_core`` driver to create and enable SR-IOV Virtual 26 example assumes the pds_core and pds-vfio-pci modules are already 29 .. code-block:: bash 30 :name: example-setup-script 38 # Prevent non-vfio VF driver from probing the VF device 41 # Create single VF for Live Migration via pds_core [all …]
|
/linux/Documentation/devicetree/bindings/display/xlnx/ |
H A D | xlnx,zynqmp-dpsub.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/xlnx/xlnx,zynqmp-dpsub.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 +------------------------------------------------------------+ 15 +--------+ | +----------------+ +-----------+ | 16 | DPDMA | --->| | --> | Video | Video +-------------+ | 17 | 4x vid | | | | | Rendering | -+--> | | | +------+ 18 | 2x aud | | | Audio/Video | --> | Pipeline | | | DisplayPort |---> | PHY0 | 19 +--------+ | | Buffer Manager | +-----------+ | | Source | | +------+ [all …]
|
/linux/Documentation/livepatch/ |
H A D | reliable-stacktrace.rst | 15 functions may have live state and therefore may not be safe to patch. One way 16 to identify which functions are live is to use a stacktrace. 19 functions with live state, and best-effort approaches which can be helpful for 21 to provide a *reliable* stacktrace which ensures it never omits any live 38 * The return code is non-zero to indicate that the trace is not reliable. 47 function should attempt to detect such cases and return a non-zero error 52 3. Compile-time analysis 76 -------------------------------------- 99 ------------------------------- 133 ---------------------------------------------- [all …]
|
/linux/arch/xtensa/kernel/ |
H A D | coprocessor.S | 4 * Xtensa processor configuration-specific table of coprocessor and 11 * Copyright (C) 2003 - 2007 Tensilica Inc. 16 #include <asm/asm-offsets.h> 25 * - a task may have live coprocessors only on one CPU. 27 * - whether coprocessor context of task T is live on some CPU is 28 * denoted by T's thread_info->cpenable. 30 * - non-zero thread_info->cpenable means that thread_info->cp_owner_cpu 31 * is valid in the T's thread_info. Zero thread_info->cpenable means that 34 * - if a coprocessor context of task T is live on CPU X, only CPU X changes 35 * T's thread_info->cpenable, cp_owner_cpu and coprocessor save area. [all …]
|
/linux/sound/pci/emu10k1/ |
H A D | emu10k1_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * James Courtier-Dutton <James@superbug.co.uk> 85 if (emu->audigy) { in snd_emu10k1_voice_init() 128 { 0x0e, 0xcf }, /* Attenuation Left 0x01 = -103dB, 0xff = 24dB */ 146 HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_init() 148 outl(0, emu->port + INTE); in snd_emu10k1_init() 169 if (emu->audigy) { in snd_emu10k1_init() 182 SPCS0, emu->spdif_bits[0], in snd_emu10k1_init() 183 SPCS1, emu->spdif_bits[1], in snd_emu10k1_init() 184 SPCS2, emu->spdif_bits[2], in snd_emu10k1_init() [all …]
|
/linux/drivers/of/ |
H A D | overlay.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> 27 * struct target - info about current target node as recursing through overlay 29 * @in_livetree: @np is a node in the live devicetree 33 * in the live devicetree where the overlay subtree is targeted to be grafted 35 * also recurses to the next level of the live devicetree, as long as overlay 36 * subtree node also exists in the live devicetree. When a node in the overlay 37 * subtree does not exist at the same level in the live devicetree, target->np 47 * struct fragment - info about fragment nodes in overlay expanded device tree 67 * @cset: changeset to apply fragments to live device tree [all …]
|
/linux/drivers/misc/lkdtm/ |
H A D | rodata.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This includes functions that are meant to live entirely in .rodata 4 * (via objcopy tricks), to validate the non-executability of .rodata.
|
/linux/Documentation/admin-guide/ |
H A D | tainted-kernels.rst | 2 --------------- 16 ('kernel oops') or a non-recoverable error ('kernel panic') and writes debug 30 CPU: 0 PID: 4424 Comm: insmod Tainted: P W O 4.20.0-0.rc6.fc30 #1 43 a warning occurred (``W``), and an externally-built module was loaded (``O``). 53 decode that number is the script ``tools/debugging/kernel-chktaint``, which your 54 distribution might ship as part of a package called ``linux-tools`` or 55 ``kernel-tools``; if it doesn't, you can download the script from 56 …git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/tools/debugging/kernel-chktaint>`_ 57 and execute it with ``sh kernel-chktaint``, which would print something like 63 * Externally-built ('out-of-tree') module was loaded (#12) [all …]
|
/linux/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-context-chk-gpr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 * speculative nature of the 'live' registers and may infer the wrong 32 #define NV_GPR_REGS 18 /* Number of non-volatile GPR registers */ 33 #define R14 14 /* First non-volatile register to check in r14-r31 subset */ 39 /* Test only non-volatile general purpose registers, i.e. r14-r31 */ 41 /* First context will be set with these values, i.e. non-speculative */ 46 -1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18 53 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 57 fail = (ucp->uc_mcontext.gp_regs[R14 + i] != gprs[i]); in signal_usr1() 61 R14 + i, ucp->uc_mcontext.gp_regs[R14 + i], gprs[i]); in signal_usr1() [all …]
|
H A D | tm-signal-context-chk-fpu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 * speculative nature of the 'live' registers and may infer the wrong 32 #define NV_FPU_REGS 18 /* Number of non-volatile FP registers */ 33 #define FPR14 14 /* First non-volatile FP register to check in f14-31 subset */ 37 /* Test only non-volatile registers, i.e. 18 fpr registers from f14 to f31 */ 39 /* First context will be set with these values, i.e. non-speculative */ 42 -1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18 51 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 55 fail = (ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[i]); in signal_usr1() 59 FPR14 + i, ucp->uc_mcontext.fp_regs[FPR14 + i], fps[i]); in signal_usr1() [all …]
|
H A D | tm-signal-context-chk-vmx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 * speculative nature of the 'live' registers and may infer the wrong 33 #define NV_VMX_REGS 12 /* Number of non-volatile VMX registers */ 34 #define VMX20 20 /* First non-volatile register to check in vr20-31 subset */ 40 /* Test only non-volatile registers, i.e. 12 vmx registers from vr20 to vr31 */ 42 /* First context will be set with these values, i.e. non-speculative */ 50 { -1, -2, -3, -4},{ -5, -6, -7, -8},{ -9,-10,-11,-12}, 51 {-13,-14,-15,-16},{-17,-18,-19,-20},{-21,-22,-23,-24}, 52 {-25,-26,-27,-28},{-29,-30,-31,-32},{-33,-34,-35,-36}, 53 {-37,-38,-39,-40},{-41,-42,-43,-44},{-45,-46,-47,-48} [all …]
|
/linux/Documentation/trace/ |
H A D | ftrace-uses.rst | 18 for live kernel patching, or for security monitoring. This document describes 48 .. code-block:: c 87 .. code-block:: c 119 .. code-block:: c 129 .. code-block:: c 152 .. code-block:: c 201 traced function), it requires setting this flag. This is what live 202 kernel patches uses. Without this flag the pt_regs->ip can not be 234 .. code-block:: c 248 Non-zero to reset all filters before applying this filter. [all …]
|
/linux/fs/bcachefs/ |
H A D | btree_cache.c | 1 // SPDX-License-Identifier: GPL-2.0 23 bc->not_freed[BCH_BTREE_CACHE_NOT_FREED_##counter]++; \ 40 if (!c->btree_roots_known[0].b) in bch2_recalc_btree_reserve() 46 if (r->b) in bch2_recalc_btree_reserve() 47 reserve += min_t(unsigned, 1, r->b->c.level) * 8; in bch2_recalc_btree_reserve() 50 c->btree_cache.nr_reserve = reserve; in bch2_recalc_btree_reserve() 55 struct btree_cache *bc = container_of(list, struct btree_cache, live[list->idx]); in btree_cache_can_free() 57 size_t can_free = list->nr; in btree_cache_can_free() 58 if (!list->idx) in btree_cache_can_free() 59 can_free = max_t(ssize_t, 0, can_free - bc->nr_reserve); in btree_cache_can_free() [all …]
|
/linux/sound/pci/ca0106/ |
H A D | ca0106.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 4 * Driver CA0106 chips. e.g. Sound Blaster Audigy LS and Live 24bit 48 * Added GPIO info for SB Live 24bit. 50 * Implement support for Line-in capture on SB Live 24bit. 52 * Add support for mute control on SB Live 24bit (cards w/ SPI DAC) 73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 87 #define IPR_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ 88 #define IPR_MIDI_TX_A 0x00000002 /* MIDI UART-A Transmit buffer empty */ [all …]
|
/linux/Documentation/arch/arm/ |
H A D | kernel_mode_neon.rst | 6 ------------- 10 '-march=armv7-a -mfpu=neon -mfloat-abi=softfp' 18 ------------ 25 non-preemptible section for reasons outlined below. 29 ------------------------- 32 kept 'live', and is only preserved and restored when multiple tasks are 50 ---------------------------- 62 the NEON registers are live. (Additional calls to kernel_neon_begin() should be 67 -------------------- 69 like IEEE-754 compliant underflow handling etc. When the VFP unit needs such [all …]
|
/linux/arch/sparc/vdso/ |
H A D | vdso-layout.lds.S | 3 * its virtual address, and with only one read-only segment. 22 * non-allocatable things that dangle past the end of the PT_LOAD 23 * segment. Page size is 8192 for both 64-bit and 32-bit vdso binaries 26 vvar_start = . -8192; 52 * Ideally this would live in a C file: kept in here for 53 * compatibility with x86-64. 70 * Text is well-separated from actual data: there's plenty of 90 * PT_LOAD segment, and set the flags explicitly to make segments read-only.
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-module | 4 Contact: masa-korg@dsn.okisemi.com 10 Contact: masa-korg@dsn.okisemi.com 34 Beware, non-standard modes are usually not thoroughly tested by 48 Description: Show the initialization state(live, coming, going) of 58 O out-of-tree module 59 F force-loaded module 67 Contact: Xen developer discussion <xen-devel@lists.xenproject.org> 73 Users: Qubes OS (https://www.qubes-os.org)
|
/linux/Documentation/core-api/ |
H A D | debugging-via-ohci1394.rst | 2 Using physical DMA provided by OHCI-1394 FireWire controllers for debugging 6 ------------ 9 to the OHCI-1394 specification which defines the controller to be a PCI 12 PCI-Bus master DMA after applying filters defined by the OHCI-1394 driver. 15 ask the OHCI-1394 controller to perform read and write requests on 28 hardware such as x86, x86-64 and PowerPC. 34 Together with a early initialization of the OHCI-1394 controller for debugging, 41 ------- 43 The firewire-ohci driver in drivers/firewire uses filtered physical 47 Because the firewire-ohci driver depends on the PCI enumeration to be [all …]
|
/linux/mm/ |
H A D | memremap.c | 1 // SPDX-License-Identifier: GPL-2.0 48 if (pgmap->type == MEMORY_DEVICE_FS_DAX) in devmap_managed_enable_put() 54 if (pgmap->type == MEMORY_DEVICE_FS_DAX) in devmap_managed_enable_get() 68 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete() 75 struct range *range = &pgmap->ranges[range_id]; in pfn_first() 76 unsigned long pfn = PHYS_PFN(range->start); in pfn_first() 87 for (i = 0; i < pgmap->nr_rang in pgmap_pfn_valid() [all...] |