/linux/tools/testing/selftests/rseq/ |
H A D | rseq-mips.h | 83 #define __RSEQ_ASM_DEFINE_TABLE(label, version, flags, start_ip, \ argument 89 LONG " " U32_U64_PAD(__rseq_str(start_ip)) "\n\t" \ 97 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ argument 98 __RSEQ_ASM_DEFINE_TABLE(label, 0x0, 0x0, start_ip, \ 99 (post_commit_ip - start_ip), abort_ip) 109 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ argument 111 LONG " " U32_U64_PAD(__rseq_str(start_ip)) "\n\t" \ 128 start_ip, post_commit_offset, abort_ip) \ argument 132 LONG " " U32_U64_PAD(__rseq_str(start_ip)) "\n\t" \ 141 start_ip, post_commit_ip, abort_ip) \ argument [all …]
|
H A D | rseq-s390.h | 42 start_ip, post_commit_offset, abort_ip) \ argument 47 …".quad " __rseq_str(start_ip) ", " __rseq_str(post_commit_offset) ", " __rseq_str(abort_ip) "\n\t"… 61 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ argument 63 ".quad " __rseq_str(start_ip) ", " __rseq_str(exit_ip) "\n\t" \ 69 start_ip, post_commit_offset, abort_ip) \ argument 74 …".long 0x0, " __rseq_str(start_ip) ", 0x0, " __rseq_str(post_commit_offset) ", 0x0, " __rseq_str(a… 88 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ argument 90 ".long 0x0, " __rseq_str(start_ip) ", 0x0, " __rseq_str(exit_ip) "\n\t" \ 103 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ argument 104 __RSEQ_ASM_DEFINE_TABLE(label, 0x0, 0x0, start_ip, \ [all …]
|
H A D | rseq-arm.h | 82 #define __RSEQ_ASM_DEFINE_TABLE(label, version, flags, start_ip, \ argument 88 …".word " __rseq_str(start_ip) ", 0x0, " __rseq_str(post_commit_offset) ", 0x0, " __rseq_str(abort_… 94 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ argument 95 __RSEQ_ASM_DEFINE_TABLE(label, 0x0, 0x0, start_ip, \ 96 (post_commit_ip - start_ip), abort_ip) 106 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ argument 108 ".word " __rseq_str(start_ip) ", 0x0, " __rseq_str(exit_ip) ", 0x0\n\t" \ 125 start_ip, post_commit_offset, abort_ip) \ argument 129 …".word " __rseq_str(start_ip) ", 0x0, " __rseq_str(post_commit_offset) ", 0x0, " __rseq_str(abort_… 136 start_ip, post_commit_ip, abort_ip) \ argument [all …]
|
H A D | rseq-x86.h | 59 start_ip, post_commit_offset, abort_ip) \ argument 64 …".quad " __rseq_str(start_ip) ", " __rseq_str(post_commit_offset) ", " __rseq_str(abort_ip) "\n\t"… 71 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ argument 72 __RSEQ_ASM_DEFINE_TABLE(label, 0x0, 0x0, start_ip, \ 73 (post_commit_ip - start_ip), abort_ip) 83 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ argument 85 ".quad " __rseq_str(start_ip) ", " __rseq_str(exit_ip) "\n\t" \ 147 start_ip, post_commit_offset, abort_ip) \ argument 152 …".long " __rseq_str(start_ip) ", 0x0, " __rseq_str(post_commit_offset) ", 0x0, " __rseq_str(abort_… 158 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ argument [all …]
|
H A D | rseq-ppc.h | 55 start_ip, post_commit_offset, abort_ip) \ argument 60 …".quad " __rseq_str(start_ip) ", " __rseq_str(post_commit_offset) ", " __rseq_str(abort_ip) "\n\t"… 84 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ argument 86 ".quad " __rseq_str(start_ip) ", " __rseq_str(exit_ip) "\n\t" \ 100 start_ip, post_commit_offset, abort_ip) \ argument 106 …".long 0x0, " __rseq_str(start_ip) ", 0x0, " __rseq_str(post_commit_offset) ", 0x0, " __rseq_str(a… 120 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ argument 123 ".long 0x0, " __rseq_str(start_ip) ", 0x0, " __rseq_str(exit_ip) "\n\t" \ 135 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ argument 136 __RSEQ_ASM_DEFINE_TABLE(label, 0x0, 0x0, start_ip, \ [all …]
|
H A D | rseq-riscv.h | 51 #define __RSEQ_ASM_DEFINE_TABLE(label, version, flags, start_ip, \ 57 ".quad " __rseq_str(start_ip) ", " \ 65 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ 66 __RSEQ_ASM_DEFINE_TABLE(label, 0x0, 0x0, start_ip, \ argument 67 ((post_commit_ip) - (start_ip)), abort_ip) 77 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ 79 ".quad " __rseq_str(start_ip) ", " __rseq_str(exit_ip) "\n" \ 52 __RSEQ_ASM_DEFINE_TABLE(label,version,flags,start_ip,post_commit_offset,abort_ip) global() argument 78 RSEQ_ASM_DEFINE_EXIT_POINT(start_ip,exit_ip) global() argument
|
H A D | rseq-arm64.h | 94 #define __RSEQ_ASM_DEFINE_TABLE(label, version, flags, start_ip, \ argument 100 " .quad " __rseq_str(start_ip) ", " \ 108 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ argument 109 __RSEQ_ASM_DEFINE_TABLE(label, 0x0, 0x0, start_ip, \ 110 (post_commit_ip - start_ip), abort_ip) 120 #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ argument 122 " .quad " __rseq_str(start_ip) ", " __rseq_str(exit_ip) "\n" \
|
H A D | rseq-abi.h | 50 __u64 start_ip; member 51 /* Offset from start_ip. */
|
/linux/include/trace/events/ |
H A D | rseq.h | 35 TP_PROTO(unsigned long regs_ip, unsigned long start_ip, 38 TP_ARGS(regs_ip, start_ip, post_commit_offset, abort_ip), 42 __field(unsigned long, start_ip) 49 __entry->start_ip = start_ip; 54 TP_printk("regs_ip=0x%lx start_ip=0x%lx post_commit_offset=%lu abort_ip=0x%lx", 55 __entry->regs_ip, __entry->start_ip,
|
/linux/kernel/ |
H A D | rseq.c | 116 * [start_ip] ---------------------------- 125 * [abort_ip] < [start_ip] || [abort_ip] >= [post_commit_ip] 135 * [start_ip] 138 * the cpu number loaded before start_ip, branching to abort_ip 142 * at or after start_ip and before post_commit_ip, then the kernel 286 if (rseq_cs->start_ip >= TASK_SIZE || in rseq_get_rseq_cs() 287 rseq_cs->start_ip + rseq_cs->post_commit_offset >= TASK_SIZE || in rseq_get_rseq_cs() 292 if (rseq_cs->start_ip + rseq_cs->post_commit_offset < rseq_cs->start_ip) in rseq_get_rseq_cs() 295 if (rseq_cs->abort_ip - rseq_cs->start_ip < rseq_cs->post_commit_offset) in rseq_get_rseq_cs() 375 * Unsigned comparison will be true when ip >= start_ip, and when [all …]
|
/linux/include/uapi/linux/ |
H A D | rseq.h | 50 __u64 start_ip; member 51 /* Offset from start_ip. */
|
/linux/arch/x86/include/asm/ |
H A D | mshyperv.h | 254 int hv_snp_boot_ap(u32 apic_id, unsigned long start_ip, unsigned int cpu); 258 static inline int hv_snp_boot_ap(u32 apic_id, unsigned long start_ip, in hv_snp_boot_ap() argument
|
/linux/arch/x86/coco/sev/ |
H A D | core.c | 1028 static int wakeup_cpu_via_vmgexit(u32 apic_id, unsigned long start_ip, unsigned int cpu) in wakeup_cpu_via_vmgexit() argument 1048 if (WARN_ONCE(start_ip != real_mode_header->trampoline_start, in wakeup_cpu_via_vmgexit() 1049 "Unsupported SNP start_ip: %lx\n", start_ip)) in wakeup_cpu_via_vmgexit() 1052 /* Override start_ip with known protected guest start IP */ in wakeup_cpu_via_vmgexit() 1053 start_ip = real_mode_header->sev_es_trampoline_start; in wakeup_cpu_via_vmgexit() 1073 /* Set the CS value based on the start_ip converted to a SIPI vector */ in wakeup_cpu_via_vmgexit() 1074 sipi_vector = (start_ip >> 12); in wakeup_cpu_via_vmgexit() 1080 /* Set the RIP value based on start_ip */ in wakeup_cpu_via_vmgexit() 1081 vmsa->rip = start_ip & 0xfff; in wakeup_cpu_via_vmgexit()
|
/linux/arch/x86/kernel/ |
H A D | smpboot.c | 844 unsigned long start_ip = real_mode_header->trampoline_start; in do_boot_cpu() local 850 start_ip = real_mode_header->trampoline_start64; in do_boot_cpu() 876 smpboot_setup_warm_reset_vector(start_ip); in do_boot_cpu() 896 ret = apic->wakeup_secondary_cpu_64(apicid, start_ip, cpu); in do_boot_cpu() 898 ret = apic->wakeup_secondary_cpu(apicid, start_ip, cpu); in do_boot_cpu() 900 ret = wakeup_secondary_cpu_via_init(apicid, start_ip, cpu); in do_boot_cpu()
|
/linux/tools/perf/util/ |
H A D | unwind-libunwind-local.c | 277 * encoded_t start_ip; 472 di.start_ip = map__start(map); in find_proc_info()
|
H A D | intel-pt.c | 761 u64 offset, start_offset, start_ip; in intel_pt_walk_next_insn() local 855 start_ip = *ip; in intel_pt_walk_next_insn() 935 *ip - start_ip, intel_pt_insn); in intel_pt_walk_next_insn()
|
/linux/arch/x86/hyperv/ |
H A D | ivm.c | 294 int hv_snp_boot_ap(u32 apic_id, unsigned long start_ip, unsigned int cpu) in hv_snp_boot_ap() argument
|