#include #include #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; } m.submit();'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-10devlink: use nla_put_failure goto label instead of outJiri Pirko1-6/+6
Be aligned with the rest of the code and use label named nla_put_failure. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-10devlink: rename devlink_eswitch_fill to devlink_nl_eswitch_fillJiri Pirko1-5/+5
Be aligned with the rest of the file and name the helper function accordingly. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-10devlink: fix the name of eswitch commandsJiri Pirko1-9/+9
The eswitch_[gs]et command is supposed to be similar to port_[gs]et command - for multiple eswitch attributes. However, when it was introduced by 08f4b5918b2d ("net/devlink: Add E-Switch mode control") it was wrongly named with the word "mode" in it. So fix this now, make the oririnal enum value existing but obsolete. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>