From: Kris Van Hees Date: Thu, 18 Jan 2018 22:56:56 +0000 (-0500) Subject: dtrace: increase instruction limit for FBT entry probe detection X-Git-Tag: v4.1.12-124.31.3~1120 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6b2806555e146606ed6539c2ab7d1871d1ddaef8;p=users%2Fjedix%2Flinux-maple.git dtrace: increase instruction limit for FBT entry probe detection The logic used to detect whether we can place a FBT entry probe on a function has a limit on how many instructions should be looked at. With the occurrence of longer function prologues, that limit must be increased. This commit changes it from 2 to 10. Orabug: 27410742 Signed-off-by: Kris Van Hees Reviewed-by: Tomas Jedlicka Reviewed-by: Alan Maguire --- diff --git a/arch/x86/kernel/dtrace_fbt.c b/arch/x86/kernel/dtrace_fbt.c index 549af864ec25..2d7ed6efb4a8 100644 --- a/arch/x86/kernel/dtrace_fbt.c +++ b/arch/x86/kernel/dtrace_fbt.c @@ -146,7 +146,7 @@ void dtrace_fbt_init(fbt_add_probe_fn fbt_add_probe, struct module *mp, FBT_ENTRY, *addr, addr, 0, NULL, arg); state = 1; - } else if (insc > 2) + } else if (insc > 10) state = 2; break; case 1: /* look for ret */