Skip to content

Commit

Permalink
add missing PT_REGS_RET definition for x86 (iovisor#2134)
Browse files Browse the repository at this point in the history
add missing PT_REGS_RET definition for x86
  • Loading branch information
boat0 authored and yonghong-song committed Jan 11, 2019
1 parent 1640865 commit fb9066b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cc/export/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ int bpf_usdt_readarg_p(int argc, struct pt_regs *ctx, void *buf, u64 len) asm("l
#define PT_REGS_PARM4(ctx) ((ctx)->cx)
#define PT_REGS_PARM5(ctx) ((ctx)->r8)
#define PT_REGS_PARM6(ctx) ((ctx)->r9)
#define PT_REGS_RET(ctx) ((ctx)->sp)
#define PT_REGS_FP(ctx) ((ctx)->bp) /* Works only with CONFIG_FRAME_POINTER */
#define PT_REGS_RC(ctx) ((ctx)->ax)
#define PT_REGS_IP(ctx) ((ctx)->ip)
Expand Down

0 comments on commit fb9066b

Please sign in to comment.