#ifndef ARCH_PERF_REGS_H #define ARCH_PERF_REGS_H #include <stdlib.h> #include <linux/types.h> #include <asm/perf_regs.h> void perf_regs_load(u64 *regs); #define PERF_REGS_MASK ((1ULL << PERF_REG_ARM_MAX) - 1) #define PERF_REGS_MAX PERF_REG_ARM_MAX #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_32 #define PERF_REG_IP PERF_REG_ARM_PC #define PERF_REG_SP PERF_REG_ARM_SP static inline const char *perf_reg_name(int id) { switch (id) { case PERF_REG_ARM_R0: return "r0"; case PERF_REG_ARM_R1: return "r1"; case PERF_REG_ARM_R2: return "r2"; case PERF_REG_ARM_R3: return "r3"; case PERF_REG_ARM_R4: return "r4"; case PERF_REG_ARM_R5: return "r5"; case PERF_REG_ARM_R6: return "r6"; case PERF_REG_ARM_R7: return "r7"; case PERF_REG_ARM_R8: return "r8"; case PERF_REG_ARM_R9: return "r9"; case PERF_REG_ARM_R10: return "r10"; case PERF_REG_ARM_FP: return "fp"; case PERF_REG_ARM_IP: return "ip"; case PERF_REG_ARM_SP: return "sp"; case PERF_REG_ARM_LR: return "lr"; case PERF_REG_ARM_PC: return "pc"; default: return NULL; } return NULL; } #endif /* ARCH_PERF_REGS_H */ e-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=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/perf/tests/bpf.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/perf/tests/bpf.c?h=nds-private-remove&id=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/tests/bpf.c?h=nds-private-remove&id=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/perf/tests/bpf.c?h=nds-private-remove&id=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/perf/tests/bpf.c'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'/><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=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?h=nds-private-remove&id=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf?h=nds-private-remove&id=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/tests?h=nds-private-remove&id=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>tests</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/tests/bpf.c?h=nds-private-remove&id=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd'>bpf.c</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/tools/perf/tests/bpf.c?h=nds-private-remove&id=a61d5ce9cc56e2e41bbb1ad62ca7a16d7e7567bd&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>