| /kernel/linux/linux-6.6/arch/x86/include/asm/ |
| D | smap.h | 14 #include <asm/alternative.h> 23 ALTERNATIVE "", __ASM_CLAC, X86_FEATURE_SMAP 26 ALTERNATIVE "", __ASM_STAC, X86_FEATURE_SMAP 32 /* Note: a barrier is implicit in alternative() */ in clac() 33 alternative("", __ASM_CLAC, X86_FEATURE_SMAP); in clac() 38 /* Note: a barrier is implicit in alternative() */ in stac() 39 alternative("", __ASM_STAC, X86_FEATURE_SMAP); in stac() 47 ALTERNATIVE("", "pushf; pop %0; " __ASM_CLAC "\n\t", in smap_save() 57 ALTERNATIVE("", "push %0; popf\n\t", in smap_restore() 64 ALTERNATIVE("", __ASM_CLAC, X86_FEATURE_SMAP) [all …]
|
| D | alternative.h | 20 * Alternative inline assembly for SMP. 30 * The SMP alternative tables can be kept after boot and contain both 91 * Debug flag that can be tested to see whether alternative 210 * Pad the second replacement alternative with additional NOPs if it is 211 * additionally longer than the first replacement alternative. 242 /* alternative assembly primitive: */ 243 #define ALTERNATIVE(oldinstr, newinstr, ft_flags) \ macro 283 * Alternative instructions for different CPU types or capabilities. 294 #define alternative(oldinstr, newinstr, ft_flags) \ macro 295 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory") [all …]
|
| D | barrier.h | 5 #include <asm/alternative.h> 15 #define mb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "mfence", \ 17 #define rmb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "lfence", \ 19 #define wmb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "sfence", \ 52 #define barrier_nospec() alternative("", "lfence", X86_FEATURE_LFENCE_RDTSC)
|
| /kernel/linux/linux-5.10/arch/x86/include/asm/ |
| D | smap.h | 14 #include <asm/alternative.h> 25 ALTERNATIVE "", __ASM_CLAC, X86_FEATURE_SMAP 28 ALTERNATIVE "", __ASM_STAC, X86_FEATURE_SMAP 43 /* Note: a barrier is implicit in alternative() */ in clac() 44 alternative("", __ASM_CLAC, X86_FEATURE_SMAP); in clac() 49 /* Note: a barrier is implicit in alternative() */ in stac() 50 alternative("", __ASM_STAC, X86_FEATURE_SMAP); in stac() 58 ALTERNATIVE("jmp 1f", "", X86_FEATURE_SMAP) in smap_save() 69 ALTERNATIVE("jmp 1f", "", X86_FEATURE_SMAP) in smap_restore() 77 ALTERNATIVE("", __ASM_CLAC, X86_FEATURE_SMAP) [all …]
|
| D | alternative.h | 17 * Alternative inline assembly for SMP. 27 * The SMP alternative tables can be kept after boot and contain both 71 * Debug flag that can be tested to see whether alternative 128 * Pad the second replacement alternative with additional NOPs if it is 129 * additionally longer than the first replacement alternative. 160 /* alternative assembly primitive: */ 161 #define ALTERNATIVE(oldinstr, newinstr, feature) \ macro 200 * Alternative instructions for different CPU types or capabilities. 211 #define alternative(oldinstr, newinstr, feature) \ macro 212 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory") [all …]
|
| D | barrier.h | 5 #include <asm/alternative.h> 15 #define mb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "mfence", \ 17 #define rmb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "lfence", \ 19 #define wmb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "sfence", \ 52 #define barrier_nospec() alternative("", "lfence", X86_FEATURE_LFENCE_RDTSC)
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/ |
| D | altnames.sh | 21 check_err $? "Failed to add short alternative name" 24 check_err $? "Failed to do link show with short alternative name" 27 check_err $? "Failed to get short alternative name from link show JSON" 30 check_err $? "Got unexpected short alternative name from link show JSON" 36 check_err $? "Failed to add long alternative name" 39 check_err $? "Failed to do link show with long alternative name" 42 check_err $? "Failed to get long alternative name from link show JSON" 45 check_err $? "Got unexpected long alternative name from link show JSON" 48 check_err $? "Failed to delete short alternative name" 51 check_fail $? "Unexpected success while trying to do link show with deleted short alternative name"
|
| /kernel/linux/linux-6.6/tools/testing/selftests/net/ |
| D | altnames.sh | 21 check_err $? "Failed to add short alternative name" 24 check_err $? "Failed to do link show with short alternative name" 27 check_err $? "Failed to get short alternative name from link show JSON" 30 check_err $? "Got unexpected short alternative name from link show JSON" 36 check_err $? "Failed to add long alternative name" 39 check_err $? "Failed to do link show with long alternative name" 42 check_err $? "Failed to get long alternative name from link show JSON" 45 check_err $? "Got unexpected long alternative name from link show JSON" 48 check_err $? "Failed to delete short alternative name" 51 check_fail $? "Unexpected success while trying to do link show with deleted short alternative name"
|
| /kernel/linux/linux-5.10/arch/parisc/include/asm/ |
| D | cache.h | 9 #include <asm/alternative.h> 52 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ 55 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ 56 ALTERNATIVE(ALT_COND_NO_SPLIT_TLB, INSN_NOP) \ 59 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ 63 ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \ 64 ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) \ 67 ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \ 68 ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) :::"memory")
|
| /kernel/linux/linux-6.6/arch/parisc/include/asm/ |
| D | cache.h | 9 #include <asm/alternative.h> 53 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ 56 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ 57 ALTERNATIVE(ALT_COND_NO_SPLIT_TLB, INSN_NOP) \ 61 ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \ 62 ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) \ 65 ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \ 66 ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) :::"memory")
|
| /kernel/linux/linux-6.6/arch/s390/include/asm/ |
| D | alternative.h | 30 * | alternative instr 1 | 33 * | alternative instr 2 | 39 * | alternative instr | 62 /* alternative assembly primitive: */ 63 #define ALTERNATIVE(oldinstr, altinstr, facility) \ macro 84 * Alternative instructions for different CPU types or capabilities. 95 #define alternative(oldinstr, altinstr, facility) \ macro 96 asm_inline volatile(ALTERNATIVE(oldinstr, altinstr, facility) : : : "memory") 102 /* Alternative inline assembly with input. */ 104 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \ [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/include/asm/ |
| D | alternative-macros.h | 41 * alternative assembly primitive: 117 * Alternative sequences 131 * alternative sequence it is defined in (branches into an 132 * alternative sequence are not fixed up). 136 * Begin an alternative code sequence. 165 * Provide the other half of the alternative code sequence. 178 * Complete an alternative code sequence. 190 * Callback-based alternative epilogue 197 * Provides a trivial alternative or default sequence consisting solely 213 * Usage: asm(ALTERNATIVE(oldinstr, newinstr, cpucap)); [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/include/asm/ |
| D | alternative-macros.h | 31 * alternative assembly primitive: 107 * Alternative sequences 121 * alternative sequence it is defined in (branches into an 122 * alternative sequence are not fixed up). 126 * Begin an alternative code sequence. 155 * Provide the other half of the alternative code sequence. 168 * Complete an alternative code sequence. 180 * Callback-based alternative epilogue 187 * Provides a trivial alternative or default sequence consisting solely 267 * Usage: asm(ALTERNATIVE(oldinstr, newinstr, feature)); [all …]
|
| D | irqflags.h | 8 #include <asm/alternative.h> 37 asm volatile(ALTERNATIVE( in arch_local_irq_enable() 56 asm volatile(ALTERNATIVE( in arch_local_irq_disable() 72 asm volatile(ALTERNATIVE( in arch_local_save_flags() 87 asm volatile(ALTERNATIVE( in arch_irqs_disabled_flags() 124 asm volatile(ALTERNATIVE( in arch_local_irq_restore()
|
| /kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
| D | alternative.h | 21 * Debug flag that can be tested to see whether alternative 50 * Pad the second replacement alternative with additional NOPs if it is 51 * additionally longer than the first replacement alternative. 70 /* alternative assembly primitive: */ 71 #define ALTERNATIVE(oldinstr, newinstr, feature) \ macro 92 * Alternative instructions for different CPU types or capabilities. 103 #define alternative(oldinstr, newinstr, feature) \ macro 104 (asm volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory"))
|
| /kernel/linux/linux-6.6/arch/loongarch/include/asm/ |
| D | alternative.h | 21 * Debug flag that can be tested to see whether alternative 50 * Pad the second replacement alternative with additional NOPs if it is 51 * additionally longer than the first replacement alternative. 70 /* alternative assembly primitive: */ 71 #define ALTERNATIVE(oldinstr, newinstr, feature) \ macro 92 * Alternative instructions for different CPU types or capabilities. 103 #define alternative(oldinstr, newinstr, feature) \ macro 104 (asm volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory"))
|
| /kernel/linux/linux-6.6/arch/riscv/include/asm/ |
| D | errata_list.h | 8 #include <asm/alternative.h> 35 ALTERNATIVE(__stringify(RISCV_PTR do_trap_insn_fault), \ 41 ALTERNATIVE(__stringify(RISCV_PTR do_page_fault), \ 48 asm(ALTERNATIVE("sfence.vma x0, %0", "sfence.vma", SIFIVE_VENDOR_ID, \ 53 asm(ALTERNATIVE("sfence.vma %0", "sfence.vma", SIFIVE_VENDOR_ID, \ 58 asm(ALTERNATIVE("sfence.vma %0, %1", "sfence.vma", SIFIVE_VENDOR_ID, \ 87 asm volatile(ALTERNATIVE( \ 164 asm volatile(ALTERNATIVE( \
|
| D | alternative-macros.h | 19 .pushsection .alternative, "a" 70 ".pushsection .alternative, \"a\"\n" \ 135 * ALTERNATIVE(old_content, new_content, vendor_id, patch_id, CONFIG_k) 137 * asm(ALTERNATIVE(old_content, new_content, vendor_id, patch_id, CONFIG_k)); 146 #define ALTERNATIVE(old_content, new_content, vendor_id, patch_id, CONFIG_k) \ macro 151 * ALTERNATIVE() to patch its customized content at the same location. In 153 * on the following sample code and then replace ALTERNATIVE() with
|
| /kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/event_code_tests/ |
| D | event_alternatives_tests_p9.c | 34 * alternative events is handled by respective PMU driver in event_alternatives_tests_p9() 50 * Expected to pass since PM_RUN_CYC_ALT in PMC2 has alternative event in event_alternatives_tests_p9() 63 * Expected to pass since PM_INST_DISP in PMC2 has alternative event in event_alternatives_tests_p9() 76 * Expected to pass since PM_BR_2PATH in PMC2 has alternative event in event_alternatives_tests_p9() 89 * Expected to pass since PM_LD_MISS_L1 in PMC3 has alternative event in event_alternatives_tests_p9() 102 * Expected to pass since PM_RUN_INST_CMPL_ALT in PMC4 has alternative event in event_alternatives_tests_p9()
|
| D | event_alternatives_tests_p10.c | 35 * alternative events is handled by respective PMU driver in event_alternatives_tests_p10() 44 * Test for event alternative for 0x0001e in event_alternatives_tests_p10() 65 * Expected to pass since 0x0001e has alternative event in event_alternatives_tests_p10() 93 * Expected to pass since 0x00020 has alternative event in event_alternatives_tests_p10()
|
| /kernel/linux/linux-5.10/arch/s390/include/asm/ |
| D | alternative.h | 36 * | alternative instr 1 | 39 * | alternative instr 2 | padding 46 * | alternative instr | 108 /* alternative assembly primitive: */ 109 #define ALTERNATIVE(oldinstr, altinstr, facility) \ macro 130 * Alternative instructions for different CPU types or capabilities. 141 #define alternative(oldinstr, altinstr, facility) \ macro 142 asm_inline volatile(ALTERNATIVE(oldinstr, altinstr, facility) : : : "memory")
|
| /kernel/linux/linux-6.6/arch/x86/um/asm/ |
| D | barrier.h | 6 #include <asm/alternative.h> 15 #define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2) 16 #define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2) 17 #define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
|
| /kernel/linux/linux-5.10/arch/x86/um/asm/ |
| D | barrier.h | 5 #include <asm/alternative.h> 14 #define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2) 15 #define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2) 16 #define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
|
| /kernel/linux/linux-6.6/arch/x86/entry/ |
| D | calling.h | 164 ALTERNATIVE "", "SET_NOFLUSH_BIT \reg", X86_FEATURE_PCID 170 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 181 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 184 ALTERNATIVE "jmp .Lwrcr3_\@", "", X86_FEATURE_PCID 221 ALTERNATIVE "jmp .Ldone_\@", "", X86_FEATURE_PTI 239 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 241 ALTERNATIVE "jmp .Lwrcr3_\@", "", X86_FEATURE_PCID 303 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_KERNEL_IBRS 332 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_KERNEL_IBRS 360 ALTERNATIVE "", "lfence", X86_FEATURE_FENCE_SWAPGS_USER [all …]
|
| /kernel/linux/linux-5.10/arch/x86/entry/ |
| D | calling.h | 188 ALTERNATIVE "", "SET_NOFLUSH_BIT \reg", X86_FEATURE_PCID 194 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 205 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 208 ALTERNATIVE "jmp .Lwrcr3_\@", "", X86_FEATURE_PCID 245 ALTERNATIVE "jmp .Ldone_\@", "", X86_FEATURE_PTI 263 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 265 ALTERNATIVE "jmp .Lwrcr3_\@", "", X86_FEATURE_PCID 327 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_KERNEL_IBRS 356 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_KERNEL_IBRS 384 ALTERNATIVE "", "lfence", X86_FEATURE_FENCE_SWAPGS_USER [all …]
|