From 8d664fa0fdf05339e52e195709838dc7cc290eca Mon Sep 17 00:00:00 2001 From: T Jake Luciani Date: Tue, 6 Dec 2016 10:19:43 -0500 Subject: [PATCH] Include frame-pointer to improve epoll flamegraph tracing Motivation: When attempting to flamegraph netty w/ epoll it was noticed the stacks are lost going from java to epoll lib. Modifications: added the -fno-omit-framepointer flag to compiler flags to ensure the fp is kept intact Result: Flamegraphs will now show native code in the same stack as java code using perf-java-flames --- transport-native-epoll/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport-native-epoll/pom.xml b/transport-native-epoll/pom.xml index c7d6eea6d8..927cb6c4f0 100644 --- a/transport-native-epoll/pom.xml +++ b/transport-native-epoll/pom.xml @@ -199,7 +199,7 @@ ${linux.sendmmsg.support}${glibc.sendmmsg.support} .*IO_NETTY_SENDMSSG_NOT_FOUND.* - CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND -Werror + CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND -Werror -fno-omit-frame-pointer false @@ -215,7 +215,7 @@ ${jni.compiler.args.cflags} ^((?!CFLAGS=).)*$ - CFLAGS=-O3 -Werror + CFLAGS=-O3 -Werror -fno-omit-frame-pointer false