/* * Common low level (register) ptrace helpers * * Copyright 2004-2011 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #ifndef __ASM_GENERIC_PTRACE_H__ #define __ASM_GENERIC_PTRACE_H__ #ifndef __ASSEMBLY__ /* Helpers for working with the instruction pointer */ #ifndef GET_IP #define GET_IP(regs) ((regs)->pc) #endif #ifndef SET_IP #define SET_IP(regs, val) (GET_IP(regs) = (val)) #endif static inline unsigned long instruction_pointer(struct pt_regs *regs) { return GET_IP(regs); } static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { SET_IP(regs, val); } #ifndef profile_pc #define profile_pc(regs) instruction_pointer(regs) #endif /* Helpers for working with the user stack pointer */ #ifndef GET_USP #define GET_USP(regs) ((regs)->usp) #endif #ifndef SET_USP #define SET_USP(regs, val) (GET_USP(regs) = (val)) #endif static inline unsigned long user_stack_pointer(struct pt_regs *regs) { return GET_USP(regs); } static inline void user_stack_pointer_set(struct pt_regs *regs, unsigned long val) { SET_USP(regs, val); } /* Helpers for working with the frame pointer */ #ifndef GET_FP #define GET_FP(regs) ((regs)->fp) #endif #ifndef SET_FP #define SET_FP(regs, val) (GET_FP(regs) = (val)) #endif static inline unsigned long frame_pointer(struct pt_regs *regs) { return GET_FP(regs); } static inline void frame_pointer_set(struct pt_regs *regs, unsigned long val) { SET_FP(regs, val); } #endif /* __ASSEMBLY__ */ #endif refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/drivers/usb/usbip'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/usbip?id=e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/usbip?id=e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/usbip?id=e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/drivers/usb/usbip'> <input type='hidden' name='id' value='e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers?id=e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b'>drivers</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb?id=e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/usbip?id=e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b'>usbip</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/usbip?id=e58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>