#include <errno.h> #include <libunwind.h> #include "perf_regs.h" #include "../../util/unwind.h" #include "../../util/debug.h" int libunwind__arch_reg_id(int regnum) { switch (regnum) { case UNW_ARM_R0: return PERF_REG_ARM_R0; case UNW_ARM_R1: return PERF_REG_ARM_R1; case UNW_ARM_R2: return PERF_REG_ARM_R2; case UNW_ARM_R3: return PERF_REG_ARM_R3; case UNW_ARM_R4: return PERF_REG_ARM_R4; case UNW_ARM_R5: return PERF_REG_ARM_R5; case UNW_ARM_R6: return PERF_REG_ARM_R6; case UNW_ARM_R7: return PERF_REG_ARM_R7; case UNW_ARM_R8: return PERF_REG_ARM_R8; case UNW_ARM_R9: return PERF_REG_ARM_R9; case UNW_ARM_R10: return PERF_REG_ARM_R10; case UNW_ARM_R11: return PERF_REG_ARM_FP; case UNW_ARM_R12: return PERF_REG_ARM_IP; case UNW_ARM_R13: return PERF_REG_ARM_SP; case UNW_ARM_R14: return PERF_REG_ARM_LR; case UNW_ARM_R15: return PERF_REG_ARM_PC; default: pr_err("unwind: invalid reg id %d\n", regnum); return -EINVAL; } return -EINVAL; } n value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/wireless/Kconfig?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/wireless/Kconfig?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/wireless/Kconfig?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/wireless/Kconfig?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/wireless/Kconfig'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='dd41d33f0b033885211a5d6f3ee19e73238aa9ee'/><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/?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/wireless?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee'>wireless</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/wireless/Kconfig?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee'>Kconfig</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/net/wireless/Kconfig?h=nds-private-remove&id=dd41d33f0b033885211a5d6f3ee19e73238aa9ee&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>