/kernel/linux/linux-6.6/drivers/misc/lkdtm/ |
H A D | cfi.c | 76 unsigned long * volatile *ret_addr = (unsigned long **)__builtin_frame_address(0) + 1; in set_return_addr_unchecked() local 79 if (no_pac_addr(*ret_addr) == expected) in set_return_addr_unchecked() 80 *ret_addr = (addr); in set_return_addr_unchecked() 84 *ret_addr, addr); in set_return_addr_unchecked() 91 unsigned long * volatile *ret_addr = (unsigned long **)__builtin_frame_address(0) + 1; in set_return_addr() local 94 if (no_pac_addr(*ret_addr) == expected) in set_return_addr() 95 *ret_addr = (addr); in set_return_addr() 99 *ret_addr, addr); in set_return_addr()
|
/kernel/linux/linux-5.10/arch/nds32/kernel/ |
H A D | traps.c | 103 unsigned long ret_addr; in __dump() local 108 ret_addr = *base_reg++; in __dump() 109 if (__kernel_text_address(ret_addr)) { in __dump() 110 ret_addr = ftrace_graph_ret_addr( in __dump() 111 tsk, &graph, ret_addr, NULL); in __dump() 112 print_ip_sym(loglvl, ret_addr); in __dump() 122 ret_addr = base_reg[LP_OFFSET]; in __dump() 124 if (__kernel_text_address(ret_addr)) { in __dump() 126 ret_addr = ftrace_graph_ret_addr( in __dump() 127 tsk, &graph, ret_addr, NUL in __dump() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | stacktrace.c | 90 unsigned long ret_addr; member 105 __get_user(frame->ret_addr, &fp->ret_addr)) in copy_stack_frame() 124 frame.ret_addr = 0; in arch_stack_walk_user() 129 if (!frame.ret_addr) in arch_stack_walk_user() 131 if (!consume_entry(cookie, frame.ret_addr)) in arch_stack_walk_user()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | stacktrace.c | 84 unsigned long ret_addr; member 99 __get_user(frame->ret_addr, &fp->ret_addr)) in copy_stack_frame() 118 frame.ret_addr = 0; in arch_stack_walk_user() 123 if (!frame.ret_addr) in arch_stack_walk_user() 125 if (!consume_entry(cookie, frame.ret_addr)) in arch_stack_walk_user()
|
H A D | rethook.c | 121 rh->ret_addr = stack[0]; in arch_rethook_prepare()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | thread-stack.c | 41 * @ret_addr: return address 54 u64 ret_addr; member 238 static int thread_stack__push(struct thread_stack *ts, u64 ret_addr, in thread_stack__push() argument 252 ts->stack[ts->cnt++].ret_addr = ret_addr; in thread_stack__push() 257 static void thread_stack__pop(struct thread_stack *ts, u64 ret_addr) in thread_stack__pop() argument 271 if (ts->stack[--i].ret_addr == ret_addr) { in thread_stack__pop() 447 u64 ret_addr; in thread_stack__event() local 451 ret_addr in thread_stack__event() 781 thread_stack__push_cp(struct thread_stack *ts, u64 ret_addr, u64 timestamp, u64 ref, struct call_path *cp, bool no_call, bool trace_end) thread_stack__push_cp() argument 813 thread_stack__pop_cp(struct thread *thread, struct thread_stack *ts, u64 ret_addr, u64 timestamp, u64 ref, struct symbol *sym) thread_stack__pop_cp() argument 1023 u64 ret_addr; thread_stack__trace_end() local 1153 u64 ret_addr; thread_stack__process() local [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | thread-stack.c | 41 * @ret_addr: return address 54 u64 ret_addr; member 238 static int thread_stack__push(struct thread_stack *ts, u64 ret_addr, in thread_stack__push() argument 252 ts->stack[ts->cnt++].ret_addr = ret_addr; in thread_stack__push() 257 static void thread_stack__pop(struct thread_stack *ts, u64 ret_addr) in thread_stack__pop() argument 271 if (ts->stack[--i].ret_addr == ret_addr) { in thread_stack__pop() 447 u64 ret_addr; in thread_stack__event() local 451 ret_addr in thread_stack__event() 782 thread_stack__push_cp(struct thread_stack *ts, u64 ret_addr, u64 timestamp, u64 ref, struct call_path *cp, bool no_call, bool trace_end) thread_stack__push_cp() argument 814 thread_stack__pop_cp(struct thread *thread, struct thread_stack *ts, u64 ret_addr, u64 timestamp, u64 ref, struct symbol *sym) thread_stack__pop_cp() argument 1024 u64 ret_addr; thread_stack__trace_end() local 1152 u64 ret_addr; thread_stack__process() local [all...] |
/kernel/linux/linux-5.10/arch/sh/kernel/ |
H A D | dumpstack.c | 61 unsigned long ret_addr; in print_ftrace_graph_addr() local 73 ret_addr = ret_stack->ret; in print_ftrace_graph_addr() 75 ops->address(data, ret_addr, 1); in print_ftrace_graph_addr()
|
/kernel/linux/linux-6.6/arch/sh/kernel/ |
H A D | dumpstack.c | 61 unsigned long ret_addr; in print_ftrace_graph_addr() local 73 ret_addr = ret_stack->ret; in print_ftrace_graph_addr() 75 ops->address(data, ret_addr, 1); in print_ftrace_graph_addr()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mce/ |
H A D | amd.c | 682 u64 ret_addr = norm_addr; in umc_normaddr_to_sysaddr() local 703 ret_addr -= hi_addr_offset; in umc_normaddr_to_sysaddr() 833 temp_addr_y = ret_addr & GENMASK_ULL(intlv_addr_bit-1, 0); in umc_normaddr_to_sysaddr() 835 temp_addr_x = (ret_addr & GENMASK_ULL(63, intlv_addr_bit)) << num_intlv_bits; in umc_normaddr_to_sysaddr() 836 ret_addr = temp_addr_x | temp_addr_i | temp_addr_y; in umc_normaddr_to_sysaddr() 840 ret_addr += dram_base_addr; in umc_normaddr_to_sysaddr() 848 if (ret_addr >= dram_hole_base) in umc_normaddr_to_sysaddr() 849 ret_addr += (BIT_ULL(32) - dram_hole_base); in umc_normaddr_to_sysaddr() 854 hashed_bit = (ret_addr >> 12) ^ in umc_normaddr_to_sysaddr() 855 (ret_addr >> 1 in umc_normaddr_to_sysaddr() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A D | devtree.c | 243 u64 ret_addr, ret_size; in dt_xlate() local 306 ret_addr = ((u64)be32_to_cpu(last_addr[2]) << 32) | be32_to_cpu(last_addr[3]); in dt_xlate() 308 (ret_addr >= 0x100000000ULL || ret_size > 0x100000000ULL || in dt_xlate() 309 ret_addr + ret_size > 0x100000000ULL)) in dt_xlate() 312 *addr = ret_addr; in dt_xlate()
|
/kernel/linux/linux-6.6/arch/powerpc/boot/ |
H A D | devtree.c | 243 u64 ret_addr, ret_size; in dt_xlate() local 306 ret_addr = ((u64)be32_to_cpu(last_addr[2]) << 32) | be32_to_cpu(last_addr[3]); in dt_xlate() 308 (ret_addr >= 0x100000000ULL || ret_size > 0x100000000ULL || in dt_xlate() 309 ret_addr + ret_size > 0x100000000ULL)) in dt_xlate() 312 *addr = ret_addr; in dt_xlate()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
H A D | nfsd.h | 402 size_t ret_addr, ret_port; in nfsd4_set_netaddr() local 418 ret_addr = rpc_ntop(addr, netaddr->addr, sizeof(netaddr->addr)); in nfsd4_set_netaddr() 419 ret_port = snprintf(netaddr->addr + ret_addr, in nfsd4_set_netaddr() 420 RPCBIND_MAXUADDRLEN + 1 - ret_addr, in nfsd4_set_netaddr() 422 WARN_ON(ret_port >= RPCBIND_MAXUADDRLEN + 1 - ret_addr); in nfsd4_set_netaddr() 423 netaddr->addr_len = ret_addr + ret_port; in nfsd4_set_netaddr()
|
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | nfsd.h | 425 size_t ret_addr, ret_port; in nfsd4_set_netaddr() local 441 ret_addr = rpc_ntop(addr, netaddr->addr, sizeof(netaddr->addr)); in nfsd4_set_netaddr() 442 ret_port = snprintf(netaddr->addr + ret_addr, in nfsd4_set_netaddr() 443 RPCBIND_MAXUADDRLEN + 1 - ret_addr, in nfsd4_set_netaddr() 445 WARN_ON(ret_port >= RPCBIND_MAXUADDRLEN + 1 - ret_addr); in nfsd4_set_netaddr() 446 netaddr->addr_len = ret_addr + ret_port; in nfsd4_set_netaddr()
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | rethook.c | 20 rhn->ret_addr = regs->regs[1]; in arch_rethook_prepare()
|
/kernel/linux/linux-6.6/arch/riscv/kernel/probes/ |
H A D | rethook.c | 20 rhn->ret_addr = regs->ra; in arch_rethook_prepare()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | rethook.c | 8 rh->ret_addr = regs->gprs[14]; in arch_rethook_prepare()
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | rethook.c | 228 if (rh->ret_addr != (unsigned long)arch_rethook_trampoline) { in __rethook_find_ret_addr() 230 return rh->ret_addr; in __rethook_find_ret_addr()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | switch_to.h | 39 unsigned long ret_addr; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | rethook.h | 49 * @ret_addr: The storage for the real return address. 62 unsigned long ret_addr; member
|
H A D | kprobes.h | 174 kprobe_opcode_t *ret_addr; 210 return ri->node.ret_addr; in get_kretprobe_retaddr() 256 return (unsigned long)ri->ret_addr; in get_kretprobe_retaddr()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | switch_to.h | 41 unsigned long ret_addr; member
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
H A D | ioremap.c | 190 void __iomem *ret_addr; in __ioremap_caller() local 293 ret_addr = (void __iomem *) (vaddr + offset); in __ioremap_caller() 294 mmiotrace_ioremap(unaligned_phys_addr, unaligned_size, ret_addr); in __ioremap_caller() 303 return ret_addr; in __ioremap_caller()
|
/kernel/linux/linux-6.6/arch/x86/mm/ |
H A D | ioremap.c | 196 void __iomem *ret_addr; in __ioremap_caller() local 304 ret_addr = (void __iomem *) (vaddr + offset); in __ioremap_caller() 305 mmiotrace_ioremap(unaligned_phys_addr, unaligned_size, ret_addr); in __ioremap_caller() 314 return ret_addr; in __ioremap_caller()
|
/kernel/linux/linux-6.6/drivers/edac/ |
H A D | amd64_edac.c | 1110 u64 ret_addr; member 1133 ctx.ret_addr = norm_addr; in umc_normaddr_to_sysaddr() 1147 ctx.ret_addr -= hi_addr_offset; in umc_normaddr_to_sysaddr() 1277 temp_addr_y = ctx.ret_addr & GENMASK_ULL(intlv_addr_bit - 1, 0); in umc_normaddr_to_sysaddr() 1279 temp_addr_x = (ctx.ret_addr & GENMASK_ULL(63, intlv_addr_bit)) << num_intlv_bits; in umc_normaddr_to_sysaddr() 1280 ctx.ret_addr = temp_addr_x | temp_addr_i | temp_addr_y; in umc_normaddr_to_sysaddr() 1284 ctx.ret_addr += dram_base_addr; in umc_normaddr_to_sysaddr() 1292 if (ctx.ret_addr >= dram_hole_base) in umc_normaddr_to_sysaddr() 1293 ctx.ret_addr += (BIT_ULL(32) - dram_hole_base); in umc_normaddr_to_sysaddr() 1298 hashed_bit = (ctx.ret_addr >> 1 in umc_normaddr_to_sysaddr() [all...] |