]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
eu-stacktrace WIP: maxframes only used with HAVE_SYSPROF_HEADERS
authorSerhei Makarov <serhei@serhei.io>
Sat, 8 Jun 2024 18:41:21 +0000 (14:41 -0400)
committerSerhei Makarov <serhei@serhei.io>
Sat, 8 Jun 2024 18:41:21 +0000 (14:41 -0400)
src/stacktrace.c

index 6a6facd641c19f54b0c3d0d2726b535fea29d9dc..0552f884f116c118f85c1e36bdb4f33e5716e928 100644 (file)
@@ -122,11 +122,11 @@ typedef struct
 } SysprofCaptureUserRegs
 SYSPROF_ALIGNED_END(1);
 
+static int maxframes = 256;
+
 #endif /* SYSPROF_CAPTURE_FRAME_STACK_USER */
 #endif /* HAVE_SYSPROF_HEADERS */
 
-static int maxframes = 256;
-
 static char *input_path = NULL;
 static int input_fd = -1;
 static char *output_path = NULL;