diff options
author | Oleg Nesterov <[email protected]> | 2014-04-07 16:22:58 +0200 |
---|---|---|
committer | Oleg Nesterov <[email protected]> | 2014-04-17 21:58:25 +0200 |
commit | 6cc5e7ff2c38641060f20786a5caf2815edbca5f (patch) | |
tree | 393f386a447bf0c124a685c9eaa5d8e87b5d167d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 8f95505bc18a026ef7d3dfdbce4e5b31b3e4fc1b (diff) |
uprobes/x86: Emulate relative conditional "near" jmp's
Change branch_setup_xol_ops() to simply use opc1 = OPCODE2(insn) - 0x10
if OPCODE1() == 0x0f; this matches the "short" jmp which checks the same
condition.
Thanks to lib/insn.c, it does the rest correctly. branch->ilen/offs are
correct no matter if this jmp is "near" or "short".
Reported-by: Jonathan Lebon <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Reviewed-by: Jim Keniston <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions