]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes/x86: Cleanup the usage of UPROBE_FIX_IP/UPROBE_FIX_CALL
authorOleg Nesterov <oleg@redhat.com>
Fri, 25 Apr 2014 16:53:32 +0000 (18:53 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 30 Apr 2014 17:10:40 +0000 (19:10 +0200)
commit79f801d2e1c5c99c7c4dc96081e05b108da2d3ec
tree7ab3da68050aaeba3646426a3a7db3947d3bf673
parent5ad114a5cbe062e13b0250842b040f3f1af4f6e6
uprobes/x86: Cleanup the usage of UPROBE_FIX_IP/UPROBE_FIX_CALL

Now that UPROBE_FIX_IP/UPROBE_FIX_CALL are mutually exclusive we can
use a single "fix_ip_or_call" enum instead of 2 fix_* booleans. This
way the logic looks more understandable and clean to me.

While at it, join "case 0xea" with other "ip is correct" ret/lret cases.
Also change default_post_xol_op() to use "else if" for the same reason.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
arch/x86/kernel/uprobes.c