8eb008
--- crash-trace-command-2.0/trace.c.orig
8eb008
+++ crash-trace-command-2.0/trace.c
8eb008
@@ -1536,23 +1535,21 @@ static struct command_table_entry comman
8eb008
 
8eb008
 static int ftrace_initialized;
8eb008
 
8eb008
-int _init(void)
8eb008
+void __attribute__((constructor))
8eb008
+trace_init(void)
8eb008
 {
8eb008
 	if (ftrace_init() < 0)
8eb008
-		return 0;
8eb008
+		return;
8eb008
 
8eb008
 	ftrace_initialized = 1;
8eb008
 	register_extension(command_table);
8eb008
-
8eb008
-	return 1;
8eb008
 }
8eb008
 
8eb008
-int _fini(void)
8eb008
+void __attribute__((destructor))
8eb008
+trace_fini(void)
8eb008
 {
8eb008
 	if (ftrace_initialized)
8eb008
 		ftrace_destroy();
8eb008
-
8eb008
-	return 1;
8eb008
 }
8eb008
 
8eb008
 #define TRACE_CMD_FILE_VERSION_STRING "6"